frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Dart added support for cross-compilation

https://dart.dev/tools/dart-compile#cross-compilation-exe
60•Alifatisk•4d ago

Comments

Alifatisk•4d ago
https://github.com/dart-lang/site-www/commit/0789e0957eddcc9...
cpswan•6h ago
https://github.com/dart-lang/sdk/issues/28617 provides some commentary on where things are, and what might happen next.
radiKal07•6h ago
Dart is such an amazing language. I really wish it gained traction in more industries.
mdhb•6h ago
Agreed, one of my pass the time activities during covid was basically just spending the year trying out and evaluating different languages across a whole range of different metrics and features. For me Dart was the clear winner and I’ve never once regretted making it my new default, in fact it’s only increased its gap compared to everything else in the time since then.
sabellito•6h ago
Genuine question: what do you think is amazing about the language?
wiseowise•5h ago
Tooling, to start with.

First party lsp and plugins for IntelliJ, VSCode, formatter, test, Flutter, etc.

It’s like Go meets Java, but in a great way.

als0•5h ago
> It’s like Go meets Java, but in a great way.

I am struggling hard to imagine how any greatness could be achieved from that. Can you say a bit more?

gbalduzzi•5h ago
Dart allows you to write compact and clean code, like GO. Dart properly supports classes and is feature-rich, like Java.

I think those are the main points for the above comment

owebmaster•5h ago
I think we know what made it not popular then
vhantz•2h ago
Compact and clean is very far from my experience writing a very simple library management app with flutter. The framework literally gets in the way. You can't do anything without having to deal with some convoluted callback mechanism. You can't manipulate any object without some forced async crap. And it's so verbose. Despite my best efforts to keep things clean and organized, I get lost in the very small codebase after a couple of weeks. It's got to the point where I'm just rewriting it with Qt quick instead. It was my first time touching both flutter and dart, so maybe it's all subjective, but right now I think it's just a badly designed language/framework.
homebrewer•2h ago
We must have very different definitions of compact, with Go requiring dozens of lines of boilerplate where other languages make do with one line of '?' or '.filter'.
wiseowise•5h ago
Amazing tooling meets more than okay language.
mdhb•5h ago
Tooling, documentation, language design, balance across a million different competing goals, interoperability, deployability, simplicity, expressivity and much more.

It’s just a REALLY REALLY nice modern language with a team of very smart people behind it who very clearly sweat the small details and have a long history of being able to make great decisions along the way even in ambiguous situations where it’s not always clear what the best path is going to be.

agilob•4h ago
In two companies we already gave up on Dart and Flutter because of how it's backwards incompatible is. The language and frameworks moves very fast, it develops new tools and classes before the old ones become mature enough and adopted by the industry. Then suddenly, Flutter 27 lands, requires Dart 45, which requires intl 81.2.5. and now you can't compile anything anymore. Whole upgrade process, tools, compiles and libraries are broken for months before Google and OSS catches up. Once ecosystem is on Flutter 27 your upgrade path takes weeks, because a core method was renamed or compiler flag removed and CI/CD is failing. So you just move back to Java and Kotlin, where code from 2012 still compiles and works just fine.
mhoad•4h ago
It’s kind of telling that you had to rely on fake examples here because I don’t know what you’re talking about at all as someone in the exact same ecosystem.

I’ve genuinely never run into something that even remotely resembles what you’re describing in half a decade.

Just to point out the ridiculousness of your comment Dart is 10 years old at this point, follows semver and is on version 3. Your story really doesn’t check out at all.

They actually go into fairly stupid amounts of details to make keeping up with changes simple. They strictly adhere to semver so you shouldn’t ever be surprised and then they literally have a tool baked into the CLI which will do all of the upgrades for you that static analysis can handle which is the overwhelming majority of them in my experience.

https://dart.dev/tools/dart-fix

quaintdev•4h ago
I developed this app few years agon in Flutter. I can't build it anymore. I can fix my own codebase but it shows issues in dependencies

https://github.com/quaintdev/anchor

hamaluik•3h ago
I released two apps built in dart on flutter. I loved it at the time, but I ran into this issue headlong with both of them. Release v1.0, move on to other things, come back in a year with a new computer to fix a minor bug and I can’t even compile the original release anymore, and had to spend forever rejiggering everything to get it back to the state it was when I left it. I really loved dart, and even flutter, building in it was a breeze. But the churn made the js ecosystem look slow.
justin66•3h ago
You don't get to very rudely accuse someone of giving "fake examples" (why?) and then, later, use weasel words like "in my experience." Perhaps your experience isn't representative of everyone else's.
jsnell•2h ago
The example was:

> Flutter 27 lands, requires Dart 45, which requires intl 81.2.5

None of those versions exist, so the example is obviously made up.

Now, it could still be rooted in reality rather than being a complete fabrication. But when all the provided details were made up, it's basically impossible for anyone to check.

nerder92•5h 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.

gitroom•5h 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?
mdhb•5h ago
It’s only maybe for the past two years now that it’s even been promoted as a general purpose language, which I think was a huge oversight on the Dart team’s behalf. For a long time they would just promote it as a great way to build UIs. What ever drove them to talk about it like that originally is beyond me.
neonsunset•4h ago
The competition is too strong. At a team or organization level, where neither uses Flutter, why would you use Dart when C# and Kotlin exist? Both have better performance, better UX for doing common application tasks and vastly bigger ecosystems.
pjmlp•3h ago
Additionally, none of them are tied to a UI framework as survival, had it not been for Flutter and Dart would be long gone.
robertlagrant•3h ago
I think the idea was you can make a UI using one codebase for iOS and Android.
bergwerf•5h 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.

akmittal•5h ago
Go is doing exceptionally well while being a Google project. I don't think its a Google problem.

IMO Dart has become a niche Flutter language instead of a general-purpose language. Dart decided to focus on being a client-side language and it is very difficult to win over JS/TS.

porridgeraisin•4h ago
I think that's because it's of use to google internally. Dart and lit probably don't find as much use.
psychoslave•2h ago
Go had the name of its authors to weight in. While I'm not of the type to give high weight in term of technical assessment. And I don't even mean C is praisable in term of influence it had on the industry. But without a doubt it did impact it deeply over a very long span of time. And at larger scale many people do love to follow their unquestionable prophets.
owebmaster•5h ago
> I feel like at this point Dart suffers from being a Google project

Not only Dart. Lit was completely abandoned without any public announcement. Soon it should be added to the killed by google website.

mdhb•4h ago
wtf are you taking about with “completely abandoned”? https://github.com/lit/lit/pulse/monthly
owebmaster•4h ago
Abandoned doesn't mean dead (yet). Google don't care and don't spend a dime on it anymore but they "forgot" to tell that to people using lit.
flohofwoe•3h ago
I think the main problem for Dart was that Typescript is simply the better approach for fixing Javascript (even though TS has its own share of problems with its 'kitchen sink type system').
lolinder•3h ago
> even though TS has its own share of problems with its 'kitchen sink type system'

Eh, people critique the kitchen sink type system but at the end of the day that system is why TypeScript took over, not a weird add-on you have to put up with to get it. It's what makes it possible to assign comprehensive types to ~every JS library, which is what allows TypeScript to gradually eat the whole JS ecosystem.

Any other approach stops short of the goal of being JS+Types, which means you end up with a different language with different semantics, which is where Dart failed.

flohofwoe•2h ago
Agreed for enabling gradually adding types to large JS code bases, but at the same time it's also used for very questionable 'template metaprogramming hacks' (which then result in pages-long and completely undecipherable error messages). It's a very similar problem to 'abusing' the C++ template system.
pjmlp•3h ago
It suffers from being the Flutter language, it was already given as dead outside Google, had it not been for Flutter.

I also advise watching the Angular documentary, where they briefly describe being forced to adopt Dart by management was a friction point, only sorted by letting them go with TypeScript, and AngularDart be its own thing.

https://www.youtube.com/watch?v=cRC9DlH45lA

nikanj•3h ago
It's a Google project: Batteries included, and once the batteries are empty, they throw the whole thing away
jurmous•4h 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?

zt64•4h ago
I also agree, supporting both tools seems unnecessary. In my experiences Kotlin multiplatform and compose multiplatform is vastly more enjoyable to write instead of Dart. The development environment alone has also been much easier to get started with using Kotlin multiplatform.
lawgimenez•2h ago
With Android’s frequent releases starting this year, I doubt Flutter can keep up.

https://android-developers.googleblog.com/2024/10/android-sd...

jillesvangurp•1h ago
Dart/flutter of course predates a lot of this stuff. But the point is that Kotlin and Kotlin multiplatform are things that happened to Google that they ended up endorsing and embracing (to their credit).

When they were digging in with the Oracle lawsuit, their Android Java support fell behind a bit. And then Kotlin showed up as a drop in replacement and quickly became the default for a lot of Android development. It was so obviously nicer than Java 1.6 that many Android developers didn't bother waiting for kotlin 1.0 to be released even. Java support was eventually upgraded for Android but that took a while. Google made endorsing Kotlin official many years ago. Kotlin is now the preferred language for Android development. And while Java is still supported, using it is probably a mistake for new applications as Java API support increasingly an afterthought in both Android SDKs and the wider library ecosystem.

Google also pushed Flutter as a completely new way of doing UI and targeted it at a completely new OS (Fuchsia) that would replace Android. That never happened and Fuchsia is basically still around on life support but otherwise not going anywhere. Meanwhile, Flutter seems well liked by some but it's also a bit a weird techstack with its own language and compiler and fairly limited integration options. In short that whole techstack seems increasingly a bit of a dead end.

And crucially, Google has always pushed back on the notion of building any support for Kotlin around flutter, which was an obvious thing to start doing years ago. There are some weak arguments about native compilation here. But Java/kotlin were always compiled ahead of time on Android. So, I expect that the dominant arguments here were non technical and boil down to not invented here syndrome.

And now kotlin multiplatform (endorsed last year by Google) and compose multi platform are there. Compose multiplatform is interesting because it extends Google's own framework to other platforms (IOS, Web, Desktop). That has been an obvious thing to work on for a while but Google didn't want to go there because it had Flutter. But now Jetbrains has done it for them. The multiplatform support on IOS is getting quite nice. Native compilation, easy bindings between kotlin and swift code (both ways), etc.

It will be interesting to see if Google rallies behind compose multiplatform as well. IMHO they should and it's an opportunity to get a bit of control over IOS development and wrestle that away from Apple.

finnjohnsen2•3h 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.
Daegalus•3h 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.

rafaelmn•3h ago
Thing is Dart is a shitty language with tradeoffs made specifically to make Flutter work well.

The terrible meta programming support shows in basic things such as JSON serialization. It's like Java--, I can't think of a reason to use it on backend over Java or Go.

It's not comparable to Javascript - despite it's warts, Javascript is very dynamic and when coupled with typescript that let's you do a lot of powerful things and describe it with the structural type system.

I have not used dart for a few years now but I've used it both when it was DartAngular and Dartium, and in flutter 2/3.

Don't get me wrong - the DX of writing flutter and fast reload is the best I've used in mobile space, but the language itself is terrible and I would not use it in any other scenario.

Daegalus•3h ago
Fair assessment, I am not quite as polarized, but there is a reason i use Go, Deno, and Typescript myself.
yomismoaqui•2h ago
It's not my favorite language but Dart feels like a more modern less-verbose Java from another timeline. Features like sound null safety rule and writing Flutter apps feels nice, in no way Dart gets in the way.

That said, I prefer writing backends in Go. Less is more FTW.

EDIT: Also having the ability to compile it to JS, WASM, native for Android, iOS, Windows, Mac & Linux is a plus.

jrockway•1h ago
Java-- is an interesting comparison. I used Dart when I was at Google like a decade ago and my impression as I was learning the language was that it was like a scripting language variant of Java. I'd have called it "JavaScript" ;)

I haven't really looked at it since then but it felt like a lighter and easier Java at the time, which I was fine with. (I did a lot of Java in those days.)

Embeddings Are Underrated

https://technicalwriting.dev/ml/embeddings/overview.html
44•jxmorris12•41m ago•7 comments

A community-led fork of Organic Maps

https://www.comaps.app/news/2025-05-12/3/
173•maelito•4h ago•104 comments

University of Texas-led team solves a big problem for fusion energy

https://news.utexas.edu/2025/05/05/university-of-texas-led-team-solves-a-big-problem-for-fusion-energy/
110•signa11•3h ago•45 comments

Ruby 3.5 Feature: Namespace on read

https://bugs.ruby-lang.org/issues/21311
65•ksec•2h ago•27 comments

Reviving a Modular Cargo Bike Design from the 1930s

https://www.core77.com/posts/136773/Reviving-a-Modular-Cargo-Bike-Design-from-the-1930s
14•surprisetalk•1h ago•1 comments

OpenEoX to Standardize End-of-Life (EOL) and End-of-Support (EOS) Information

https://openeox.org/
7•feldrim•44m ago•1 comments

Spade Hardware Description Language

https://spade-lang.org/
56•spmcl•3h ago•21 comments

Plain Vanilla Web

https://plainvanillaweb.com/index.html
1305•andrewrn•23h ago•603 comments

The FTC puts off enforcing its 'click-to-cancel' rule

https://www.theverge.com/news/664730/ftc-delay-click-to-cancel-rule
117•speckx•2h ago•57 comments

I ruined my vacation by reverse engineering WSC

https://blog.es3n1n.eu/posts/how-i-ruined-my-vacation/
289•todsacerdoti•12h ago•145 comments

Universe expected to decay in 10⁷⁸ years, much sooner than previously thought

https://phys.org/news/2025-05-universe-decay-years-sooner-previously.html
62•pseudolus•6h ago•91 comments

Continuous glucose monitors reveal variable glucose responses to the same meals

https://examine.com/research-feed/study/1jjKq1/
46•Matrixik•2d ago•23 comments

Tailscale 4via6 – Connect Edge Deployments at Scale

https://tailscale.com/blog/4via6-connectivity-to-edge-devices
10•tiernano•1h ago•2 comments

Spark AI (YC W24) Is Hiring a Full Stack Engineer in San Francisco

https://www.ycombinator.com/companies/spark/jobs/kDeJlPK-software-engineer-full-stack
1•tk90•3h ago

A Typical Workday at a Japanese Hardware Tool Store [video]

https://www.youtube.com/watch?v=A98jyfB5mws
61•Erikun•2d ago•10 comments

Optimizing My Hacker News Experience

https://reorientinglife.substack.com/p/optimizing-my-hacker-news-experience
13•fiveleavesleft•3d ago•2 comments

Show HN: CLI that spots fake GitHub stars, risky dependencies and licence traps

https://github.com/m-ahmed-elbeskeri/Starguard
25•artski•2h ago•6 comments

US Copyright Office found AI companies breach copyright. Its boss was fired

https://www.theregister.com/2025/05/12/us_copyright_office_ai_copyright/
295•croes•5h ago•151 comments

Gig Companies Violate Workers Rights

https://www.hrw.org/news/2025/05/12/us-major-companies-violate-gig-workers-rights
92•Improvement•2h ago•33 comments

Demonstrably Secure Software Supply Chains with Nix

https://nixcademy.com/posts/secure-supply-chain-with-nix/
3•todsacerdoti•53m ago•0 comments

CrowdStrike CEO cuts his voting power by 92% with unexplained gifts

https://www.bloomberg.com/news/articles/2025-05-12/billionaire-crowdstrike-ceo-cuts-voting-power-by-92-with-unexplained-gifts
87•wslh•3h ago•36 comments

Continuous Thought Machines

https://pub.sakana.ai/ctm/
248•hardmaru•13h ago•25 comments

Implicit UVs: Real-time semi-global parameterization of implicit surfaces [pdf]

https://baptiste-genest.github.io/papers/implicit_uvs.pdf
25•ibobev•5h ago•2 comments

Intellect-2 Release: The First 32B Model Trained Through Globally Distributed RL

https://www.primeintellect.ai/blog/intellect-2-release
180•Philpax•14h ago•57 comments

Making PyPI's test suite faster

https://blog.trailofbits.com/2025/05/01/making-pypis-test-suite-81-faster/
107•rbanffy•3d ago•31 comments

Armbian Updates: OMV support, boot improvents, Rockchip optimizations

https://www.armbian.com/newsflash/armbian-updates-nas-support-lands-boot-systems-improve-and-rockchip-optimizations-arrive/
50•transpute•7h ago•9 comments

Why Bell Labs Worked

https://1517.substack.com/p/why-bell-labs-worked
283•areoform•19h ago•192 comments

Car companies are in a billion-dollar software war

https://insideevs.com/features/759153/car-companies-software-companies/
403•rntn•21h ago•705 comments

Absolute Zero Reasoner

https://andrewzh112.github.io/absolute-zero-reasoner/
110•jonbaer•4d ago•21 comments

High-school shop students attract skilled-trades job offers

https://www.wsj.com/lifestyle/careers/skilled-trades-high-school-recruitment-fd9f8257
237•lxm•1d ago•401 comments