frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Is making the rust compiler slow a billion dollar mistake?

4•breatheoften•8h ago
Just wondering if other folks feel growing dissatisfaction with the fact that the current leading modern system programming language does not include fast compilation as one of its fundamental design goals.

To me -- this seems like an obvious candidate for a future 'billion dollar' mistake retrospective essay.

How and why is it that 'support fast compilation' isn't a necessary pre-condition for any modern language hoping to achieve serious usage?

With rust in particular -- it seems like a whole lot of the slow compilation behaviors are not fundamental to any of the most important aspects of the language ...

Is there anyone out there who has tried to fork the rust ecosystem in a way which deliberately breaks compatibility in order to chart the simplest path to a fast, scaleable compilation strategy for the language and ecosystem?

I have a feeling that such an effort -- rust with some misfeatures removed, and with the package system simplified in order to speed up compilation would actually take off and be able to replace the current ecosystem relatively quickly ...

Comments

MeetingsBrowser•5h ago
Perfect is the enemy of good, and Rust's compile times are good enough.

When choosing between languages, compile times should be a tie-breaker at most. If Rust had focused on super fast compilation from the start, it probably would have slowed developing the features that actually made it successful.

Its like a startup that spends forever building the perfect scalable backend instead of just solving customer problems. The hacky solution usually wins.

> Is there anyone out there who has tried to fork the rust ecosystem ... I have a feeling that such an effort ... would actually take off and be able to replace the current ecosystem relatively quickly

Forking the entire Rust ecosystem seems pretty unlikely to work, but everything's open source so anyone can give it a shot.

dapperdrake•4h ago
Is a breaking change really needed? Can there be ABI compatibility and just less (slow) optimization?
bjourne•4h ago
I believe the Rust compiler does whole program analysis or, at least, something very similar in spirit. Hence, unless you completely change how the language works it can't be as fast as a simpler compiler. You can work around it by having a daemon that incrementally compiles only changed parts, but then you need to have that daemon running and it's never as smooth as one command that compiles quickly. In other words, yes, I think you are right. Slow compile times reduce adoption.
afdbcreid•2h ago
None of the passes rustc does are whole-program. LLVM does some whole-program passes, but that's also true for C++.
steveklabnik•2h ago
Rust specifically avoids doing whole program analysis.

Ask HN: How much of OpenAI code is written by AI?

54•growbell_social•6h ago•41 comments

Ask HN: Battery life for graphical Linux VMs (or Asahi) on Apple Silicon laptops

2•evertedsphere•4h ago•1 comments

Is making the rust compiler slow a billion dollar mistake?

4•breatheoften•8h ago•5 comments

Ask HN: How are you productively using Claude code?

15•nocobot•18h ago•10 comments

Open-source STM32 autopilot for long-range fixed-wing UAVs (SmartNavX)

6•Talalalsohimiy•9h ago•0 comments

Ask HN: How did Soham Parekh get so many jobs?

317•jshchnz•1w ago•415 comments

Ask HN: Could the C64 startup screen have encouraged more users to learn BASIC?

5•amichail•11h ago•6 comments

Ramanujan-Computing: Distributed Computing with Idle Smart Devices: Open-Source

3•ps_ramanujan•14h ago•0 comments

Ask HN: How do you get first 10 customers?

11•jcofai•1d ago•17 comments

Ask HN: Has anybody gotten a Node.js MCP server to work with HTTP?

4•rglover•1d ago•4 comments

Attended Windsurf's Build Night 18 hours before founders joined Google DeepMind

7•schwentkerr•1d ago•0 comments

Ask HN: Looking for a directory of PS1 command prompts. Like awesome lists

4•simplecto•1d ago•5 comments

Ask HN: Are there any tools for tracking GPU prices over time?

2•jepeake•1d ago•4 comments

Ask HN: Where are the AI-driven profits or promotions?

39•arduinomancer•22h ago•43 comments

Tell HN: I Lost Joy of Programming

91•Eatcats•5d ago•124 comments

Co-founder exiting after pivot – what's a fair exit package?

42•throwaway-xx•4d ago•79 comments

Ask HN: Worth leaving position over push to adopt vibe coding?

81•NotAnOtter•1w ago•94 comments

Ask HN: Bug Bounty Dilemma – Take the $$ and Sign an NDA or Go Public?

22•deep_thinker26•4d ago•14 comments

Google fails to dismiss wiretapping claims on SJ, settles with app users

46•1vuio0pswjnm7•4d ago•8 comments

Helpful function to find memory leaks in JavaScript

3•EGreg•3d ago•1 comments

Ask HN: People who work different timezones than your company. How sched?

17•tetris11•5d ago•27 comments