rui314/mold
View on GitHub ↗ ★ 17,716 Rust
mold 🦠: A Modern Linker in Rust 🦀
95 mentions on Hacker News by 80 people: 28 stories, 67 comments · first 2020-12-13 · latest 2026-10-05
20082026
-
…stuff, I guess Rust doesn't have a concept of varargs?), so it could be called a C/Rust project ;) https://github.com/rui314/mold/tree/main/c
comment by flohofwoe · 2026-10-05 · in Mold Linker Version 3.0.0 Release – Rewritten in Rust -
…saying that the software is provided as-is without any warranty or guarantee of functionality (i.e. https://github.com/rui314/mold/blob/main/LICENSE ). Unless I had a support agreement with the maintainers that superseded that document, I…
comment by ndiddy · 2026-10-05 · in Mold Linker Version 3.0.0 Release – Rewritten in Rust -
https://github.com/rui314/mold/releases/tag/v2.42.1 "Recent advances in AI-assisted coding have made large-scale rewrites considerably more practical, but they do not eliminate those risks, and we do not take them lightly."
comment by as-182 · 2026-10-05 · in Mold Linker Version 3.0.0 Release – Rewritten in Rust -
…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...
comment by Aissen · 2026-10-05 · in Mold Linker Version 3.0.0 Release – Rewritten in Rust -
Have you switched to a faster linker [0] yet? Do you use sccache? [0] https://github.com/rui314/mold
comment by scns · 2026-05-27 · in Performance of Rust Language [pdf] -
…and https://lld.llvm.org/ The developer behind the lld linker then developed the mold linker - see https://github.com/rui314/mold and https://news.ycombinator.com/item?id=34382908 There's also the wild linker - see…
comment by canucker2016 · 2025-11-04 · in Linkers (2007) -
…is O(total code size) even if the actual compilation is incremental. See mold's linking benchmarks: https://github.com/rui314/mold . It can be the difference between multiple 10s of seconds with traditional linkers vs <2s with newers ones.…
comment by nicoburns · 2025-10-27 · in Rust cross-platform GPUI components -
PSA: try https://github.com/rui314/mold (Not affiliated with the project. Just switched to it and never looked back.)
comment by balamatom · 2025-10-09 · in Goiaba: An experimental Go compiler, written in Rust -
…as having a hot-reloadable language but it gets you to a relatively pleasant speed still IME [1] https://github.com/rui314/mold [2] https://github.com/mozilla/sccache [3] https://github.com/rust-lang/rustc_codegen_cranelift
comment by chiffaa · 2025-08-28 · in Unexpected productivity boost of Rust -
there are plenty of linkers that parallelize linking https://github.com/rui314/mold?tab=readme-ov-file#why-is-mol... https://llvm.org/devmtg/2017-10/slides/Ueyama-lld.pdf
comment by almostgotcaught · 2025-08-24 · in It is worth it to buy the fast CPU -
…the mold linker design[1]. [0] https://docs.seastar.io/master/tutorial.html#asynchronous-pr... [1] https://github.com/rui314/mold/blob/main/docs/design.md
comment by drysine · 2025-08-24 · in Ask HN: Best codebases to study to learn software design? -
This could speed up linking: https://github.com/rui314/mold
comment by ryao · 2025-01-21 · in I wrote a commercial game in C in 2025 -
…to 11... LLD (part of LLVM): https://llvm.org/devmtg/2017-10/slides/Ueyama-lld.pdf MOLD linker: https://github.com/rui314/mold/blob/main/docs/design.md Apple released a new linker that's in the same ballpark as mold - see following link…
comment by canucker2016 · 2024-08-22 · in A deep dive into how linkers work (2008) -
…- RETURNN (my own): https://returnn.readthedocs.io/en/latest/getting_started/tec... - Mold: https://github.com/rui314/mold/blob/main/docs/design.md And then for some popular projects you will also find some independent overviews: - Quake:…
comment by albertzeyer · 2024-06-17 · in The Programmer's Brain (2021) -
Have you tried mold [1]? In my experience, it makes a dramatic difference to link times. [1] https://github.com/rui314/mold/
comment by Liquid_Fire · 2024-04-29 · in Speeding up C++ build times -
…even free tools don’t get adopted. Look the experience of the guy who built the mold linker( https://github.com/rui314/mold ). Far superior to the state of art, improves incremental compiles a lot, widely applicable across ecosystems (C,…
comment by nindalf · 2024-03-19 · in I reduced (incremental) Rust compile times by up to 40% -
…technique used in mold[0] that can vastly benefit from a) faster memory, b) a wider memory bus. [0] https://github.com/rui314/mold
comment by inkyoto · 2023-12-31 · in Tracking developer build times to decide if the M3 MacBook is worth upgrading -
Add mold into the mix, and you're in C++ heaven. https://github.com/rui314/mold
comment by bogwog · 2023-12-19 · in How many CPU cores can you use in parallel? -
I initially thought this would be about the mold linker ( https://github.com/rui314/mold )
comment by lovasoa · 2023-12-06 · in Mold Course -
I assume this submission is trying to highlight the specific message (2023-01-24) : https://github.com/rui314/mold/issues/190#issuecomment-14028... Fyi... the author wrote a more expansive blog post about selling open-source dev tools a…
comment by jasode · 2023-08-25 · in Monetizing Developer Tools -
It looks like HN automatically stripped the reference to the comment I originally linked to: https://github.com/rui314/mold/issues/190#issuecomment-14028... . The title should be more clear in this context.
comment by hugodutka · 2023-08-25 · in Monetizing Developer Tools -
> Mold did it first, though: https://github.com/rui314/mold Before LLD?
comment by ndesaulniers · 2023-06-07 · in Mergeable libraries [video] -
…comes in addition to rewriting their linker to be massively parallel. Mold did it first, though: https://github.com/rui314/mold edit: lld did it first, mold improved upon it A faster development cycle is one of the coolest improvements…
comment by conradev · 2023-06-07 · in Mergeable libraries [video] -
…and https://en.wikipedia.org/wiki/Gold_(linker) Design and implementation of Mold: https://github.com/rui314/mold/blob/main/docs/design.md
comment by canucker2016 · 2023-06-06 · in Apple Releases New Static Linker -
…productivity by minimizing build time, particularly in rapid debug-edit-rebuild cycles. Source: https://github.com/rui314/mold
comment by Hackbraten · 2023-05-23 · in Mold: Windows version is going to be a source-available commercial product -
Have you tried the mold linker? I've been using it and it works pretty well, quite fast. https://github.com/rui314/mold
comment by satvikpendem · 2023-05-19 · in Ask HN: Is Moore's Law over, or not? -
Using mold might help in this case. https://github.com/rui314/mold https://github.com/rust-lang/rust/issues/94347
comment by scns · 2023-02-04 · in Improving Rust compile times to enable adoption of memory safety -
…AGPL, even by accident. [0] https://bluewhalesystems.blogspot.com/2022/11/mold-linker-ma... [1] https://github.com/rui314/mold#license
comment by satvikpendem · 2023-01-14 · in Mold – A really fast linker -
You should definitely check out Mold: https://github.com/rui314/mold
comment by johnklos · 2023-01-13 · in Intel Launches $699 Core I9-13900KS, the First 6 GHz CPU: Available Now -
…sponsoring the project. https://twitter.com/rui314/status/1593464571586830336 See Licensing on https://github.com/rui314/mold/releases/tag/v1.7.0
comment by pjmlp · 2022-12-27 · in Mold linker: targeting macOS/iOS now requires a commercial license -
or the core ideas from mold [1] make their way to gold and other linkers. [1] https://github.com/rui314/mold/blob/main/docs/design.md
comment by TAForObvReasons · 2022-12-27 · in Mold linker: targeting macOS/iOS now requires a commercial license -
TL;DR from https://github.com/rui314/mold/releases/tag/v1.7.0 > I'd like to inform users that I'm seriously considering changing the mold's license from AGPL to a source-available license unless I secure big funding. The new license would…
comment by asicsp · 2022-11-14 · in Problem with my open-source startup -
Rui, can you open a new Discussions thread at https://github.com/rui314/mold so we can transfer the whole conversation there? We could ask for advice from other project developers that have succeeded on their own journey.
comment by stefanos82 · 2022-11-13 · in Chibicc – A Small C Compiler -
…it prints a string saying "Mold Linker, Licensed to Vmware. Support license expires June 2023. See https://github.com/rui314/mold/wiki/support for details". If there is no license, or the license is expired, it prints "This program is…
comment by londons_explore · 2022-11-07 · in Mold linker creator considers changing the license -
https://github.com/rui314/mold don't support live update, but fast enough to boost productivity.
comment by ifree · 2022-10-28 · in Bringing a dynamic environment to C: My linker project -
…that they are creating a modern language. As an example, look at this issue from the mold linker: https://github.com/rui314/mold/issues/584 They are looking at creating an embeddable custom dynamic linker in order to greatly reduce loading…
comment by fwsgonzo · 2022-07-31 · in Carbon’s most exciting feature is its calling convention -
Ah, I overlooked this explanation at first: https://github.com/rui314/mold/blob/main/docs/design.md Thanks for the great write up as well as mold itself!
comment by bertr4nd · 2022-06-19 · in Mold/macOS is 11 times faster than the Apple's default linker to link Chrome -
I can infer from context that mold is a linker. It took searching for https://github.com/rui314/mold to learn what it actually was, though: "mold is a faster drop-in replacement for existing Unix linkers. It is several times faster than…
comment by astrostl · 2022-06-19 · in Mold/macOS is 11 times faster than the Apple's default linker to link Chrome -
It's being discussed ( https://github.com/rui314/mold/issues/117 ) but haven't reached any conclusion. The problem is that the jobserver protocol assumes that one process is one job, and its model doesn't fit very well to programs such as…
comment by rui314 · 2022-06-19 · in Mold/macOS is 11 times faster than the Apple's default linker to link Chrome -
You may want to read this section of the README. https://github.com/rui314/mold#why-does-the-speed-of-linking...
comment by rui314 · 2022-06-19 · in Mold/macOS is 11 times faster than the Apple's default linker to link Chrome -
…LTO [1]. But if it were to, could we still expect performance gain over lld when doing LTO? [1] https://github.com/rui314/mold/issues/181
comment by wyldfire · 2022-06-19 · in Mold/macOS is 11 times faster than the Apple's default linker to link Chrome -
https://github.com/rui314/mold#why-is-mold-so-fast
comment by aidenn0 · 2022-06-19 · in Mold/macOS is 11 times faster than the Apple's default linker to link Chrome -
…few other bits, like decoupling the build step in tauri from the frontend build, that helped. [0]: https://github.com/rui314/mold
comment by c0balt · 2022-06-16 · in Tauri 1.0 – Electron Alternative Powered by Rust -
…know whether it improves your compile times or not? Here's the instructions for using it with Rust: https://github.com/rui314/mold#how-to-use=
comment by stefanos82 · 2022-06-16 · in Tauri 1.0 – Electron Alternative Powered by Rust -
…this trick before, but it's the rare combination of "genius" and "obvious in retrospect". [1]: https://github.com/rui314/mold/blob/main/docs/design.md
comment by OskarS · 2022-06-03 · in Using the mold linker for fun and 3x-8x link time speedups -
…the recommendations from sccache and mold. sccache: https://github.com/mozilla/sccache#usage mold: https://github.com/rui314/mold#how-to-use My own cargo.toml: [build] rustc-wrapper = "/usr/bin/sccache" [target.x86_64-unknown-linux-gnu]…
comment by vladvasiliu · 2022-04-23 · in Show HN: Fleet – Experimental build tool for Rust that’s up to 5x faster -
…of significantly faster linkers, I personally use mold[1], including when writing in Rust. [1]: https://github.com/rui314/mold
comment by higherhalf · 2022-03-15 · in Rpath, or why lld doesn’t work on NixOS