Live data from Hacker News

Ubuntu Makes Flutter ‘Default Choice’ for Future Desktop Apps

omgubuntu.co.uk

71–80 of 120 posts

Re: Ubuntu Makes Flutter ‘Default Choice’ for Future Desktop Apps

#71
Wow, that’s a risky bet. Google may change their mind in 1 year and just drop the project, as they do so often. That’s enough for me to be sure I won’t build anything based on one of the company side project as I never know (and have no way to know) what is an experiment or an actual product they plan to maintain long term.

Hopefully for Canonical everything will go well, I wish them good luck.

Re: Ubuntu Makes Flutter ‘Default Choice’ for Future Desktop Apps

#72

As both a Flutter dev and an Ubuntu user, I am thrilled by the news. Looking forward to seeing how it all works out. In a nutshell, if anyone is interested how this works, the Flutter apps will be converted and compiled as GTK3 apps. Dart has the FFI package so it's fairly simple as a Flutter dev to do C system calls in Dart. This will of course stop your app from being cross platform out of the box (but I doubt this…

> converted and compiled as GTK3 apps What do you mean by that? Isn't one of the goals of Flutter that it gives you pixel-perfect controls, and renders everything itself?

I assume parent means that the compiled flutter app uses GTK3 as the shell for spawning windows and initializing the Skia context to which the app can render.

This is also how Druid the Rust GUI framework works on Linux. Use GTK to start the window and the paint surface (Cairo).

Re: Ubuntu Makes Flutter ‘Default Choice’ for Future Desktop Apps

#73
post #9

I wish they would expand on what's wrong with Qt or GTK. Flutter support on both Windows and Linux is pretty bad. In my opinion, electron is a better choice for cross platform desktop UI--VScode is a shining example of what that can accomplish. And they're in for a lot of work if they want to customize Flutter so it doesn't look material or cupertino. Also, their big contribution to Flutter is getting it on the snap…

I fear the day we replace everything with JavaScript. All JavaScript apps are so unbelievably slow compared to native apps with native toolkits. At work I need to use MS Teams and holy shit it's so slow and if I'm compiling code it's barely usable on an 8 core processor. I had better performance with chat clients in 2002 on hardware that was about 1% as fast as mine today. VS Code is also very slow, you just don't no…

> VS Code is also very slow, you just don't notice it as much on today's machines.

That's plain wrong. I recently upgraded my 7 years old mid range laptop and VSCode ran just fine on it, even with the required set of extensions for my projects. I upgraded because I had other issues, but VSCode wasn't one.

Re: Ubuntu Makes Flutter ‘Default Choice’ for Future Desktop Apps

#74
post #16
post #9

Earlier quoted context omitted.

I fear the day we replace everything with JavaScript. All JavaScript apps are so unbelievably slow compared to native apps with native toolkits. At work I need to use MS Teams and holy shit it's so slow and if I'm compiling code it's barely usable on an 8 core processor. I had better performance with chat clients in 2002 on hardware that was about 1% as fast as mine today. VS Code is also very slow, you just don't no…

I don't think it's safe to generalize "x is slow and electron, y is fast and native" to mean "native is fast". Electron lowering barrier to entry also means it's used by projects who aren't going to carefully profile their app no matter what, so the same app written as a native app would also be garbage. At least some of it is "correlation not causation" And for your chat example, when I was at IBM the Sametime chat…

"native is fast" is a statement of fact that is not open to debate. That fact is obvious to anyone who understands enough about compilers. The real question is "Are the tradeoffs between native and $portable_platform worth it?", which is generally subjective.

Re: Ubuntu Makes Flutter ‘Default Choice’ for Future Desktop Apps

#75
post #58
post #36

Earlier quoted context omitted.

> Canonical is just all over the place. We should encourage experimentation and risk taking. No company can always get things right. Phones are a duopoly, but I'm glad they tried. Unity was fairly decent, but in the end adopting Gnome benefitted everyone. Ads were the only bad idea I can think of; but hey I've been using their wonderful software for 15 years now at a total cost of zero.

In theory I agree, but Canonical really seem to do it over and over. Whether it's NIH or something else, it seems every time technology starts shifting, Ubuntu goes its own way only to drop it a year or two later. Unity/compiz, Mir , Ubuntu One, Upstart, Bazaar. And currently baking are Snaps and LXD. This isn't to say any of these are bad products, but it has real effects to the end user, who invest time in somethin…

What is wrong with LXD? It provides a nice REST API and better user experience for those of us who like LXC.

Re: Ubuntu Makes Flutter ‘Default Choice’ for Future Desktop Apps

#76

I wish they would expand on what's wrong with Qt or GTK. Flutter support on both Windows and Linux is pretty bad. In my opinion, electron is a better choice for cross platform desktop UI--VScode is a shining example of what that can accomplish. And they're in for a lot of work if they want to customize Flutter so it doesn't look material or cupertino. Also, their big contribution to Flutter is getting it on the snap…

[deleted]

Re: Ubuntu Makes Flutter ‘Default Choice’ for Future Desktop Apps

#77
post #70
post #39

Earlier quoted context omitted.

> VScode is a shining example of what that can accomplish I see this mentioned quite often here, but that's not a valid argument in favour of Electron Apps. VSCode is the primary focus for a user when it's active - so it's fine if it takes up a significant proportion of a machine's resources. Now if a bunch of background taskbar apps, calculators and notepads start doing the same, user experience is going to go downh…

> it's fine if it takes up a significant proportion of a machine's resources I currently run 2 VScode instances and they literally total 70 MB. So no, it's not significant, on the contrary actually. And to be fair, even if it was 700 MB, I wouldn't care. Even older machines have at least 4 GB memory.

I'm always puzzled by these kinds of retorts. It's wonderful that you've never experienced performance or resourcing issues with Electron apps. But just because you haven't, doesn't mean other people don't.

For the record, VSCode chugs like a MF on my Thinkpad running XFCE with 4gb of RAM. Meanwhile, Sublime Text flies

Re: Ubuntu Makes Flutter ‘Default Choice’ for Future Desktop Apps

#78
post #39

Earlier quoted context omitted.

> VScode is a shining example of what that can accomplish I see this mentioned quite often here, but that's not a valid argument in favour of Electron Apps. VSCode is the primary focus for a user when it's active - so it's fine if it takes up a significant proportion of a machine's resources. Now if a bunch of background taskbar apps, calculators and notepads start doing the same, user experience is going to go downh…

The impact could reduced if a single Electron runtime is shared across apps. Imagine the various HTML5 mobile phone environments, like Palm's webOS, but in a desktop setting.

Yes, we could have tabs to switch between different applications running on that shared runtime.

And a universal way of accessing any published application for that runtime through some kind of address bar.

Re: Ubuntu Makes Flutter ‘Default Choice’ for Future Desktop Apps

#79
post #70

Earlier quoted context omitted.

> it's fine if it takes up a significant proportion of a machine's resources I currently run 2 VScode instances and they literally total 70 MB. So no, it's not significant, on the contrary actually. And to be fair, even if it was 700 MB, I wouldn't care. Even older machines have at least 4 GB memory.

I'm always puzzled by these kinds of retorts. It's wonderful that you've never experienced performance or resourcing issues with Electron apps. But just because you haven't, doesn't mean other people don't. For the record, VSCode chugs like a MF on my Thinkpad running XFCE with 4gb of RAM. Meanwhile, Sublime Text flies

I'm not talking about Electron apps but about VSCode specifically. I just cannot reproduce high RAM usage with it on any machine. Slack in comparison sucks bad for example, but reports of high memory usage for VSCode sound like fakes from non-users/haters.

Re: Ubuntu Makes Flutter ‘Default Choice’ for Future Desktop Apps

#80
post #31

I am bringing some negative energy but I've been burned. I don't understand the hype about flutter - putting aside that dart is a tool that made more sense in a different timeline, or that some of the examples seem really slow/buggy, or that it's rendering behavior is a nightmare to guarantee consistency - putting all that aside, I've yet to see anyone build anything non-trivial with flutter. And then there's Ubuntu.…

Yes, in my view Canonical betting on flutter is almost a testament to flutter doom. Choosing flutter is not the right choice anyway: it’s a lot more limited compared to Qt, it requires a language which is not used anywhere else, it’s slow and heavy, its tooling is incredibly complex, on some platforms won’t probably be ported anytime soon (if ever).
Post reply on HN