本文介绍了 mold——由 Rui Ueyama 开发的一款现代链接器,旨在作为 GNU ld 的快速直接替代品——并在 Linux 服务器上通过链接约 160 MB 的 Node.js 可执行文件对其进行了基准测试。Mold 3.0 使用 128 个线程在 0.11 秒内完成了 Node.js 的链接——比 GNU ld 快约 24 倍,比 GNU gold 快 14 倍——即使单线程运行,其速度也是 GNU ld 的五倍。通过 -fuse-ld=mold 或 mold -run 包装器即可轻松采用 mold,对于每天需要多次重新构建的开发者来说,链接步骤几乎不耗费任何时间。
When you build a program, the compiler turns each source file into an object file. Then a linker stitches all the object files and libraries into one executable.
On Linux, the default linker is usually GNU ld (also called bfd). The GNU binutils also ship gold, an alternative linker that was designed to be faster. Gold was built at Google and first made available in 2008.
The mold linker is a newer linker written by Rui Ueyama. It was first released in 2021. It is meant as a drop-in replacement for GNU ld, and its main selling point is speed. The latest release is version 3.
继续阅读全文
为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。
AI 摘要A journal editor argues that AI agents can now generate entire research papers—with plots, tables, and discussion—so easily that writing a paper, even a serious-looking one or a PhD thesis, no longer signals high ability and will lose its prestige. The author contends that academic publishing has already been irreversibly disrupted, even if societal norms take time to adjust. Academics should therefore focus on solving actual problems, since while writing about curing cancer is now trivial, curing cancer itself remains a genuine challenge.
AI 摘要Robert Godin and the author have released a new 741-page textbook, 'Introduction to Machine Learning and Artificial Intelligence with Python,' available in paperback and Kindle editions. The book is aimed at college students taking a first course or Python programmers wanting to learn machine learning, covering NumPy, Pandas, linear regression, decision trees, building a neural network from scratch, and then moving to PyTorch, transformers, model libraries, language models, reinforcement learning, and deploying a model in a container. Each chapter includes runnable examples and exercises with solutions.
AI 摘要The article argues that prestige—reputation by association with elite institutions or signals—is not the same as genuine reputation, which is earned slowly through reliable work and can be lost quickly. Prestige is noisy, gamified, and time-delayed, and relying on it too long becomes a negative signal, as illustrated by Andy Bernard from The Office constantly touting his Cornell degree. The author's advice is to skip the shortcuts and build real reputation by doing good work.
AI 摘要sjq is a new command-line tool that implements the jq filter language on top of the simdjson parser, filtering NDJSON at 3.5 GB/s on a single thread (about 37 times faster than jq) and up to 20 GB/s with multiple threads. It is highly compatible with jq, passing 728 of jq's 781 tests and supporting most of its features, while adding extras like the --fractured option for readable, table-like JSON output. sjq can be installed on Linux, macOS, and Windows via an install script, Homebrew, or Scoop.
AI 摘要The article argues that true innovation comes from those willing to bypass or 'cheat' rigid systems rather than seeking approval within them. Instead of convincing established institutions to change, innovators build alternatives—like starting their own platforms or founding companies such as SpaceX—that render the old system unnecessary. The author encourages readers to test ideas independently and find ways to work around existing rules rather than waiting for permission.