JournalArta
New York · · Market ClosedS&P 7,297.07 ▼1.47%
JournalArta
Global Edition
beyond headlines
S&P 5007,297.07▼1.47%
Nasdaq24,186.78▼2.37%
Dow Jones50,760.79▼0.77%
DXY104.95▼0.09%
Gold$3,783.30▲0.33%
WTI$83.15▼1.43%
BTC$46,485▲8.06%
Advertisement

Software purpose built for Nix

A startup test of fifteen Nixpkgs programs found that Jekyll made 8,167 unsuccessful file lookups before printing its version. The analysis argues that software designed for Nix could use dependency locations recorded during the build and avoid repeating those searches each time it starts.

2 min read
Software purpose built for Nix
A startup test of fifteen Nixpkgs programs found that Jekyll made 8,167 unsuccessful file lookups before printing its version. The analysis argues that

Jekyll made 8,167 unsuccessful file lookups before printing its version in a test of fifteen Nixpkgs programs published December 4, 2026. The analysis makes the case for software purpose-built for Nix. Programs could use dependency locations recorded during the build to avoid repeating searches at startup.

The test ran each program with --version and used strace to count lookups that returned ENOENT, the error for a missing file or directory. The counts show how often a lookup failed when the programs ran that command.

Nixpkgs Adds Startup Searches

Nixpkgs adds 18 directories to Ansible’s PATH, the list of places to look for commands. It also adds 78 package directories to Python’s module search path. Python searches those directories one at a time, even though the build already knows where each module lives.

Advertisement

Related analysis:Framework’s Laptop 12 is still flawed but it’s more fun with Linux

Nixpkgs uses a wrapper script to set up Ansible’s environment before running the original Python script. The package collection also uses tools that adjust file paths and script launch instructions so programs expecting directories such as /usr/lib and /etc can run from the Nix store.

Once Nix builds a package, its files stay fixed in the store. A change to a dependency triggers rebuilds of the packages that rely on it. That gives software designed for Nix predictable paths to the files it needs.

In the same test, cloc failed 95% of its file lookups. The analysis says each miss on a networked filesystem can require a round trip, adding work before the program can respond.

Advertisement

Further reading:GTA 6 Tops 2026’s Biggest Games Alongside Pokémon Pokopia

Python Rechecks Files That Stay Fixed

The aws --version command reread and hashed 869 Python source files to check that its cached compiled files were still current. It made those checks even though the source files were in /nix/store, where they cannot change after the build.

The analysis proposes generating lookup tables at build time and storing them alongside the other inputs in /nix/store. A program could then use those tables to find its dependencies without searching multiple directories. The test measured existing lookup behavior and did not time a rewritten program.

Python already offers a way to skip the cache check. PEP 552 defines an unchecked hash mode that lets Python use cached compiled files without rereading the source. Nixpkgs uses checked mode because SOURCE_DATE_EPOCH makes Python’s compileall tool default to it.

Our Standards: The JournalArta Editorial Principles.

Advertisement
What Kind of Holiday Spender Are You? Take the Black Friday QuizTake the quizWhat Kind of Holiday Spender Are You? Take the Black Friday QuizStart →
Advertisement
Most Read
  1. 1These ‘GTA 6 Online’ Leaks Can’t Be Trusted But Do Raise A Key QuestionThese ‘GTA 6 Online’ Leaks Can’t Be Trusted But Do Raise A Key Question
  2. 2Markets keep December Fed hike priced in after US payrolls fall 6,000Markets keep December Fed hike priced in after US payrolls fall 6,000
  3. 3Bitcoin Today: Crypto Prices Rebound After Steep Monthly LossesBitcoin Today: Crypto Prices Rebound After Steep Monthly Losses
  4. 4Pride and Prejudice 2005 Darcy Contrasts With Netflix’s Shyer UpdatePride and Prejudice 2005 Darcy Contrasts With Netflix’s Shyer Update
  5. 5ASX Week Ahead: RBA Decision and Wall Street Set the StageASX Week Ahead: RBA Decision and Wall Street Set the Stage
Advertisement
Don't Miss

Latest News

All stories →
  1. November jobs report dents 2027 Fed rate bets as December hike stays on trackWorld · United StatesNovember jobs report dents 2027 Fed rate bets as December hike stays on trackDec 6, 2026, 5:02 PM ET
  2. NSA Cyber Security Warning Lifts IBM Stock as Bitcoin Drops 20%Markets · CryptoNSA Cyber Security Warning Lifts IBM Stock as Bitcoin Drops 20%Dec 6, 2026, 5:01 PM ET
  3. Nick Avila: Budget a vacation fund without derailing debt paymentsLifestyle · TravelNick Avila: Budget a vacation fund without derailing debt paymentsDec 6, 2026, 4:54 PM ET
  4. Fed Set to Debate Rate Rise as Warsh Faces Trump PressureBusiness · Macro & PolicyFed Set to Debate Rate Rise as Warsh Faces Trump PressureDec 6, 2026, 4:53 PM ET
  5. Advertisement
  6. UAE Borrowing Costs Likely to Rise as US Fed Eyes Rate HikeBusiness · Macro & PolicyUAE Borrowing Costs Likely to Rise as US Fed Eyes Rate HikeDec 6, 2026, 4:48 PM ET
  7. Gen Z Feels Poor Despite a 90% Wealth GainBusiness · Macro & PolicyGen Z Feels Poor Despite a 90% Wealth GainDec 6, 2026, 4:46 PM ET
  8. Mortgage Rates Climb on December 6, 2026 as 30-Year Fixed Hits 7.31%Business · Macro & PolicyMortgage Rates Climb on December 6, 2026 as 30-Year Fixed Hits 7.31%Dec 6, 2026, 4:45 PM ET
  9. Broadcom, Anthropic and Adobe Lead Stocks to Watch December 7-11Business · CompaniesBroadcom, Anthropic and Adobe Lead Stocks to Watch December 7-11Dec 6, 2026, 4:40 PM ET