Live data from Hacker News

Show HN: Rust GUI Library via Flutter

cjycode.com

21–30 of 108 posts

Re: Show HN: Rust GUI Library via Flutter

#21
post #4

Earlier quoted context omitted.

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/

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.

Thanks for the information, and I replied bubblebeard above about Tauri.

Re: Show HN: Rust GUI Library via Flutter

#22

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?

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

#24
post #4

How does this compare to rinf?

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/

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.

Re: Show HN: Rust GUI Library via Flutter

#25
post #16

Earlier quoted context omitted.

The first image at the bottom of that post may be related to your question: https://www.reddit.com/r/rust/comments/191b2to/rinf_copies_a... Btw, why is your name green?

Green usernames mean they're a new account! Here's a quote from the official FAQs: > What do green usernames mean? > Green indicates a new account. https://news.ycombinator.com/newsfaq.html

Thank you!

Re: Show HN: Rust GUI Library via Flutter

#27
post #5

I have been using this to build an app[0] for the last couple of years and I want to say that it has been a pleasure to use, there are some wrinkles but overall I have been very happy with the experience. Upgrading from v1 to v2 was not too difficult and v2 is a significant upgrade with lots of useful features, massively improved codegen experience and support for tokio async were the big gamechangers for me. Writing…

> I know Flutter/Dart doesn't get much love here on HN but in my opinion I think it's much easier to reason about than a system like React which I think is the wrong level of abstraction compared to Flutter's render the entire widget tree approach.

Could you expand on this a bit? My impression was that Flutter and React had relatively similar approaches to components, but I haven't had much experience with Flutter yet, so I'm interested to hear your experiences!

Re: Show HN: Rust GUI Library via Flutter

#29
post #27
post #5

I have been using this to build an app[0] for the last couple of years and I want to say that it has been a pleasure to use, there are some wrinkles but overall I have been very happy with the experience. Upgrading from v1 to v2 was not too difficult and v2 is a significant upgrade with lots of useful features, massively improved codegen experience and support for tokio async were the big gamechangers for me. Writing…

> I know Flutter/Dart doesn't get much love here on HN but in my opinion I think it's much easier to reason about than a system like React which I think is the wrong level of abstraction compared to Flutter's render the entire widget tree approach. Could you expand on this a bit? My impression was that Flutter and React had relatively similar approaches to components, but I haven't had much experience with Flutter ye…

I’m too lazy right now to get into all of the specifics but just wanted to drop a quick note to say that I’ve been doing web development since 1997 and the difference between React and Flutter is like day and night.

It’s genuinely hard for me to overstate the general quality of life improvements both from the developer experience and the overall quality of the apps I can produce in any given time frame.

A big part of the reason for that is Dart is itself hands down the nicest language I’ve ever worked with. The team behind it got real serious when it comes to tooling and language design and everytime I have to go back to TypeScript I feel like I’m trying to run with a 50kg backpack on.

Re: Show HN: Rust GUI Library via Flutter

#30

Earlier quoted context omitted.

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.

Isn't Dart type safe?

Dart is order of magnitude slower than Rust.
Post reply on HN