Blog

Linking on NixOS, wrapper magic, and RPATH

July 24, 2022
readings
nixos

Linking in NixOS can definitely have a few surprises in store, as the blog post by matklad shows. Due to how RPATH works under NixOS, there are wrappers for applications such as linkers and tools like patchelf for patching pre-built binaries. The latter is also common for packaging binaries, where one should use AutoPatchelfHook.

Visualizing the Rust compilation process

July 24, 2022
readings
rust

Here, nnethercode reported in 2019 on a tool written by Eric Huss that allows for the generation of Gantt charts in order to analyze compilation timings. As of Rust 1.60 this feature is stable and one can simply use cargo build --timings. cargo will then inform you at the end of the build process that it has written an HTML report in target/cargo-timings/cargo-timing.html.