Hacker GitHub

← All repos

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

Mentions per year 95 mentions · busiest year 2022 (34)
20082026
  1. …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
  2. …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…
  3. 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."
  4. …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...
  5. 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]
  6. …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)
  7. …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
  8. PSA: try https://github.com/rui314/mold (Not affiliated with the project. Just switched to it and never looked back.)
  9. …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
  10. 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
  11. …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
  12. This could speed up linking: https://github.com/rui314/mold
  13. …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)
  14. …- 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)
  15. 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
  16. …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,…
  17. …technique used in mold[0] that can vastly benefit from a) faster memory, b) a wider memory bus. [0] https://github.com/rui314/mold
  18. Add mold into the mix, and you're in C++ heaven. https://github.com/rui314/mold
  19. I initially thought this would be about the mold linker ( https://github.com/rui314/mold )
    comment by lovasoa · 2023-12-06 · in Mold Course
  20. 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
  21. 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
  22. …link.exe flags for compatibility), which is already significantly faster than link.exe. [1]: https://github.com/rui314/mold/issues/190#:~:text=I%27ve%20a...
    comment by delta_p_delta_x · 2023-07-27 · in Mold 2.0
  23. I'm amazed at how quickly the author responds to requests: https://github.com/rui314/mold/issues/1057 From the report to the fix in less than two days. I'm not sure how competitive it will be with lld, especially if we consider ThinLTO…
    comment by zX41ZdbW · 2023-07-26 · in Mold 2.0
  24. …payment processors, and product tracking. Selling licenses should be easy, not a hassle. [1] https://github.com/rui314/mold/releases/tag/v2.0.0
    comment by hgs3 · 2023-07-26 · in Mold 2.0
  25. > Mold did it first, though: https://github.com/rui314/mold Before LLD?
    comment by ndesaulniers · 2023-06-07 · in Mergeable libraries [video]
  26. …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]
  27. …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
  28. …productivity by minimizing build time, particularly in rapid debug-edit-rebuild cycles. Source: https://github.com/rui314/mold
  29. 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?
  30. Using mold might help in this case. https://github.com/rui314/mold https://github.com/rust-lang/rust/issues/94347
  31. …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
  32. You should definitely check out Mold: https://github.com/rui314/mold
  33. …sponsoring the project. https://twitter.com/rui314/status/1593464571586830336 See Licensing on https://github.com/rui314/mold/releases/tag/v1.7.0
  34. 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
  35. 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
  36. 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
  37. …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
  38. https://github.com/rui314/mold don't support live update, but fast enough to boost productivity.
  39. …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…
  40. 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!
  41. 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…
  42. 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…
  43. You may want to read this section of the README. https://github.com/rui314/mold#why-does-the-speed-of-linking...
  44. …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
  45. https://github.com/rui314/mold#why-is-mold-so-fast
  46. …few other bits, like decoupling the build step in tauri from the frontend build, that helped. [0]: https://github.com/rui314/mold
  47. …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=
  48. …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
  49. …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]…
  50. …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