This is mediated by the Roc platform (i.e. app framework) and as for mechanics it works the same way the platform host language would work. I do have a Roc GUI platform written in Rust running on mac and android but it's built using just the OS drawing/input APIs and not using the rest of the platform's GUI stack so in practice they work closer to web apps with native performance/overhead. I've leaned into this so the apps are Elm Architecture, the styling is very similar to Tailwind, and things are generally web-app shaped. The LLMs are pretty good at web apps so the process of bringing up a new app is pretty straightforward.
Is the app open source? I'd love to tinker around that.
But also, my question is that since it's using rust, wouldn't there be an issue of rust compilation coming into place perhaps once again?
And would there be any advantages in having a Roc UI framework whose rust layers could be extremely small if not nil perhaps (again, I am not too familiar with the internals of Roc as in how the Roc platform works which I still have to explore but still, suggesting this idea)
I just want fast cross-portable (small) apps with fast compile speed/iteration speed. Golang really fails in some sense and rust loses on the cross-portable part. I really want a language within this space, I am gonna explore roc for this but do you have any other languages in suggestion as well?
It's open source [1] but not currently documented and therefore not "really" released. I've had several people ask me to just put it out without docs but not sure how useful it is to others.
[1] https://github.com/grayrest/kite
> Since it's using rust, wouldn't there be an issue of rust compilation coming into place perhaps once again?
App-level use compiles Rust once up front and is then on the Roc iteration loop. If you're messing with the platform then there's the normal Rust compilation cycle which is dependent on how deep you're making changes in the crate dependency graph.
> would there be any advantages in having a Roc UI framework whose rust layers could be extremely small if not nil perhaps
There are several other Roc platforms attempting this. I believe the most developed is Terroccotta.
My project places the app/platform boundary at the "web browser" level because I have an alternate backend that allows apps to run in the browser using DOM/CSS/WASM. Anything that would be in the browser in a webapp is in the platform and a large fraction of the browser's feature set with regards to app development is implemented (flex/grid layout, text decoration, borders, shadows, transitions, animation, etc).
> do you have any other languages in suggestion as well?
I do not. I'm about 2000 hours and almost half a million lines of Rust+Roc into this project because I wanted something like Electron/Tauri that would run with native app perf/resource consumption and work on my android devices.