News for hackers. Stuff that matters.
Re:Understanding null safety in Dart by Abishek_Muthian on Saturday July 25, 2020 @02:18PM (#23951290)
Not a Dart programmer, but looking at it for flutter. I see from Jetbrains Developer Survey[1] that Dart has grown to 9% from 6% last year[2] which I think is because of flutter, which has grown its share to 39% in cross-platform development.

But doesn't it seem reasonable to use TypeScript for flutter now? If you are not a Googler, Where do you use Dart (outside flutter) in production for a purpose where it is better than TypeScript?

[1]https://www.jetbrains.com/lp/devecosystem-2020/

[2]https://www.jetbrains.com/lp/devecosystem-2019/

Re:Understanding null safety in Dart by sebe on Saturday July 25, 2020 @07:22PM (#23953157)
>But doesn't it seem reasonable to use TypeScript for flutter now?

Flutter started as an experiment from chrome team, so their first language was JavaScript, when they move to dart they decided to write the whole framework layer in dart, the engine is in C/C++, so it seems there is no going back to a JS world.

https://flutter.dev/docs/resources/technical-overview#layer-...

With the Dart, they got a VM, GC and other tools and a language team that could grow Dart to suit flutter. They also got stateful hotreload, a Dart idea, which was something that the Flutter team didn't know they wanted.

Re:Understanding null safety in Dart by latchkey on Saturday July 25, 2020 @05:04PM (#23952412)
I use Dart for my Flutter ios/android app and Typescript for my backend for the app. I don't think I'd even consider reversing that.

Why? Libraries.

Re:Understanding null safety in Dart by filleduchaos on Saturday July 25, 2020 @10:26PM (#23953932)
For Flutter's needs (performant-enough JIT as well as stable AOT compilation for a variety of targets), TypeScript's (own) tooling is pretty much nonexistent.

Of course, the Flutter team could build the toolchains they need themselves. Or they could just...use the up-to-par language they're already using instead of rewriting things for no real reason.

Re:Understanding null safety in Dart by syspec on Saturday July 25, 2020 @07:43PM (#23953242)
I say this as a huge IntelliJ fan, ask anyone who knows me. My friends joke that I must be collecting commission checks, for as much as I nudge people toward IntelliJs awesome IDEs.

Take this survey with a grain of salt, because the results come from IntelliJ users, and IntelliJs most important and popular product is IntelliJ IDEA, a Java IDE (and other things)

So the results will skew in that direction for that userbase.

Re:Understanding null safety in Dart by Abishek_Muthian on Sunday July 26, 2020 @02:19AM (#23954868)
I understand what you are suggesting, considering IntelliJ products are tightly integrated with Android ecosystem there are chances that the survey results are skewed towards flutter development.

Then again, none of the responses here are outside flutter development!

Re:Understanding null safety in Dart by chgibb on Saturday July 25, 2020 @09:12PM (#23953656)
Using Typescript for Flutter is the intent behind this project https://github.com/chgibb/hydro-sdk

Though, note I am the author.