# Mold linker rewritten in Rust, version 3.0.0 released

Original title: Mold Linker Version 3.0.0 Release – Rewritten in Rust

> Hacker News story 49963385 · language: en · submitted 2026-10-05
> Web version: https://zeli.app/story/49963385
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 245 · by [roflcopter69](<https://news.ycombinator.com/user?id=roflcopter69>) · 💬 191
[original](<https://github.com/rui314/mold/releases/tag/v3.0.0>) · [HN discussion](<https://news.ycombinator.com/item?id=49963385>)

## Summary

Mold 3.0.0 is the first release of the high-speed linker rewritten from C++ to Rust. It remains a drop-in replacement for 2.42.1, with the same command-line options, target architectures, and performance. The rewrite improves safety: corrupted input files now cause a panic instead of a segmentation fault. The release also fixes numerous bugs and compatibility issues, moving mold closer to becoming the default linker in Linux distributions.

## Key quote

> The move to Rust also makes mold safer with corrupted input files. The C++ version could read memory out of bounds on such input and crash with a segmentation fault. In mold 3.0, those reads are bounds-checked, so mold stops with a panic at the faulty access instead.

## HN discussion (191 comments)

### [lrvick](<https://news.ycombinator.com/item?id=49967270>)

> 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.

### [Aissen](<https://news.ycombinator.com/item?id=49966119>)

> 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...

### [sharktheone](<https://news.ycombinator.com/item?id=49969479>)

> 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

### [awoimbee](<https://news.ycombinator.com/item?id=49967016>)

> So what differentiates mold from wild now ?
>
> Is wild using different data structures?
>
> (Wild is another fast linker, that only supports Linux)

### [WhereIsTheTruth](<https://news.ycombinator.com/item?id=49967320>)

> It was transpiled, not rewritten, rewrite implies by hand

### [mi_lk](<https://news.ycombinator.com/item?id=49967235>)

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

### [uncle_kostya](<https://news.ycombinator.com/item?id=49965701>)

> 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?

---

## Cite

- Page: https://zeli.app/story/49963385
- Date: 2026-10-05
- Source: github.com (https://github.com/rui314/mold/releases/tag/v3.0.0)
- Hacker News: https://news.ycombinator.com/item?id=49963385

## Other languages

- zh: https://zeli.app/zh/story/49963385 · markdown: https://zeli.app/zh/story/49963385.md
- ja: https://zeli.app/ja/story/49963385 · markdown: https://zeli.app/ja/story/49963385.md
- ko: https://zeli.app/ko/story/49963385 · markdown: https://zeli.app/ko/story/49963385.md
- de: https://zeli.app/de/story/49963385 · markdown: https://zeli.app/de/story/49963385.md
- es: https://zeli.app/es/story/49963385 · markdown: https://zeli.app/es/story/49963385.md
- ru: https://zeli.app/ru/story/49963385 · markdown: https://zeli.app/ru/story/49963385.md
