News for hackers. Stuff that matters.
Re:Show HN: Rust GUI Library via Flutter by abound on Sunday August 11, 2024 @12:16AM (#41213947)
And then there's also crux [1], which is the same "write your mobile app business logic once in Rust", but instead of Flutter, integrates directly with native iOS/Android/Web UIs

[1] https://redbadger.github.io/crux/

Re:Show HN: Rust GUI Library via Flutter by oneshtein on Sunday August 11, 2024 @12:43AM (#41214037)
Tauri supports mobile platforms too. Sadly, it's not a first class citizen in Tauri 2.0 as promised.

I tried both Flutter and Tauri. IMHO: Tauri is better, because it allows me to use existing web frameworks (or even plain Markdown + Pandoc!), to make web-pages, while handling business logic in type safe Rust.

Re:Show HN: Rust GUI Library via Flutter by fzyzcjy on Sunday August 11, 2024 @03:09AM (#41214476)
Thanks for the information, and I replied bubblebeard above about Tauri.
Re:Show HN: Rust GUI Library via Flutter by itohihiyt on Sunday August 11, 2024 @03:08AM (#41214472)
Isn't Dart type safe?
Re:Show HN: Rust GUI Library via Flutter by oneshtein on Sunday August 11, 2024 @04:33AM (#41214811)
Dart is order of magnitude slower than Rust.
Re:Show HN: Rust GUI Library via Flutter by itohihiyt on Sunday August 11, 2024 @05:29AM (#41215006)
I wasn't trying to be argumentative, and certainly rust is faster than dart, but if type safety is your main concern Dart/Flutter is less convoluted/complicated than rust+web frontend. In my opinion, obviously.
Re:Show HN: Rust GUI Library via Flutter by mdhb on Sunday August 11, 2024 @05:07AM (#41214931)
If you’re doing some super intensive data processing or have specialist use cases then yeah, sure feel free to write that part in Rust, C or whatever you like.

That’s literally what this package is about. Unlocking that use case for you although Dart also has bindings for Go, Java, Kotlin, C, and Swift so you can take your pick.

But the reality is that Dart compiles down to native code on all platforms and is not going to be slower in any way that actually matters or is noticeable to users in the vast vast vast majority of scenarios and the productivity hit you take from moving to Rust or C from Dart is also an order of magnitude slower.

Re:Show HN: Rust GUI Library via Flutter by fzyzcjy on Sunday August 11, 2024 @03:22AM (#41214509)
Yes, if someone needs to write UI using native Android/iOS code, Crux would be suitable. On the other hand, personally speaking, I prefer to write all code 1 time, but Crux seems to require to write the UI code 3 times for Android+iOS+Web.