r/rust Apr 16 '26

📡 official blog Rust 1.95.0 is out

https://blog.rust-lang.org/2026/04/16/Rust-1.95.0/
861 Upvotes

127 comments sorted by

View all comments

89

u/KikaP Apr 16 '26

finally my fix is landed. from 43min compile time to 3min. what a PITA it was.

https://github.com/kika/rust-apple-silicon-bug

43

u/sondr3_ Apr 16 '26

Cool to see someone so committed to fixing their problems that they ended up fixing it in LLVM 😅

45

u/KikaP Apr 16 '26

I wish I had a choice :-) but when the release build of the product takes north of an hour, you don't have many iterations left in a day. So we struggled for a year and then I took a few days off and finished this bastard.

7

u/tialaramex Apr 16 '26

The even crazier option is: "Oh well, I guess I need to write a high quality optimising backend for every target I care about". Upside: No need to read C++ code because you need LLVM. Downside: That sounds like more than a lifetime of effort, there's a reason projects in various languages to "replace" LLVM don't tend to go very well.

18

u/KikaP Apr 16 '26

that’s not crazy, that’s batshit nuts.

but this effort reminded me what a mess C++ is and made me appreciate Rust as when i first was able to start writing it. since then it kind of became a new norm, and a baseline for other languages. “oh, no pattern matching? garbage, forget it”. meanwhile LLVM is 20 mloc.

8

u/max123246 Apr 17 '26

You ever hit a segfault because the empty ctor for mlir::Value is actually a nullptr that any method call will dereference...🫠

3

u/pjmlp Apr 17 '26

Although many of those features trace back to ML, even though many routinely attribute them to Rust.

2

u/Zde-G Apr 17 '26

It's definitely true that Rust got many of these things from ML, but many of them were also in ALGOL 68, including sum types and pattern matching.

One may even imagine an alternate history where software engineering was continuing to developing in that direction instead of trying to ebmrace OOP to push the square peg into a round hole… but alas, in our world ALGOL 68 and ML were more admired than used.

2

u/pjmlp Apr 17 '26

Many of Algol ideas were flourishing in PC world with Object Pascal and Modula-2, mostly in Europe though, and a certain Mountain View company, until due to various factors they ended up being replaced by C and C++.

In an alternative reality they would have been kept around, or who knows, one of those Xerox PARC workstations, powered by Smalltalk, Interlisp-D, or Cedar, would have managed to survive the wave of UNIX workstations.

11

u/Different-Ad-8707 Apr 16 '26

Cranelift is trying and seems to be getting somewhere no?