3 ms·
Archiving software is a problem we don't have an adequate solution to yet. Part of the problem is that software is so interdependent: my small program depends
by kragen 8y ago
Archiving software is a problem we don't have an adequate solution to yet. Part of the problem is that software is so interdependent: my small program depends not only on the compiler that compiles it, but also the kernel it runs on, the libraries it links with, and even the I/O peripherals it interacts with.
Lorie proposed a "universal virtual computer", or UVC, to solve this problem, but it omitted the description of the peripherals (which, I'm told, was the hardest problem in bringing up the Spacewar emulator) and additionally has such a loosey-goosey definition that no reimplementation from the spec could conceivably be compatible with any other implementation.
Chifir, from Nguyen and Kay's paper, is a proposed solution to this for the problem of one single computer. You can implement the CPU part of Chifir in under an hour. We can probably come up with a better bootstrappable CPU; Chifir shows a promising direction to go in.
The biggest serious project in the direction of an archive of buildable source code is Debian. Thousands of volunteers work constantly to ensure that every version of every package can be built from source at the time, and it's mirrored all over the planet to protect from accidental loss. Unfortunately, Debian doesn't have a commitment to maintain compilability of old versions, although they do retain the source code.