Skip to content

Comment on Dart 3.4: WASM and Macros preview

Comments

It's somewhat weird to see Dart still chugging along. A language that cannot figure out what it's for.

Was it a better Javascript? Oh, old history

Was it just a failed project that Google Analytics team used? Oh, old history

It's for Flutter and app development? Not anymore

It's native cross-platform compiled language for apps and backend with a hodgepodge of features haphazardly thrown in? Yes, for now.

I quite like the language and hope it continues to chug along. As a beginner who wanted to create a cross platform app it was a no brainer for me over the ever increasing amount of web frameworks, or writing the same app in multiple native languages.

Might be my ignorance as a beginner but I don't see a hodgepodge of haphazard features, but the beginning of a true cross platform language.

Why do you think it must be one thing or the other? It can be better than Javascript, used for Flutter and app development, and also cross-platform compiled and used for backend.

Was it a better Javascript? Yes.

Was it just a failed project that Google Analytics team used? No.

It's for Flutter and app development? It's a general-purpose programming language.

It's native cross-platform compiled language for apps and backend? It's a general-purpose programming language with multiple compilation targets, including native.

hodgepodge of features haphazardly thrown in? Certainly not.

Dart beat TypeScript to existence by a solid year. The web should run on Dart right now but Google fumbled the ball.

Web search was synonymous with Google until they enshittified their product to irrelevancy a few years back. Where once using Bing was unthinkable, several of my coworkers now happily use it.

They then proceeded to fumble the incredible lead they had with AI just a few years ago. At this point, I wouldn't be surprised if they let their Chrome monopoly slip through their fingers as well.

It's ridiculous how Google's BoD hasn't axed everyone in a leadership role at that company given how many gems they've let slip through their fingers.

The web should run on Dart right now but Google fumbled the ball.

It's clear you didn't see the fervor around this around a decade ago [0][1], as it was universally panned as a move that would only strengthen Google's browser monopoly (as if sites started using more Dart, other browsers would have no choice but to add in Dart support). Personally I am very glad that we don't have a built-in Dart compiler in the browser, compile to JS languages are more flexible and now we have an even more robust and even-handed solution in the form of WASM, as now any language can compile to an open standard, not just Dart (which also has WASM support now).

Another argument in favor of not having Dart in Chrome is allowing its development to be much more flexible, as this article shows, rather than being hampered by the standards committee [2].

[0] https://news.ycombinator.com/item?id=3600874

[1] https://news.ycombinator.com/item?id=9264531

[2] https://news.ycombinator.com/item?id=40355071

Whilst I can agree mostly with your last three points I don't think any company, even apple, could at this point replace JavaScript on the web. It's too ingrained. Sure there's typescript but that's not a whole sale replacement, the end result is still JavaScript.

Dart’s JS VM was reportedly faster than vanilla JS. It could have wholesale replaced JS if Google had really leaned into it.

Yeah but you've still got to convince everyone to rewrite all the JavaScript in it. That's a big ask even for Google with a faster VM. If they'd pushed it I would predict chrome market share taking a dive.

Personally I think they did the right thing pivoting away from trying to replace JavaScript.

Early Dart was a significantly worse language even compared to early Typescript. And remained so for a very long time.

Plus what the sibling comment said about Google monopoly.

It's for Flutter and app development? Not anymore

What do you mean?? Did you read the article, because it is clearly about Dart and Flutter.

I meant that now it's backend, and frontend, and apps, oh my.

I assume it is a reference to Google laying off all their dart and flutter engineers [1]. So I'm not sure who is still maintaining either project.

[1]: https://techcrunch.com/2024/05/01/google-lays-off-staff-from...

This is wrong, they didn't lay off core developers on the Dart or Flutter teams, only some devops people maintaining infrastructure for them.

Clearly not all, that would be a different announcement.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.