
📜 HowThingsWork | Math·Computers·Data | ⚒️⚙️💻 https://nitter.gq/t.co/OBmXMKBxav
- Tweets2.2K
- Following1.4K
- Followers79
- Likes3.2K

ALT Here is how it works: - dactyl is built with AI, of course - we define an objective: minimize the pixel diff of iOS simulator with our own WASM simulator. Then let fable loose on following the objective - we compile swift to wasm - that compiler was existing - we didn’t build this - we reimplement SwiftUI and friends to output a stream of “ops” which are like “draw button here”. This is what the wasm blob writes into an ArrayBuffer - the javascript then reads from this ArrayBuffer and draws stuff in a canvas - to make it work on android: we compile it to arm instead wasm, then we add a wrapper written in kotlin - the kotlin wrapper does the same as the browser javascript does, except it renders android native UI the result is a android arm apk - no javascript or wasm - that runs the SwiftUI app It is an enormous amount of code many millions of lines I think











