|
|
|
|
|
by hysan
20 days ago
|
|
Since there are no releases, I assuming this is still a WIP? It would explain why they list Linux and then don’t have any screenshots of it next to the other platforms. How it works is kinda light on details. I’m interested to learn more about the under the hood aspects of how they are translating everything to the different native toolkits. |
|
The UI code you write gets compiled to a "plan" which is sort of like bytecode but constrained and simpler, so a simple Rust state machine (or JS on the web) can execute it (doesn't need a complex virtual machine with a garbage collector, etc.)
The layout is expressed using CSS terms and so the layout engine is just Taffy, a Rust based CSS engine, with a bunch of patches on top of it.
Each host like iOS, web, etc. then draws the UI with native elements (UISwitch, DOM elements, etc.) or by drawing the pixels itself (Linux, etc.)