logoalt Hacker News

Mold Linker Version 3.0.0 Release – Rewritten in Rust

224 points • by roflcopter69 • today at 11:17 AM • 150 comments • view on HN

Comments

lrvick • today at 4:47 PM

The linux distribution I co-maintain uses mold as our bootstrap linker to bootstrap rust itself, and it saved us -hours- on long version-by-version build chains. Mold being in c meant we could build it very early and use it as the default linker distro wide and enjoy build speedups everywhere.

Now sadly we will have to fork and maintain the c version as mold2 forever.

Rust is not actually the right tool for all problems.

➕ show 7 replies
Aissen • today at 3:27 PM

I expected this to be a multi-months rewrite, not 3 weeks. I almost forgot we live in the agents era now.

Edit: this seems to have been cooking for a while when the first commit dropped: https://github.com/rui314/mold/commit/f41bfcd5c72ca30cce6498...

➕ show 2 replies
awoimbee • today at 4:29 PM

So what differentiates mold from wild now ? Is wild using different data structures?

(Wild is another fast linker, that only supports Linux)

➕ show 1 reply
sharktheone • today at 7:36 PM

Oh what? That was not on my bingo card for 2026. Mold already was incredible when it still was in C++ and I assume it is even better now that it is in rust

dhruv_dube • today at 5:31 PM

[flagged]

tankiya • today at 6:13 PM

[flagged]

fr2029 • today at 5:16 PM

[dead]

rvz • today at 3:53 PM

Software X now rewritten in Rust™ is the new sales pitch.

➕ show 1 reply
asjq178 • today at 4:44 PM

I don't want a slop linker. Why are people selling out their projects?

➕ show 2 replies
acedTrex • today at 3:14 PM

[flagged]

➕ show 2 replies
WhereIsTheTruth • today at 4:51 PM

It was transpiled, not rewritten, rewrite implies by hand

➕ show 2 replies
mi_lk • today at 4:45 PM

Damn. I thought Zig would be a perfect rewrite language for Mold since it's a better C in many ways

➕ show 2 replies
uncle_kostya • today at 2:56 PM

I'm curious about motivation - bounds checks for corrupted inputs seems like it would be one, but it also seems that fixing corrupted input handling in a C/C++ code base would not be too hard, and probably less of an effort? So why did you choose the rewrite?

And second, did you use any AI tools for the rewrite?

➕ show 7 replies