r/programming • u/djpeen • Sep 11 '19
Dart/Flutter get release with C FFI
https://medium.com/dartlang/announcing-dart-2-5-super-charged-development-32882202497021
Sep 11 '19
Stable Desktop when?
9
u/rishav_sharan Sep 11 '19
Desktop is my only criteria for trying out Dart/Flutter.
There are the two pojects to track on this;
5
13
u/feverzsj Sep 11 '19
why Flutter easily gets much more attention than QtQuick?
7
Sep 11 '19
It is very expensive on mobile
QML is a bit of a mess. E.g. it basically ignores all the rules of encapsulation and encourages crazy spaghetti code.
It is very incomplete. Flutter is already more mature than it IMO.
Doesn't emulate native widgets nearly as well.
5
1
u/myringotomy Sep 11 '19
Because people who try it seem to really like it.
Granted they don't hang out here but that's only because this subreddit is extremely hostile to Google and to anybody who programs in anything but c# and windows.
0
4
u/c-smile Sep 12 '19
Question that worries me each time on the subject.
C++ can do already everything Dart is capable of. Yet it works on all platforms already. And it does no need ffi.
What it does better than C++?
Or is it just a replacement for Java (sandboxed execution)? If so then what's wrong with Kotlin?
If it is a replacement of JavaScript then creating native compiler / VM for something like TypeScript could be more productive, no?
So why Dart? So what are its design goals?
5
u/xentropian Sep 12 '19
I think it’s a matter of tooling and convenience. Dart has a way better standard library than C++ ever will, and is a lot easier to write, especially for new developers. It’s also incredibly versatile without much thought-you can run (almost) the same code in the Dart VM (whether that be Linux, Windows, or macOS), on the web, or on mobile, with very little platform-specific code required (unlike C++, where the APIs may change depending on the platform).
1
u/ArmoredPancake Jan 21 '20
Question that worries me each time on the subject.
C++ can do already everything Dart is capable of. Yet it works on all platforms already. And it does no need ffi.
What it does better than C++?
It doesn't want you to stab your eyes out when you write it.
Or is it just a replacement for Java (sandboxed execution)? If so then what's wrong with Kotlin?
JVM.
If it is a replacement of JavaScript then creating native compiler / VM for something like TypeScript could be more productive, no?
No.
9
u/patientzero_ Sep 11 '19
is anyone here who uses Dart in production? Is Google using it heavily internally?
13
u/Comment-Leaver Sep 11 '19
We've used it for a production ready app (needs the backend to catch up before we can go live). Very happy with it!
7
u/SupersonicSpitfire Sep 11 '19
Supposedly, the ad department in Google are the ones using it, and it's successful there, which is why Dart has been kept alive for years now.
6
u/colelawr Sep 11 '19
Yup, the AdWords free and Enterprise web and mobile products are built with AngularDart and Flutter respectively
2
u/nacholicious Sep 11 '19
Except for the AdWords team, they are using it heavily in the Google Home teams
3
-11
u/shevy-ruby Sep 11 '19
Google is trying so hard.
If Dart would have been the skyrocket promise for the future, people outside of the Google world would already use it in massive numbers. The comparison to Go is evident here with Dart.
What happened to the promise of destroying JavaScript, by the way?
11
u/coriandor Sep 11 '19
I think TypeScript and ES6 happened to the promise of destroying JavaScript. But by the time google realized they lost that language war, they'd created what I think is a pretty nifty language that had a lackluster web story, but a nice VM story. When the flutter team started out, Dart wasn't a foregone conclusion. They ended up choosing it because it fits well with the design patterns they wanted, and I think they made a good choice.
6
u/filleduchaos Sep 11 '19
What happened to the promise of destroying JavaScript, by the way?
People pushed back against it (most notably heavily opposing the inclusion of Dart in Chrome), and that doesn't really have anything to do with the merits or demerits of the language.
22
u/warvstar Sep 11 '19
Would be interesting to see the ffi overhead. Last time I checked it was quite slow. https://github.com/dyu/ffi-overhead