Docker on tmpfs

The motivation Being one of the maintainers of Termux, I have to constantly build packages from source. Sometimes I have to rebuild the same package multiple times to fix some bug. Some of the packages are not so friendly on disk-writes. Some packages require cloning large git repos (multiple gigabytes), build itself does writes of multiple gigabytes at times. Some of the builds fail mid-way, thus having to repeat the entire cycle once again. Once again gigabytes of writes to the disk. During rebuilds of large packages with large reverse dependency trees, rebuilds are even longer. Once I even managed to do 1TBW on my SSD in a span of 10 hours. This was during test-rebuild of around 300 or the 3000 packages we have during CMake 4.0 update. Initially the plan was to rebuild all packages and obtain a list of all packages that are failing to build but it was later abandoned due to large amount of disk writes it’d do. ...

January 10, 2026 · 6 min · Yaksh Bariya

Interesting case of /proc and /dev on POSIX systems

TL;DR If you want to have a good read, I’d recommend skipping the TL;DR segment. You might miss some fun when reading the article if you read this out. You’ve been warned. /dev/stdin, /dev/stdout, and /stderr are not required to be implemented by the POSIX standard, but are listed as POSIX extensions. Similarly, /proc (or the procfs) is also just listed as an extension just once in the POSIX standard, with no mention of what things need to be there inside. ...

April 6, 2025 · 9 min · Yaksh Bariya

Streaming FreeCodeCamp's Coderadio using mpv

Motivation Who doesn’t like to be cool on the internet and amongst other developer friends? Anyone? Everyone like to flex their skills. Isn’t it? It’s much more cool to listen 24x7 to Lofi on the terminal, whereas your friends may be stuck on ads every now and then. Besides looking cool, having a browser open for streaming music isn’t a good deal. Browsers are way too bloates especially if you’re low on resources. ...

September 19, 2022 · 5 min · Yaksh Bariya