Live data from Hacker News

Show HN: Rust GUI Library via Flutter

cjycode.com

101–108 of 108 posts

Re: Show HN: Rust GUI Library via Flutter

#101
post #89

Earlier quoted context omitted.

React doesn't work in the same way? I don't know much about it, but I assumed it does.

I'm not sure. Hopefully someone here can let us know. I didn't mean to imply that react doesn't work that way.

It does work that way. However, Flutter and now React (via their new compiler) are becoming smarter at rerendering, where they will only rerender what has truly changed, not just rerender the entire tree below the changed component.

Re: Show HN: Rust GUI Library via Flutter

#102

Does anyone know if Google plans to sunset the entire Flutter framework over time? Since they fired just about everybody internal who was working on it, I don't have a lot of confidence that Flutter will still have any Google support in 3-5 years. Has anyone talked about forking it and putting it under an independent foundation to ensure its long-term viability? Given Google's track record of long-term support for it…

What? No one in the Flutter team got fired. The only ones who potentially had something to do with it were people on the Google Cloud team that ran the pipelines for Flutter builds, but even then, they didn't directly work on Flutter, and their roles just got outsourced anyway to Europe, so it's not like Flutter itself was actually affected.

Re: Show HN: Rust GUI Library via Flutter

#103
post #65

Earlier quoted context omitted.

I’m curious what you don’t like about Dart? I thought I wouldn’t like it but I’ve found it surprisingly nice.

Off the top of my head: 1) Types on the left 2) Statement, not expression, based 3) No privacy modifiers (aka, underscores everywhere) 4) required semicolons 5) no language support for json (de)serialization, or, json boilerplate everywhere (yikes) I've tried to get into Flutter 3x now, and each time Dart has defeated me. Flutter is quite good though, so take the good with the bad, I just can't stomach Dart (yet).

I've used lots of languages and those are fairly minor things. For example, I use Rust as well as Dart and just, "types on the left" is seriously an issue? In Dart 3 as well, many statements are now expressions, like switch and if/else, and in some cases, for. For something like JSON serde, Dart will have it soon via macros [0], just like Rust's serde macros. Sounds like you just need to build something you want to build and you'll get used to the language naturally. For me, the utility of Flutter and making cross platform apps outweighs Dart, and anyway, it is quite nice now with Dart 3.

[0] https://dart.dev/language/macros#use-the-macro

Re: Show HN: Rust GUI Library via Flutter

#104

How does this compare to rinf?

Note that the linked thread by OP has now been resolved and the rinf author fixed and apologized [0]. This thread might be a better start on the differences [1].

[0] https://github.com/cunarist/rinf-status-report

[1] https://www.reddit.com/r/FlutterDev/comments/1dnwagk/flutter...

Re: Show HN: Rust GUI Library via Flutter

#106
post #51

Earlier quoted context omitted.

Not op but I’m developing an application with this exact approach as we speak, although my backend code is in Dart also. You can also do gRPC over Unix domain sockets too if you’re sticking with desktop but overall I really like this approach as it makes it trivial for me to move from desktop app to web app with only some minor config changes.

How is the dart backend story? I've not heard much about people using dart on the server, are there mature frameworks out there?

I love it personally and with gRPC I don’t really have much of a need for any kind of backend framework at all. I just follow the guidance at aip.dev and raw dog it using language primitives for the most part.

Re: Show HN: Rust GUI Library via Flutter

#107
post #71

Earlier quoted context omitted.

Why conflate Google's customer facing products with their OSS technology contributions? It seems a weird comparison to make, as if their sales and marketing departments are the ones behind technology decisions. Angular came out of Google and hasn't gone anywhere. Also GoLang.. even GWT was supported well past its prime and is now maintained by the community. What evidence is there that they abandon languages and fram…

> Angular came out of Google and hasn't gone anywhere. I think you actually answered your own question. The difference is that Angular was already a hugely adopted and relatively simple piece of technology (the difference between a JavaScript framework and all the moving parts and pieces of Flutter/Dart is huge) Since the latter doesn’t have anywhere near the investment outside Google it’s not a fair comparison. The…

What about the GoLang comparison?

> The fear that if Google drops it, it will die are legitimate

I'm not trying to argue against the fact it would die or not. I'm mainly trying to understand why people think Google would abandon it. Abandoning Google Reader and abandoning Flutter or GoLang are _not_ the same in my eyes, and I can't think of any cases where Google has abandoned a technology rather than a consumer facing product in this fashion.

Re: Show HN: Rust GUI Library via Flutter

#108
post #89

Earlier quoted context omitted.

>i.e. on every state update, the whole app gets rendered Yes, that's basically correct: >Calling setState notifies the framework that the internal state of this object has changed in a way that might impact the user interface in this subtree, which causes the framework to schedule a build for this State object.[0] The `build` method rebuilds the entire widget tree. So "the whole app" does not necessarily get re-rende…

React doesn't work in the same way? I don't know much about it, but I assumed it does.

[deleted]
Post reply on HN