HN Hall of Fame Weekly email

Files Are Fraught with Peril

Screenshot of danluu.com captured 2026-07-20
Page preview · captured 2026-07-20

Resurfaced independently across 4 calendar years, with breakout response in 3 of them.

submissions
11
submitters
11
observed span
2019–2025
peak thread · 119 comments
240 pts
latest 20+ return · 2025-01-23
203 pts

Submission timeline

2007–2026

One slot for every year since HN launched. Height is that year's peak points; orange marks a 100+ point or 50+ comment breakout. Select a bar to open its strongest thread.

First comments on top threads

HN comment order

I did work on backup solutions and supported Dropbox, and I think that the author used Dropbox as a reference to support his own concerns about filesystems that are not related in any case to the Dropbox case. From the filesystem point of view, I don't think that Dropbox is so much concerned about you losing your data because of corruption. As, anyway they are supposed to be safe and versioned in the cloud. And I think that their app…

> Pillai et al., OSDI’14 looked at a bunch of software that writes to files, including things we'd hope write to files safely, like databases and version control systems: Leveldb, LMDB, GDBM, HSQLDB, Sqlite, PostgreSQL, Git, Mercurial, HDFS, Zookeeper. They then wrote a static analysis tool that can find incorrect usage of the file API, things like incorrectly assuming that operations that aren't atomic are actually atomic, incorrectly assuming that operations that can be re-ordered will execute in program order…

This situation is so terrible, and its embarrassing that despite decades of work, our industry doesn't seem to be able to solve this problem in any modern operating system. (Edit: Apparently except for windows vista!) It seems obvious to me that we need a transactional filesystem API with methods like: fbegin() fwrite() / rename / etc fcommit() Most of the write calls wouldn't return errors directly. Then the fcommit() call would atomically flush the locally buffered changes to the filesystem…

josephg·103-point thread·

Always glad to see another Dan Luu article. Also props to Sqlite for being one of the last ones standing when it comes to fighting filesystem crashes. It is truly an incredibly high quality piece of software AND it's free, what a world to live in.

The first top-level comment from each of the four biggest threads, in HN’s own order. Excerpts are shortened; open a comment for full context.

Breakout years
3

100+ points or 50+ comments

Total points
583

reference only — not used in Hall rules or ranking

Total comments
260

reference only — not used in Hall rules or ranking

Every submission

DateTitle as submittedByPointsComments
2019-07-12Deconstruct Files, Talk Transcriptmpweiher142
2019-07-13Deconstruct Files, Talk Transcriptdoppp10
2019-07-13Deconstruct Filesyarapavan30
2019-07-16Deconstruct Filessigna1120
2019-07-16Deconstruct Filesearenndil50
2019-07-20Using files is fraught with perilsigil71
2019-07-21Files Are Fraught with PerilAnIdiotOnTheNet30
2019-07-23Files Are Fraught with PerilFirst breakout · Best threadtambourine_man24078
2020-11-14Files Are Fraught with Peril (2019)bshanks10359
2022-10-26Files Are Fraught with Periljstanley21
2025-01-23Working with Files Is Hard (2019)Hall induction · Latest 20+ point returnnathan_phoenix203119