frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Anthropic Outage for Opus 4.5 and Sonnet 4/4.5 across all services

https://status.claude.com/incidents/9g6qpr72ttbr
149•pablo24602•1h ago•78 comments

2002: Last.fm and Audioscrobbler Herald the Social Web

https://cybercultural.com/p/lastfm-audioscrobbler-2002/
109•cdrnsf•2h ago•45 comments

JSDoc is TypeScript

https://culi.bearblog.dev/jsdoc-is-typescript/
70•culi•3h ago•91 comments

Hashcards: A plain-text spaced repetition system

https://borretti.me/article/hashcards-plain-text-spaced-repetition
212•thomascountz•6h ago•87 comments

Ask HN: What Are You Working On? (December 2025)

115•david927•6h ago•392 comments

In the Beginning was the Command Line (1999)

https://web.stanford.edu/class/cs81n/command.txt
69•wseqyrku•6d ago•28 comments

The Typeframe PX-88 Portable Computing System

https://www.typeframe.net/
83•birdculture•5h ago•21 comments

Developing a food-safe finish for my wooden spoons

https://alinpanaitiu.com/blog/developing-hardwax-oil/
121•alin23•4d ago•63 comments

Claude CLI deleted my home directory Wiped my whole Mac

https://old.reddit.com/r/ClaudeAI/comments/1pgxckk/claude_cli_deleted_my_entire_home_directory_wi...
15•tamnd•12m ago•3 comments

Interview with Kent Overstreet (Bcachefs) [audio]

https://linuxunplugged.com/644
9•teekert•3d ago•1 comments

History of Declarative Programming

https://shenlanguage.org/TBoS/tbos_15.html
3•measurablefunc•49m ago•0 comments

Advent of Swift

https://leahneukirchen.org/blog/archive/2025/12/advent-of-swift.html
35•chmaynard•3h ago•6 comments

AI and the ironies of automation – Part 2

https://www.ufried.com/blog/ironies_of_ai_2/
194•BinaryIgor•10h ago•83 comments

GraphQL: The enterprise honeymoon is over

https://johnjames.blog/posts/graphql-the-enterprise-honeymoon-is-over
153•johnjames4214•6h ago•130 comments

Shai-Hulud compromised a dev machine and raided GitHub org access: a post-mortem

https://trigger.dev/blog/shai-hulud-postmortem
168•nkko•13h ago•103 comments

Disks Lie: Building a WAL that actually survives

https://blog.canoozie.net/disks-lie-building-a-wal-that-actually-survives/
42•jtregunna•2d ago•39 comments

GNU recutils: Plain text database

https://www.gnu.org/software/recutils/
89•polyrand•4h ago•26 comments

Checkers Arcade

https://blog.fogus.me/games/checkers-arcade.html
9•fogus•2d ago•1 comments

Price of a bot army revealed across online platforms

https://www.cam.ac.uk/stories/price-bot-army-global-index
66•teleforce•7h ago•16 comments

Standalone Meshtastic Command Center – One HTML File Offline

https://github.com/Jordan-Townsend/Standalone
42•Subtextofficial•5d ago•10 comments

Baumol's Cost Disease

https://en.wikipedia.org/wiki/Baumol_effect
67•drra•11h ago•76 comments

Linux Sandboxes and Fil-C

https://fil-c.org/seccomp
328•pizlonator•1d ago•129 comments

Illuminating the processor core with LLVM-mca

https://abseil.io/fast/99
54•ckennelly•8h ago•5 comments

From sci-fi to reality: Researchers realise quantum teleportation using tech

https://cordis.europa.eu/article/id/462587-from-sci-fi-to-reality-researchers-realise-quantum-tel...
11•donutloop•1h ago•4 comments

Compiler Engineering in Practice

https://chisophugis.github.io/2025/12/08/compiler-engineering-in-practice-part-1-what-is-a-compil...
99•dhruv3006•15h ago•18 comments

Efficient Basic Coding for the ZX Spectrum (2020)

https://blog.jafma.net/2020/02/24/efficient-basic-coding-for-the-zx-spectrum/
47•rcarmo•11h ago•11 comments

iOS 26.2 fixes 20 security vulnerabilities, 2 actively exploited

https://www.macrumors.com/2025/12/12/ios-26-2-security-vulnerabilities/
122•akyuu•7h ago•107 comments

Do dyslexia fonts work? (2022)

https://www.edutopia.org/article/do-dyslexia-fonts-actually-work/
43•CharlesW•3h ago•40 comments

I fed 24 years of my blog posts to a Markov model

https://susam.net/fed-24-years-of-posts-to-markov-model.html
285•zdw•1d ago•112 comments

Kimi K2 1T model runs on 2 512GB M3 Ultras

https://twitter.com/awnihannun/status/1943723599971443134
196•jeudesprits•10h ago•98 comments
Open in hackernews

Disks Lie: Building a WAL that actually survives

https://blog.canoozie.net/disks-lie-building-a-wal-that-actually-survives/
42•jtregunna•2d ago

Comments

compressedgas•2d ago
I thought an fsync on the containing directories of each of the logs was needed to ensure the that newly created files were durably present in the directories.
jtregunna•2d ago
Right, you do need to fsync when creating new files to ensure the directory entry is durable. However, WAL files are typically created once and then appended to for their lifetime, so the directory fsync is only needed at file creation time, not during normal operations.
breakingcups•2d ago
> Conclusion

> A production-grade WAL isn't just code, it's a contract.

I hate that I'm now suspicious of this formulation.

jtregunna•2d ago
In what sense? The phrasing is just a generalization, production-grade anything needs consideration of the needs and goals of the project.
rogerrogerr•2d ago
“<x> isn’t just <y>, it’s <z>” is an AI smell.
devman0•13m ago
Wouldn't that just be because the construction is common in the training materials, which means it's a common construction in human writing?
1718627440•9m ago
It must be, but any given article is likely to not be the average of the training material, and thus has a different expectedness of such a construction.
dspillett•4m ago
It is, but partly because it is a common form in the training data. LLM output seems to use the form more than people, presumably either due to some bias in the training data (or the way it is tokenised) or due to other common token sequences leading into it (remember: it isn't an official acronym but Glorified Predictive Text is an accurate description). While it is a smell, it certainly isn't a reliable marker, there needs to be more evidence than that.
Aeglaecia•27m ago
https://en.wikipedia.org/wiki/Wikipedia:Signs_of_AI_writing

the language technique of negative parallel construction is a classic signal for AI writing

nmilo•1h ago
You’re not insane. This is definitely AI.
jmpman•2d ago
I’ve seen disks do off track writes, dropped writes due to write channel failures, and dropped writes due to the media having been literally scrubbed off the platter previously. You need LBA seeded CRC to catch these failures along with a number of other checks. I get excited when people write about this in the industry. They’re extremely interesting failure modes that I’ve been lucky enough to have been exposed to, at volume, for a large fraction of my career.
jmpman•1d ago
https://en.wikipedia.org/wiki/Data_Integrity_Field

This, along with RAID-1, is probably sufficient to catch the majority of errors. But realize that these are just probabilities - if the failure can happen on the first drive, it can also happen on the second. A merkle tree is commonly used to also protect against these scenarios.

Notice that using something like RAID-5 can result in data corruption migrating throughout the stripe when using certain write algorithms

jmpman•1d ago
The paranoid would also follow the write with a read command, setting the SCSI FUA (forced unit access) bit, requiring the disk to read from the physical media, and confirming the data is really written to that rotating rust. Trying to do similar in SATA or with NVMe drives might be more complicated, or maybe impossible. That’s the method to ensure your data is actually written to viable media and can be subsequently read.
wmf•37m ago
Note that 99% of drives don't implement DIF.
joecool1029•1h ago
Flashback to this old thread about SSD vendors lying about FLUSH'd writes: https://news.ycombinator.com/item?id=38371307 (I have a SKHynix drive with this issue)
jeffbee•1h ago
This FAST '08 paper "Parity Lost and Parity Regained" is still the one I pull out and show people if they seem to be under-imagining all the crimes an HDD can do.

https://www.usenix.org/legacy/event/fast08/tech/full_papers/...

eatonphil•1h ago
Seconded.
jandrewrogers•1h ago
People consistently underestimate the many ways in which storage can and will fail in the wild.

The most vexing storage failure is phantom writes. A disk read returns a "valid" page, just not the last written/fsync-ed version of that page. Reliably detecting this case is very expensive, particularly on large storage volumes, so it is rarely done for storage where performance is paramount.

formerly_proven•1h ago
Not that uncommon failure mode for some SSDs, unclean shutdown is like a dice roll for some of them: maybe you get what you wrote five seconds ago, maybe you get a snapshot of a couple hours ago.
jandrewrogers•59m ago
Early SSDs were particularly prone to phantom writes due to firmware bugs. Still have scars from the many creative ways in which early SSDs would routinely fail.
doubled112•45m ago
In college I had a 90GB OCZ Vertex, or maybe it was a Vertex 2.

It would suddenly become blank. You have an OS and some data today, and tomorrow you wake up and everything claims it is empty. It would still work, though. You could still install a new OS and keep going, and it would work until next time.

What a friendly surprise on exam week.

Sold it to a friend for really cheap with a warning about what had been happening. It surprise wiped itself for him too.

kami23•1h ago
I worked with a greybeard that instilled in me that when we were about to do some RAID maintenance that we would always run sync twice. The second to make sure it immediately returns. And I added a third for my own anxiety.
zabzonk•1h ago
it's not just a good idea for raid
kami23•1h ago
Oh definitely not, I do it on every system that I've needed it to be synced before I did something. We were just working at a place that had 2k+ physical servers with 88 drives each in RAID6, so that was our main concern back then.

I have been passing my anxieties about hardrives to junior engineers for a decade now.

wmf•1h ago
You need to sync twice because Unix is dumb: "According to the standard specification (e.g., POSIX.1-2001), sync() schedules the writes, but may return before the actual writing is done." https://man7.org/linux/man-pages/man2/sync.2.html
1718627440•53m ago
> Unix is dumb

I don't know. Now async I/O is all the rage and that is the same idea.

marcosdumay•40m ago
The syscall is literally called "sync", though.
1718627440•37m ago
I think it is a way of the OS to shoehorn async into a synchronously written application.
wmf•39m ago
If they had a sync() system call and a wait_for_sync_to_finish() system call then you'd be right. But they didn't have those.
1718627440•11m ago
https://news.ycombinator.com/item?id=46268127 (To quote yourself :-) )
amelius•30m ago
Then how do you know the writes are done after the second sync?
wmf•24m ago
AFAIK multiple syncs can't happen at the same time so the second sync implicitly waits for the first one to complete.
lowbloodsugar•56m ago

  sync; sync; halt
eatonphil•1h ago
Check out Parity Lost and Parity Regained and Characteristics, Impact, and Tolerance of Partial Disk Failures (which this blog indirectly cites) if you'd like authoritative reading on the topic.

https://www.usenix.org/legacy/event/fast08/tech/full_papers/...

https://citeseerx.ist.psu.edu/document?repid=rep1&type=pdf&d...

wmf•43m ago
This article is pretty low quality. It's an important and interesting topic and the article is mostly right but it's not clear enough to rely on.

The OS page cache is not a "problem"; it's a basic feature with well-documented properties that you need to learn if you want to persist data. The writing style seems off in general (e.g. "you're lying to yourself").

AFAIK fsync is the best practice not O_DIRECT + O_DSYNC. The article mentions O_DSYNC in some places and fsync in others which is confusing. You don't need both.

Personally I would prefer to use the filesystem (RAID or ditto) to handle latent sector errors (LSEs) rather than duplicating files at the app level. A case could be made for dual WALs if you don't know or control what filesystem will be used.

Due to the page cache, attempting to verify writes by reading the data back won't verify anything. Maaaybe this will work when using O_DIRECT.

n_u•41m ago
> Submit the write to the primary file

> Link fsync to that write (IOSQE_IO_LINK)

> The fsync's completion queue entry only arrives after the write completes

> Repeat for secondary file

Wait, so the OS can re-order the fsync() to happen before the write request it is supposed to be syncing? Is there a citation or link to some code for that? It seems too ridiculous to be real.

> O_DSYNC: Synchronous writes. Don't return from write() until the data is actually stable on the disk.

If you call fsync() this isn't needed correct? And if you use this, then fsync() isn't needed right?

scottlamb•29m ago
> Wait, so the OS can re-order the fsync() to happen before the write request it is supposed to be syncing? Is there a citation or link to some code for that? It seems too ridiculous to be real.

This is an io_uring-specific thing. It doesn't guarantee any ordering between operations submitted at the same time, unless you explicitly ask it to with the `IOSQE_IO_LINK` they mentioned.

Otherwise it's as if you called write() from one thread and fsync() from another, before waiting for the write() call to return. That obviously defeats the point of using fsync() so you wouldn't do that.

> If you call fsync(), [O_DSYNC] isn't needed correct? And if you use [O_DSYNC], then fsync() isn't needed right?

I believe you're right.

n_u•7m ago
I guess I'm a bit confused why the author recommends using this flag and fsync.

Related: I would think that grouping your writes and then fsyncing rather than fsyncing every time would be more efficient but it looks like a previous commenter did some testing and that isn't always the case https://news.ycombinator.com/item?id=15535814

amelius•29m ago
Deleting data from the disk is actually even harder.