News for hackers. Stuff that matters.
Re:Flutter: a Portable UI Framework for Mobile, Web, Embedde... by pjmlp on Wednesday May 08, 2019 @01:36AM (#19856123)
Internal politic wars at Google, with management having popcorns to see who wins at the end.

If you are confortable with Qt, JavaFX, Xamarin, there is hardly anything to see with Flutter, plus they are based on programming languages that you actually want to have on your CV, instead of one that was dropped from Chrome and rescued at last minute by AdWords team.

Plus, even Fuchsia is not so focused on Flutter anylonger. Android userspace is being ported to Fuchsia, and now they have a UI Framework agnostic layer, Scenic, with examples in C++ and Rust.

Re:Flutter: a Portable UI Framework for Mobile, Web, Embedde... by Nokinside on Wednesday May 08, 2019 @07:33AM (#19857840)
> Internal politic wars at Google

If you allow internal politics in technical decisions, the old is drowning the new child that is tasked with killing the old every time.

This is what really killed Nokia's platform domination in mobile phones. Google should take a note.

Nokia had dominating smartphone platform (Symbian) and market dominance in mobile phones. It was becoming old, messy and outdated but still doing fine at the moment. Instead of choosing and committing they allowed innovation but allowed the most critical decision for the company to be the question of internal politics. Linux/Qt based new system was sabotaged from inside buy people whose careers were based on the old Symbian. Of course the VP who overseeing overseeing billions in revenue is looked differently than VP that is tinkering with the new platform with bunch of young Linux hackers.

Netflix is perfect example of how to execute technological transition correctly. They made the decision to move from DVD rental to steaming when disc rental was still making money and there was time. They committed to it. People working in the money making disc rental side were shut down completely from the discussions where the company future was planned and made.

Google has so much market dominance that it can make these attempts and never commit, but it also guarantees that they will never succeed. Developers outside the company know that everything is just 'another try out' and it's not worth of getting into it.

Re:Flutter: a Portable UI Framework for Mobile, Web, Embedde... by ksec on Wednesday May 08, 2019 @09:58AM (#19858838)
>People working in the money making disc rental side were shut down completely from the discussions where the company future was planned and made.

This is brilliant. I continued to be surprised at how well Netflix executed everything so well. Are there any counter example they didn't do so well?

Re:Flutter: a Portable UI Framework for Mobile, Web, Embedde... by ptx on Saturday May 11, 2019 @07:43AM (#19885696)
Weren't Symbian and MeeGo both sabotaged by Stephen Elop who came in briefly from Microsoft to assume the role of CEO of Nokia, decided to burn everything they had to instead buy Microsoft's solution, and then returned to Microsoft when the job was done?
Re:Flutter: a Portable UI Framework for Mobile, Web, Embedde... by pax_americana on Wednesday May 08, 2019 @07:05AM (#19857678)
> Plus, even Fuchsia is not so focused on Flutter anylonger. Android userspace is being ported to Fuchsia, and now they have a UI Framework agnostic layer, Scenic, with examples in C++ and Rust.

I highly doubt that. See here https://fuchsia.googlesource.com/topaz/+/bd4464d6b8d586d74b6...

Re:Flutter: a Portable UI Framework for Mobile, Web, Embedde... by pjmlp on Wednesday May 08, 2019 @08:25AM (#19858145)
Yes, Flutter is still there. I didn't say it was removed, only that it is being downgraded to one among many options.
Re:Flutter: a Portable UI Framework for Mobile, Web, Embedde... by pax_americana on Wednesday May 08, 2019 @02:26PM (#19861553)
I don't think scenic is written in Rust. A big chunk of the source code in the topaz layer (the view layer) is still written in dart. With that said, many were actually surprised when it was revealed that ermine (the new fuchsia shell) was written in dart/Flutter [1] since earlier code for it was in Rust [2]. Guess that didn't pan out.

[1] https://fuchsia.googlesource.com/topaz/+/refs/heads/master/s...

[2] https://fuchsia-review.googlesource.com/c/topaz/+/184430

Re:Flutter: a Portable UI Framework for Mobile, Web, Embedde... by pjmlp on Wednesday May 08, 2019 @03:12PM (#19861925)
Who said anything about Scenic being written in Rust?
Re:Flutter: a Portable UI Framework for Mobile, Web, Embedde... by mindentropy on Wednesday May 08, 2019 @01:41AM (#19856145)
For embedded devices the only good toolkit is Qt and the licensing costs are pretty high. Flutter for embedded is interesting in this regard.
Re:Flutter: a Portable UI Framework for Mobile, Web, Embedde... by pjmlp on Wednesday May 08, 2019 @02:12AM (#19856297)
Gluon, PTC and Aicas also license JavaFX.

Qt licensing costs are quite standard to market prices of similar products.

Also if one doesn't want to pay for Qt, it is free to do themselves the same they want to do with upstream developers.

Re:Flutter: a Portable UI Framework for Mobile, Web, Embedde... by kristoffer on Wednesday May 08, 2019 @06:44AM (#19857595)
Your last sentence is a bit hard to comprehend but not paying for Qt and shipping a commercial embedded product is pretty difficult due to the anti-tivoization clauses of GPL3.

I agree with parent poster that flutter is very interesting for Embedded GUI development.

Re:Flutter: a Portable UI Framework for Mobile, Web, Embedde... by Nokinside on Wednesday May 08, 2019 @06:58AM (#19857651)
Qt has LGPL3 license Not GPL3.

It's really easy to ship commercial Qt app with LGPL3 (except few modules that are GPL3) You just provide sources or linkable object files.

Qt intentionally avoids explaining how to do this because they are selling commercial licenses. If you are in software business and can't figure this out, maybe you should consult someone.

(disclosure: I own commercial Qt license and stock in the company)

Re:Flutter: a Portable UI Framework for Mobile, Web, Embedde... by kristoffer on Wednesday May 08, 2019 @07:28AM (#19857809)
No need for the tone.

That is really easy as you say. What you seem to have overlooked are the implications of doing this. You are forced to help customers replace the Qt libraries in your product. That has quite large security/warranty implications.

So ... no thanks!

I do contract work for a company licensing Qt5. I'm hoping for Flutter or something else to kill Qt in the long run.

Re:Flutter: a Portable UI Framework for Mobile, Web, Embedde... by Nokinside on Wednesday May 08, 2019 @07:53AM (#19857947)
> No need for the tone.

I think I'm allowed for the tone when you respond with the following:

>You are forced to help customers replace the Qt libraries in your product. That has quite large security/warranty implications.

The above is completely wrong.

You develop and distribute your closed source software and link it with QT libraries like you would do normally. Nothing is needed from the customers. Your closed source software can be statically linked to LGPL binaries (to fix another common misconception).

What is needed from you is a way for the customers to get things separately. It can be written offer, link to files in the website (used to be directory in DVD). You can be almost 100% certain that your customers will never use or notice this option. It's just there to comply with the license.

Re:Flutter: a Portable UI Framework for Mobile, Web, Embedde... by kristoffer on Wednesday May 08, 2019 @08:08AM (#19858041)
You don't agree that you need to provide a way for your customers to replace the Qt libraries? (because that is a fact of LGPL3, read the anti tivoization clause).

Do you see any possible security problems with the above?

Because in reality it means that you give your customers the possibility to run their own code on your hardware. That is a problem for many companies and products.

Re:Flutter: a Portable UI Framework for Mobile, Web, Embedde... by Nokinside on Wednesday May 08, 2019 @08:27AM (#19858151)
>You are forced to help customers replace the Qt libraries in your product.

Depends on what you mean by 'help'. You are forced to give the opportunity for them to do the work if they need it. If you have statically linked files, it can't be done by accident.

> Do you see any possible security problems with the above?

No I don't. When I provide completely closed binaries for my customers, they can hack with the binaries and create security problems if they want to.

Software security is not improved by obfuscation. If you don't want your customers create security problems, you don't allow them to modify the software in your hardware.

Btw. I'm confused by your wording. I'm suspecting that you have some underlying assumptions you are not stating. Are you thinking that LGPL forces you to allow customers to modify the software in the hardware they are buying?

Re:Flutter: a Portable UI Framework for Mobile, Web, Embedde... by kristoffer on Wednesday May 08, 2019 @09:14AM (#19858502)
I think I'm clearly stating my assumptions. GPL3 and LGPL3 requires you to enable the user to replace the GPL/LGPL3 code on your device with the users own version of said code. It does not matter if you link statically.

Now, it would be possible let the user do this and not let it be a problem for your product (in terms of security, reverse engineering, ip theft, etc) but it is more and harder work.

I have used both older version of Qt (LGPL2) without licensing and newer (LGPL3) with licensing in commercial products. The former was not a problem. But using LGPL3 Qt without licensing in a commercial embedded product is a headache (if you are concerned about the problems it might bring), according to me.

Hence, I wish Flutter all the best.

Re:Flutter: a Portable UI Framework for Mobile, Web, Embedde... by Nokinside on Wednesday May 08, 2019 @09:40AM (#19858694)
Notice the exception:

> But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).

- If you ship embedded product where the code is not supposed to be easily upgraded, you don't have to provide means to do that. Anti-Tivoization applies to cases like TiVo where they added DRM to prevent users from upgrading but allowing you to upgrade.

- Also, anti-Tivziation clauses don't apply software distributed to business. Medical devices or safety critical software etc. Any devices sold to business.

Re:Flutter: a Portable UI Framework for Mobile, Web, Embedde... by kristoffer on Thursday May 09, 2019 @04:30AM (#19866397)
I am yet to see a embedded system using Qt that is not upgradeable.

And lots of embedded systems are sold to consumers.

In what way was I "completely wrong"? It seems to me you were the one who was wrong and now are grasping at straws...

Re:Flutter: a Portable UI Framework for Mobile, Web, Embedde... by detaro on Wednesday May 08, 2019 @09:16AM (#19858512)
> If you don't want your customers create security problems, you don't allow them to modify the software in your hardware.

How do you do that, while said software depends on LGPL3 licensed Qt?

Re:Flutter: a Portable UI Framework for Mobile, Web, Embedde... by Nokinside on Wednesday May 08, 2019 @09:41AM (#19858704)
from GPL v3

> But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).

Also, anti-tivoizaton clauses does not apply to devices sold to business.

Re:Flutter: a Portable UI Framework for Mobile, Web, Embedde... by detaro on Wednesday May 08, 2019 @01:54PM (#19861304)
Good point, forgot about the latter part, that probably would help in some cases. Gotta ask some licensing experts about that one.

From what I see, only a tiny part of the potential market for embedded Qt and things like that can get away with "no updates possible", but still, applies for some.

Re:Flutter: a Portable UI Framework for Mobile, Web, Embedde... by sievebrain on Wednesday May 08, 2019 @03:19AM (#19856592)
JavaFX is fully open source, it doesn't need licensing. It also supports hardware acceleration, embedded usage on Linux, animation framework etc. Also, fits well with kotlin.
Re:Flutter: a Portable UI Framework for Mobile, Web, Embedde... by _pmf_ on Wednesday May 08, 2019 @06:42AM (#19857578)
Please link me to an image for RPi or BBB that has working HW accelerated JavaFX. I'm not being sarcastic, I'd actually like to know.
Re:Flutter: a Portable UI Framework for Mobile, Web, Embedde... by pjmlp on Wednesday May 08, 2019 @05:34AM (#19857253)
Good luck getting JavaFX working out of the box in the embedded hardware supported by those vendors with the code at the open source repository.

Who do you think does the porting and OEM certification work?

Re:Flutter: a Portable UI Framework for Mobile, Web, Embedde... by kdot on Wednesday May 08, 2019 @01:21PM (#19861001)
Flutter is very similar to Qt: signals and slots are similar to streams and sinks, and the BLoC pattern is similar to the state machine paradigm in Qt. I've been loving Flutter and Dart, developing with it seems almost too easy.
Re:Flutter: a Portable UI Framework for Mobile, Web, Embedde... by pjmlp on Wednesday May 08, 2019 @03:19PM (#19861976)
With the big difference that JavaScript and C++ are CV worthy languages, while Dart is fighting for its survival.
Re:Flutter: a Portable UI Framework for Mobile, Web, Embedde... by Apocryphon on Wednesday May 08, 2019 @03:36AM (#19856669)
I’m sure those are all great cross-platform solutions, and Qt in particular has been around forever and predates smartphones, but you never hear about high-profile app examples that use them. Unlike React Native, which has lost more high-profile companies that previously tried them than I’ve ever heard of any firm using Xamarin.

I wonder why is that. Doubtlessly you can make great apps with say NativeScript, or in Pascal with Delphi or Lazarus, but no one chooses those frameworks for some reason.

Re:Flutter: a Portable UI Framework for Mobile, Web, Embedde... by jcelerier on Wednesday May 08, 2019 @04:53AM (#19857044)
> but you never hear about high-profile app examples that use them.

part of the reason for that is that a bunch of companies are paying TQTC for their tech stack not being known. But if you are looking for high-profile stuff using Qt, how about :

- the Tesla UI (https://twitter.com/qtproject/status/998902009922285568?lang...)

- and a lot of the modern in-vehicule infotainment stack actually

- LG screens (https://www.qt.io/lg-electronics-built-with-qt)

- Allegorithmic Substance stuff (https://blog.kitware.com/from-one-software-to-many-at-allego...)

- The Blizzard launcher (https://www.quora.com/What-front-end-and-back-end-technologi...)

- Amazon Lumberyard (and its grandfather CryEngine) : https://github.com/aws/lumberyard

- Microsoft Onedrive

- AMD Radeon panel (https://www.qt.io/amd-built-with-qt)

etc etc..

but generally speaking, it is not in the DNA of Qt-using companies to post nice articles on reddit / HN which has the pernicious effect of reducing its place in the dev mind marketshare and making it harder to hire...

Re:Flutter: a Portable UI Framework for Mobile, Web, Embedde... by pjmlp on Wednesday May 08, 2019 @05:27AM (#19857215)
There are plenty of high-profile Qt apps running on four wheels, and I bet with more users than all Flutter apps combined.
Re:Flutter: a Portable UI Framework for Mobile, Web, Embedde... by Apocryphon on Wednesday May 08, 2019 @09:46AM (#19858748)
Sure, but are they running on smartphones?
Re:Flutter: a Portable UI Framework for Mobile, Web, Embedde... by flohofwoe on Wednesday May 08, 2019 @08:18AM (#19858095)
> but you never hear about high-profile app examples that use them

The entire UI of Maya (Autodesk) has been implemented in Qt since Maya 2011. I guess that's about as "high-profile" as it gets.

Not that I'm a fan of Qt, IMHO it's a bloated mess. But that doesn't mean high-profile apps don't use it ;)

Re:Flutter: a Portable UI Framework for Mobile, Web, Embedde... by davedx on Wednesday May 08, 2019 @04:14AM (#19856852)
Can you explain what you mean about React Native? If I understand, you're saying more companies have tried and then abandoned React Native than Xamarin? Can you provide evidence of this please?
Re:Flutter: a Portable UI Framework for Mobile, Web, Embedde... by Apocryphon on Wednesday May 08, 2019 @09:44AM (#19858725)
Sure. The major apps that were previously using React Native are AirBnB and Udacity, who are fairly prominent as far as startups go. As far as companies currently using the framework, they are respectably impressive:

https://facebook.github.io/react-native/showcase.html

I haven’t heard of anyone similar using Xamarin, not even Microsoft-related ventures. Maybe because they’re mostly not in the U.S.?

https://www.altexsoft.com/blog/mobile/13-apps-made-with-xama...

Re:Flutter: a Portable UI Framework for Mobile, Web, Embedde... by bauerd on Wednesday May 08, 2019 @04:14AM (#19856851)
Lack of ecosystem. You'll find yourself having to write ports/bindings/however these are called on your own.
Re:Flutter: a Portable UI Framework for Mobile, Web, Embedde... by HacklesRaised on Thursday May 09, 2019 @03:36AM (#19866142)
That's somewhat disingenuous. When Apple added bluebox to Rhapsody were they not so focused on AppKit any longer?
Re:Flutter: a Portable UI Framework for Mobile, Web, Embedde... by gaze on Wednesday May 08, 2019 @07:13AM (#19857719)
Holy hell, this makes me want to never work for google.