Dart added support for cross-compilation

dart.dev

70 points by Alifatisk 6 days ago


jurmous - 2 days ago

I prefer the Kotlin route. It is also supported by a foundation of multiple companies which includes Google and Kotlin is the native language for Android. It supports more targets already for years with Kotlin Native. And recently the Compose iOS target became stable with 1.8 enabling cross platform UI development. It is easier to integrate with native components.

https://blog.jetbrains.com/kotlin/2025/05/compose-multiplatf...

Also the web stack (incl Wasm) got some big updates.

https://blog.jetbrains.com/kotlin/2025/05/present-and-future...

Why would Google still invest in Flutter and Dart when Kotlin is becoming this versatile?

Are there long term advantages with Dart which I am missing?

Daegalus - 2 days ago

I love Dart as a language, but there were multiple choices made by Google that kind of ruined it outside of Flutter.

First, when it was still a viable Node.js alternative, Google only partially cared about that side. And when they did, they had someone make Shelf, which kind of killed a lot of web framework initiatives (including my own). Instead of building support tools, and fleshing out the stdlib, they were busy making competing libraries. And shelf was miserable to work in, and killed off a lot of desire to work on backend.

Second, at some point they just said F U to the backend and focused 100% on frontend, abandoning backend to whatever the current state it is in. I don't think they have improved anything on that front much.

Finally, when their gamble on Web/Frontend failed, and aliented all the tool/backend developers, Flutter was the only thing to save it.

Dart could have been a great Node.js alternative, but Google was too fixated on web. Typescript ate its lunch, browser devs said no, including Chromium team, and now Deno is a viable alternative to Node.js and Dart backend.

I still maintain a couple of my dart libraries, and have been for 12 years now i think (since Dart launched). maybe longer. but I don't do any other active dev in Dart. I just fondly think of what could have been anytime I go into those codebases.

bergwerf - 2 days ago

I feel like at this point Dart suffers from being a Google project: Google decides its fate, and Google has built a rather poor reputation when it comes to stability. I don't have concrete evidence, but I think the Google culture adheres more to the rolling release and move fast and break things ideology. I personally witnessed several of my own Dart projects needing serious refactoring after just a few years.

Also, I feel like Dart is a maximalist project. "Batteries included" also means a whole myriad of tools and libraries also at the grace of the Google Dart team.

nerder92 - 2 days ago

Dart is one of the most underrated language out there.

Paradoxically is alive thanks to Flutter, but is also not as popular due to Flutter.

finnjohnsen2 - 2 days ago

Dart is easy to learn. If you've been around a while and know a few c-like; the gotcha hits pretty quickly. Nice tooling, good documentation and generally no surprises good or bad.

radiKal07 - 2 days ago

Dart is such an amazing language. I really wish it gained traction in more industries.

flax - 2 days ago

I love Dart and Flutter, it's my go-to when starting a new app idea. I want to learn Kotlin, but something about it just keeps me bouncing right off. It's ugly to me. It does not look like a serious language. I know that it IS, but I just hate reading/writing kotlin. Dart fits right into the well-worn grooves in my brain established from decades of Java, AS3, JavaScript and Typescript.

Alifatisk - 6 days ago

https://github.com/dart-lang/site-www/commit/0789e0957eddcc9...

gitroom - 2 days ago

dart's always been solid for me but barely see it in big companies tbh - something stopping adoption or is it just stuck in its lane?