News for hackers. Stuff that matters.
Re:Ask HN: Why isn't Dart more popular? by PedroBatista on Tuesday October 25, 2022 @10:30PM (#33339044)
Dart should have been dead a long time ago, Flutter saved it.

It was supposed to be the successor of JavaScript, when that ended up like everyone expected, Dart was pretty much dead until Flutter appeared and started to have some initial success.

So.. Dart by itself, what does it offer for developers/industry to change? My take is: nothing.

Re:Ask HN: Why isn't Dart more popular? by aristofun on Tuesday October 25, 2022 @10:45PM (#33339180)
If offers a statically typed yet flexible and safe language with familiar intiutive syntax and a decent dev.x
Re:Ask HN: Why isn't Dart more popular? by ezekg on Tuesday October 25, 2022 @10:53PM (#33339245)
I thought that the DX was rather poor last time I played with Dart (not Flutter). Package docs suck when it comes to describing a package’s API and types (not sure if this is the package’s fault but I was expecting Go-like docs). I expected better from a typed language.

I also didn’t have a nice time with the package manager. I had to manually create the pubspec.yml file to even start installing packages.

Maybe I missed some crucial docs, but I was rather annoyed throughout the whole experience.

Re:Ask HN: Why isn't Dart more popular? by PaulWaldman on Tuesday October 25, 2022 @10:54PM (#33339255)
What does it offer that Typescript doesn't?
Re:Ask HN: Why isn't Dart more popular? by cercatrova on Tuesday October 25, 2022 @10:55PM (#33339265)
Compiled performance
Re:Ask HN: Why isn't Dart more popular? by sebazzz on Wednesday October 26, 2022 @10:52AM (#33344582)
Given the javascript frameworks we run these days apparently that isn't an issue.
Re:Ask HN: Why isn't Dart more popular? by cercatrova on Wednesday October 26, 2022 @09:29PM (#33351882)
Or it is an issue and why everyone is moving to compiled languages for JS tooling, like Turbopack announced yesterday as a Webpack alternative written in Rust, to join other tooling such as esbuild, SWC, and Rome.
Re:Ask HN: Why isn't Dart more popular? by aristofun on Wednesday October 26, 2022 @10:34PM (#33352363)
Typescript is another amazing language. They don’t compete.
Re:Ask HN: Why isn't Dart more popular? by rufius on Wednesday October 26, 2022 @01:48PM (#33347028)
But not in a more meaningful way than TypeScript which has the advantage of being a superset of JavaScript.
Re:Ask HN: Why isn't Dart more popular? by Rochus on Wednesday October 26, 2022 @06:47AM (#33341929)
> Dart should have been dead a long time ago, Flutter saved it.

Not that simple. The new Dart is a completely different language than what they published 2011 als an alternative browser language.

But as far as I've seen today's Dart is not really faster than TS/JS on V8; thus, the difference is primarily the different syntax, which is probably an insufficiently important argument for most users; the cross platform AOT feature is great but apparently not important enough for the majority of people.