News for hackers. Stuff that matters.
Re:Show HN: Rust GUI Library via Flutter by jurschreuder on Sunday August 11, 2024 @02:32AM (#41214353)
Isn't Flutter basically a way to use the C++ render engine from Chrome, with a "scripting" language most similar to Kotlin and Swift?

Why not just use the Chrome render engine directly from Rust?

Why all the extra steps?

Re:Show HN: Rust GUI Library via Flutter by ThePhysicist on Sunday August 11, 2024 @03:20AM (#41214502)
They used to be based on Skia but now they have their own renderer (Impeller). That said rendering is only a small part of a UI toolkit, there's a ton of other stuff e.g. how to interact with system libraries, integrate with UI paradigms (e.g. tray icons, gestures, responsiveness, widgets).
Re:Show HN: Rust GUI Library via Flutter by polyaniline on Sunday August 11, 2024 @02:49AM (#41214415)
There's too much infrastructure on top of the render engine to replicate. Flutter is backed by Google and has a fairly large ecosystem of community packages.

See Freya - which uses Skia - the render engine Flutter used until a while back.

Re:Show HN: Rust GUI Library via Flutter by imadj on Sunday August 11, 2024 @04:53AM (#41214883)
> Why not just use the Chrome render engine directly from Rust?

This is what projects like Tauri (in Rust) and Wails (in Go) are doing[0][1]. Utilizing Webview to develop applications, but they still don't support mobile, Tauri mobile is in beta.

Basically Tauri and Wails are on one side (HTML/CSS) trying to approach cross platform by supporting mobile platforms, while Flutter and Kotlin Compose Multiplatform started from the other side.

So it depends on your needs, web-first or mobile-first, and what platforms matter to you. So far Flutter is in the lead offering the most polished experience when it comes to supporting all platforms (Web, desktop, iOS, Android).

[0] https://github.com/tauri-apps/tauri

[1] https://github.com/wailsapp/wails