NewsCrawler.org

From 181 bytes: nixpkgs' full-source bootstrap

The article describes how nixpkgs builds GCC 16.2.0 from source on i686-linux. The only program it does not build is an 181-byte seed called hex0[1] that turns hex text into bytes. GCC 16 and glibc[2] have become nixpkgs' standard environment, so on x86_64-linux 89,093 of 89,254 packages have glibc in their build closure[3]. The exceptions are compilers that start from a prebuilt copy of themselves, such as GHC, rustc, Go and the JDK, and credit goes to stage0-posix and bootstrap-seeds by Jeremiah Orians and contributors, and to the nixpkgs minimal-bootstrap effort started by Emily Trau in May 2023.

Read the original fzakaria.github.ioDiscussion

Discussion

Commenters mostly praise the work. One says stage0 deserves a Nobel prize in computer science, while another says it is very cool but not Nobel-level and finds quoting yourself odd.

Sources

Published: First seen: Читать по-русски

Open as a page