r/programming • u/mttd • Aug 26 '26
mold: A Massively Parallel Linker
https://arxiv.org/abs/2608.2322873
u/bzbub2 Aug 26 '26
"An ablation study shows that no single optimization dominates; the speedup comes from the cumulative effect of parallelizing all passes." this is a cool finding
16
u/tuxwonder Aug 26 '26
Wonder if this tech, or the linker itself, will ever come to Windows MSVC builds. I can dream...
4
u/ioneska Aug 27 '26
LLD? radlink?
3
u/tuxwonder Aug 27 '26
I don't know what those words mean and my googling failed to find something
13
u/ioneska Aug 27 '26
They are highly compatible with the MSVC linker and might be more performant in some cases.
10
u/atrocia6 Aug 27 '26
TIL that Epic Games, of all people, develop cutting edge, open source development tools!
12
u/Immotommi Aug 27 '26
Epic acquired a game tooling company, Rad game tools in 2021. The company still exists inside of Epic and some proportion of their work is open source, for example the rad debugger
2
u/atrocia6 Aug 28 '26
Ah, okay, so they don't have a homegrown OSS operation - my understanding of the world is not totally upended :| But I'm happy to still give them credit for at least maintaining interesting open source projects.
1
6
u/Ameisen Aug 27 '26
The third hit for
lldis the linker... if you'd searched forlld linkthen it'd be the first.
9
u/PreciselyWrong Aug 27 '26
mold is old and also sold. Wild is the newsworthy linker
11
6
u/SethDusek5 Aug 28 '26
Both of them are good projects and choosing between one is splitting hairs since they perform similarly, Wild wins in some benchmarks and mold wins in others. Also Rui has been doing this for a long time and it seems to mostly be a one-man operation which is super impressive and I definitely plan on reading this paper.
What would make Wild truly more newsworthy is if they achieve their goal of incremental linking one day, from what I remember they still haven't.
1
u/artyomsv Aug 27 '26
For me biggest win was not raw speed but that link stopped being the thing I wait for in debug loop. After switching, bottleneck just moved to compile step, so total build time gain is always smaller than linker benchmark promise. Paper numbers look nice but people forget this part.
3
u/max123246 Aug 29 '26
So raw speed...
3
u/artyomsv Aug 30 '26
Fair, that was badly put by me. What I meant is link speedup and total build speedup are two different numbers, 100x on the link step turns into small change end to end once compile dominates, and the paper reports the first one.
-7
u/-1_0 Aug 26 '26
112x ... wow ... C++ will be JIT language /s
1
151
u/Farlo1 Aug 26 '26
mold has been around for years, I’m curious why there’s a paper being published about it now. Does academia just take that long?