News for hackers. Stuff that matters.
Re:Announcing Flutter beta 1: Build beautiful native apps by brainyz on Tuesday February 27, 2018 @11:08AM (#16474697)
Does it have any advantages over React Native?
Re:Announcing Flutter beta 1: Build beautiful native apps by lenkite on Tuesday February 27, 2018 @11:16AM (#16474801)
AOT compiled to native code that uses the native instruction set - no interpreter/vm involved.

Uses custom rendering engine based on Skia.

Can write UX just once for all platforms if you don't mind fixing the widget set.

Custom widgets work on all supported platforms.

Can in theory be ported to Desktops also, assuming someone writes flutter engine bindings for Win/MacOS/Linux. If this occurs, then you will truly have a modern, cross-XP, write-once-run-anywhere, compile-to-pure-binary, reactive UX framework

Re:Announcing Flutter beta 1: Build beautiful native apps by markdog12 on Tuesday February 27, 2018 @01:18PM (#16476274)
Looks like work has already started on Desktop: https://github.com/google/flutter-desktop-embedding/tree/mas...
Re:Announcing Flutter beta 1: Build beautiful native apps by cwyers on Tuesday February 27, 2018 @11:23AM (#16474897)
What "theory" keeps React Native from being ported to desktops?
Re:Announcing Flutter beta 1: Build beautiful native apps by lenkite on Tuesday February 27, 2018 @11:27AM (#16474949)
React Native is already ported to desktops but you need to write N times for N platforms. In flutter, you can write just once after choosing a widget set, assuming you don't mind the same widgets everywhere.
Re:Announcing Flutter beta 1: Build beautiful native apps by cwyers on Tuesday February 27, 2018 @11:34AM (#16475026)
So it's like Xamarin -- there's UI for iOS, UI for Windows, UI for Android, but you can also use "Xamarin Forms" and have a similar appearance everywhere. But there's nothing stopping there from being a "React Forms" or whatever that does the same thing, is there?
Re:Announcing Flutter beta 1: Build beautiful native apps by jrs95 on Tuesday February 27, 2018 @11:52AM (#16475259)
Flutter has MUCH better performance than Xamarin Forms though. React could theoretically have something just as good for a cross platform UI toolkit, but given that Flutter took several years to even get to a beta, I think that would probably be a long and expensive project for Facebook and they're likely just not interested in it. That sort of thing sort of runs against the core philosophy of React Native anyways.
Re:Announcing Flutter beta 1: Build beautiful native apps by newdayrising on Tuesday February 27, 2018 @01:12PM (#16476199)
Do you have a Xamarin vs Flutter benchmark you'd like to share?
Re:Announcing Flutter beta 1: Build beautiful native apps by jrs95 on Tuesday February 27, 2018 @04:11PM (#16477928)
Unfortunately no, this was purely anecdotal based on my experiences using sample/demo applications.
Re:Announcing Flutter beta 1: Build beautiful native apps by pknopf on Tuesday February 27, 2018 @11:46AM (#16475182)
> being a "React Forms" or whatever that does the same thing, is there?

Nothing stopping it, nope. I'm surprised there isn't something currently.

That said, it isn't so bad using different render functions for different platforms. The state management and event handling should be 100% consistent.

Besides, going all in on a single render engine limits you to creating special "holes" to utilize controls native to the platform. Im not sure if flutter supports this, but I doubt it.

Re:Announcing Flutter beta 1: Build beautiful native apps by piaste on Tuesday February 27, 2018 @01:42PM (#16476493)
> Nothing stopping it, nope. I'm surprised there isn't something currently.

There is - ironically, by the owners of Xamarin:

https://microsoft.github.io/reactxp/

Hadn't heard of it practically at all since the initial announcement. It seems it's a very small team: https://github.com/Microsoft/reactxp/pulse

Re:Announcing Flutter beta 1: Build beautiful native apps by cwyers on Tuesday February 27, 2018 @01:15PM (#16476239)
Sure. It just seems odd to list "Flutter could do X" as a benefit if React could do it, too. Yes, React doesn't do it yet, but it also could.
Re:Announcing Flutter beta 1: Build beautiful native apps by Harimwakairi on Tuesday February 27, 2018 @11:19AM (#16474834)
There's a few.

- Flutter renders the UI itself rather than using native components, so you get the same experience on both iOS and Android.

- Flutter uses Dart, which can be compiled AOT, rather than relying on an interpreter.

- Flutter is completely open source, tools, engine, all of it. You can go a long way down before hitting iOS platform code, for example, that you don't have source access for.

There others, but those are the biggies for me.

Re:Announcing Flutter beta 1: Build beautiful native apps by wwwigham on Tuesday February 27, 2018 @12:20PM (#16475572)
> -Flutter renders the UI itself rather than using native components, so you get the same experience on both iOS and Android.

I thought this was an antipattern in modern mobile device Dev, since you're supposed to make your app "look and feel native" by always using native widgets where possible (and was a major argument for why, eg. Cordova was inferior to react native). Has the collective agreement turned on this, or it is simply contentious?

Re:Announcing Flutter beta 1: Build beautiful native apps by solarkraft on Tuesday February 27, 2018 @01:04PM (#16476101)
I think it is changing.

My personal opinion has definitely shifted, maybe partly because I'm tired of inferior Android experiences of the same app, but also because the looks of Android and iOS seem to be converging anyway.

While maybe they couldn't before, many apps seemingly can now get away with one UX for both platforms - that is a strong simplifier and gives a potential branding advantage.

It may be a good idea to still implement some "platform sensitive" widgets (some behaviors are still slightly different), but the demand for them seems to have drastically gone down.

Re:Announcing Flutter beta 1: Build beautiful native apps by mixmastamyk on Tuesday February 27, 2018 @12:46PM (#16475882)
Pendulum swings. Similar to QT vs wxWidgets.
Re:Announcing Flutter beta 1: Build beautiful native apps by brentjanderson on Tuesday February 27, 2018 @11:22AM (#16474878)
They seem similar in intent and application, however Flutter skips the Javascript-to-native bridge and instead appears to compile to native code for the targeted platform directly, making it faster. In practice, React Native still _feels_ native because it is native and most devices are fast enough for most applications, but the Javascript that operates the native components has a performance penalty due to the bridge between javascript and native.

Dart still has a huge hill to climb for mindshare. The staggering amount of community and documentation around react makes it difficult to carve out a competing solution without the same size of community to write documentation, examples, and answer questions on Stack Overflow.

Re:Announcing Flutter beta 1: Build beautiful native apps by solarkraft on Tuesday February 27, 2018 @01:06PM (#16476125)
> React Native still _feels_ native because it is native

A lot of React Native isn't "Native", but that term is hard to define. They certainly display plaform-own widgets, but afaik they use their own layout functions and such.

Re:Announcing Flutter beta 1: Build beautiful native apps by akerro on Tuesday February 27, 2018 @11:59AM (#16475346)
> Does it have any advantages over React Native?

It's not JavaScript.

Re:Announcing Flutter beta 1: Build beautiful native apps by s73v3r_ on Tuesday February 27, 2018 @01:02PM (#16476076)
It doesn't use JavaScript or the JS ecosystem.