logoalt Hacker News

wizzwizz4yesterday at 11:07 PM1 replyview on HN

> Works until AI compromises a bunch of OSes.

Just write a new OS. It's a weekend project to get enough groundwork that you can bootstrap a clean system from clean source code.

> And wouldn't there be difficulty comparing binaries built from significantly different environments?

Not really. Starting from stage 0, compile the compiler under test (stage 1), then use the compiled compiler to compile the compiler (stage 2), and compare the stage 2 artefacts. Provided that your comparison program is known-good, and the stage 2 build is deterministic (not the case for some real-world programs, but true for things like tcc), this lets you verify that the two compilation procedures work identically.


Replies

gleennyesterday at 11:33 PM

Not sure if you're joking. How do you write an OS without these tools that might be compromised? It's the same problem.

show 2 replies