226 points · by kaycebasques · 1y ago · 199 comments
In terms of computing, this means that any strategy looking at a before/after collapse framing is missing the entire interesting middle part - how do we transition from this high-tech to low-tech world over the course of decades. I seriously doubt it can happen by anticipating what computing we might need and just leapfrogging there.
I think the vision here is more likely to play out, if any were to. Not many fabs that can make modern chips, and the biggest one is under the business end of Chinese artillery so. Gotta make do with whatever we have even if new supply dries up.
Uh, wait, I've properly read your comment now.
Still, I miss a ZMachine interpreter for DuskOS. And networking. Gopher, IRC and email (among maybe some NNTP client) are a must.
We really have no way to predict it. It is even likely to be different in different locales.
Which means we might be living in collapse now, we just don't know it yet. "The Long Emergency" as James Howard Kunstler put it.
When a professional prognosticator's prognostications continue to be falsified by actual events, year after endless year, at some point don't people stop listening to them?
I'm assuming you're talking about the internet, networked services, etc, because that's the only conceivable way a collapse could happen that quickly... except all modern infrastructure we rely on like that has backups and redundancy built in, and largely separated failure domains, so that such a failure would never be able to happen that quickly.
- Industrial food will gradually become extremely expensive and homesteading will become more popular. Crop failures and famines will be routine as food security and international trade wanes.
- Unemployment will soar with automation and overall decreased purchasing power.
- Crime and theft will soar as police decline (Austin TX is already understaffed by 300 officers and doesn't respond to property crimes until 48 hours later)
- Civil/national/world wars.
- 100M's of climate refugees migrating across and between continents. If you think scapegoating of "illegal" immigrants is bad now, just wait until all forms of hate in the forms of racism, xenophobia, and classism become turbocharged. Expect militarized borders guarded by killer robots.
I didn't design it for a post-collapse scenario, but one can salvage program parts from binary artifacts and create new programs with it, just like how a mechanic in a Mad Max world can scavenge car parts from a scrapyard and create new contraptions. It deconstructs the classical compile-assemble-link workflow in a manner that tends to cause migraines to sane persons.
I've even managed to slightly bend the rules around ABI and sling binary code across similar-ish platforms (PlayStation to Linux MIPS and Linux x86 to Windows x86), but to really take this to its logical conclusion I'd need a way to glue together incompatible ABIs or even ISAs, in order to create program chimeras from just about any random set of binaries.
Virtual machines/emulators are one extreme, recreating the environment it ran in so no human examination of the particular program is necessary. The approach you describe is at the other end, using bits of programs directly in other code to do basically black-box functions that aren't worth figuring out and coding properly.
Here, I'm actually stealing code and data from one or more executables and turning these back into object files for further use. Think Doctor Frankenstein, but with program parts instead of human parts.
I only operate on dead patients in a manner of speaking, but you could delink stuff from a running process too I suppose. I don't think it would be useful in the context of return-oriented programming, since all the code you can work with is already loaded in memory, there's no need to delink it back to relocatable code first.
Unless I'm mistaken, it doesn't seem to do anything in particular w.r.t. relocations, which is the tricky part about delinking. My educated guess it that repacking might be enough for purely self-contained position-independent code and data, but anything that contains an absolute address will lead to dangling references to the original program's address space.
My tooling recovers relocatable section bytes and recreates relocation tables in order to export object files that are actually relocatable, regardless of their contents.
We could use emulators to stitch together code from binaries compiled for particular CPUs.
Please consider writing up something about this binary mashup toolkit. You have taken an unusual path and shown how far one can go... it's worthy of sharing more widely.
Good luck!
I've mostly used a linker to build new programs with the parts I've exported. Some of my users use objdiff to compare the output of their decompilation efforts against recreated object files. Others use objcopy or homemade tools to further modify the object files (mostly tweaking the symbol table) prior to reuse. One can generate assembly listings with objdump, although Ghidra already gives you that.
Ironically, the hardest part about using my delinker I think (besides figuring out errors when things go wrong) is just realizing and imagining what you can do with it. It's rather counter-intuitive at first because this goes against anything one might learn in CS 101, but once you get it then you can do all kinds of heretical things with it.
To take this to the next level, beyond adding support for more ISAs and object file exporters, I'd need to generate debugging symbols in order to make debugging the pilfered code a less painful experience. There are plenty of ways delinking can go wrong if the Ghidra database is incorrect or incomplete and troubleshooting undefined behavior from outer space can get tedious.
But in the context of a post-collapse scenario, what one would be really after is some kind of linker that can stitch together a working program from just about any random bunch of object files, regardless of ABI and ISA. My experiments on cross-delinking remained rather tame (same ISA, similar ABI) because gluing all that mess by hand gets really complicated really fast.
I've demonstrated a bunch of use-cases on my blog, ranging from porting software to pervasive binary patching and pilfering application code into libraries, all done on artifacts without source code available.
I have one user in particular who successfully used it on a huge (7 MiB) program in a span of a couple of weeks, most of them spent fixing bugs on my end. They then proceeded to crank up the insanity to 11 by splitting that link-time optimized artifact into pieces and swapping parts out willy-nilly. That is theoretically impossible because LTO turns the entire program into a single translation unit subject to inter-procedure optimizations, so functions will exhibit nonstandard calling conventions you can't replicate with freshly built source code, but I guess anything's possible when you binary patch __usercall into MSVC.
I should get back to it once work is less hectic. Delinking is an exquisitely intricate puzzle to solve algorithmically and I've managed to make that esoteric but powerful reverse-engineering technique not only scalable to megabytes worth of code, but also within reach of everyday reverse-engineers.
Thanks!
I feel these kinds of projects may be fun, but they're essentially just LARPing. Though this one seems to have a more reasonable concept than most (e.g. "My raspbery pi-based "cyberdeck" with offline wikipedia will help!" No, you need a fucking farming manual on paper.).
I'm not an optimist in today's societal climate, but the rationale [1] stems from peak oil and cultural bankruptcy. Peak oil is (was?) the concern of limited oil production in the face of static or increasing demand. The 2019 peak from big oil wasn't about declining production, but declining demand [2]. Which is good, if the ideal is long-lasting migration to renewables.
I won't try to predict the future w/r/t what current societal trends mean for the long-term success of global supply chains, but I would be greatly surprised if cultural bankruptcy alone causes the complete collapse of society in the next 5-10 years.
[1] http://collapseos.org/civ.html
[2] https://www.bp.com/content/dam/bp/business-sites/en/global/c...
- lightly protected and globally reachable attack surface
- increasing geopolitical tensions
- the bizarre tendency to put everything possible online, i.e. IoT devices that always need internet, resources that rely on CDNs to function, other weird dependencies.
Crude automated [solar powered] farm machines - would probably be useless. Animal power is probably the way to go. Or steam. Go to a threshing bee sometime: I've seen a tractor that runs on wood.
Solar powered ebook readers to store those farming manuals and other guides - the life span of batteries would be short, get that shit on paper fast.
Solar powered computers for spreadsheets and planning software - plan in your head or use a paper spreadsheet.
Computers might be everywhere today, and you personally might not know how to do anything without a computer, but practically no one had a computer 40-45 years ago, and literally no one had a computer when society was last at a "collapse" level of technology. COMPUTERS ARE NOT NECESSARY.
The point of having computers is simply that they perform certain tasks orders of magnitude faster than humans. They're a tool, no more and no less. Before computers, a "calculator" was a person with paper and a slide rule, and you needed hundreds of them to do something like compute artillery trajectories, army logistics, machine tool curves, explosive lensing, sending rockets into space, etc. Managing to keep just one solar-powered calculator working for 10 years after a collapse frees up all those people to do things like farming. Keeping a solar-powered electric tractor working frees up all those farmers, and frees up the animals for eating.
IMHO this project is at least operating under the right principles, i.e. make the software work on scavenged parts, control your dependencies, be efficient with your computations, focus on things you can't do with humans.
Considering how much potentially invaluable info is only/mostly/only easily available as a PDF, I'm thinking a working ereader would be of nontrivial value.
Now...if there was only a way to crunch a PDF on an 8-bit processor I recovered from my washing machine...
It also left me wanting more. It has pretty extensive references at the end, I wonder if anyone's put together a collection of all the referenced materials?
>Some people doubt that computers will stay relevant after a civilizational collapse. I mostly agree. The drastic simplification of our society will mean that we have a lot less information to manage. We'll be a lot more busy with more pressing activities than processing data.
>However, the goal of Collapse OS is not to save computing, but electronics. Managing electricity will stay immensely useful.
I think thats a notable goal. We will conduct business with pen and paper but given that even in a collapse scenario there will be lots of remnants of the current era lying around might as well try and make use of it. Its one of the reason I really don't like the people collecting e-waste in bulk and then melting down the chips for tiny scraps of gold. So much effort went into making those chips there has got to be a better way to preserve these things for usage later.
Other kinds of very-low-bit-rate telecommunications messages that are still extremely valuable:
"Lucretia gravely ill. Hurry."
"I-44 mile 451: bandits."
"Corn $55 at Salem."
"Trump died."
"Springfield captured."
"General Taylor signed ceasefire."
"Livingstone found alive."
The first of these inspired Morse to invent the telegraph; she died before the mail reached him. None of them are over 500 bits even in ASCII, and probably each could be encoded in under 100 bits with some attention to coding, some much less. 100 bits over, say, 2 hours, requires a channel capacity of 0.014 bits per second.
Even without advanced compression algorithms, you could easily imagime the corn message being, say, "<figs>!$05000<ltrs>ZCSXV" in ITA2 "Baudot" code: 14 5-bit characters, 70 bits.
Information theory shows that there's no such thing as being out of communication range; it's just a question of what the bit rate of the channel is. But reducing that to practice requires digital signal processing, which is many orders of magnitude more difficult if you are doing it with pencil and paper. It also benefits greatly from precise timekeeping, which quartz resonator crystals make cheap, reliable, robust, and lightweight.
Encryption is another case where an amount of computation that is small for a microcontroller can be very valuable, even if you have to transmit the encrypted message by carving it into wood with your stone knife.
The Bitcoin blockchain in its current form requires higher bandwidth than a weather station network, but still a tiny amount by current internet standards, about 12kbps originally, I think about 26kbps with segwit. Bitcoin (or an alternative with a longer block time) could potentially provide a way to transmit not just prices but actual payments under adverse circumstances. It does require that participants have enough computing power to sign transactions; I think it should be relatively resilient against imbalances of computation power among participants, as long as no 51% attack becomes feasible through collusion.
I did. That's why I said it was a "more reasonable concept than most."
Mechanization and Automation.
It creates time you would normally have to spend actively on labor. Age of energy and all.
The main inputs for this though would be quite difficult to bootstrap. I'm talking about magnet wire enamel and electrical isolation.
You need that to make motors and actuators. You need computers for the control systems.
>you need a fucking farming manual on paper.
With an adjustable hole punch, prong fasteners, (optionally) duct tape for the spine, and (optionally) sheet protectors for the front and back covers, you can crank out a survival library of (open-source) books as fast as pages come out your Brother laser.I never bothered with fancy acid-free paper. Modern paper has good longevity, but to be safe I use non-recycled, non-whitened (91 brightness) paper.
Guide with prong fasteners (I prefer white tape, full-size pages, double/triple`inside a sheet protector as covers): https://www.youtube.com/watch?v=KVnpnHWcE04
A different technique with brad fasteners: https://www.youtube.com/watch?v=vD3vWZ0I85g
Lots of fancy book-binding tutorials out there, but I suspect most people don't realize how simple a paperback can actually be.
This is actually one of the few "post apocalyptic" computer ideas that actually makes some sense to me. Though it would probably still make more sense to pre-print that library than wait until conditions are difficult to do the printing.
Unless your plan is assume availability of printer paper, you'd still need to store the same volume of blank paper as your library, and you'd be stuck trying to run a printer when things like electricity are much less available.
> it would probably still make more sense to pre-print that library than wait until conditions are difficult to do the printing.
That's what I meant. Sorry I left it unclear. I should have explicitly called that out, thanks.Basically it's cliff-notes from my shot at an "MVP of home hardcopy backups." No surprise, these simpler techniques (often seen when corporations had internal printing for employee handbooks and such) are better suited to home processing with minimal equipment. All you need is a three-hole punch.
It's not about achieving a "perfect" bookbinding (a real term), or for people who do bookbinding as a hobby. Instead it's a fast/easy/cheap technique for people who just want a hardcopy backup, without needing a special bookbinding vice in the house.
Three ring binders were my obvious first choice, but they're surprisingly costly, somewhat awkward to use, prone to tearing pages, and usually take more space on the shelf.
Hope that explains it better. Cheers
An EMP destroys your electronics and makes accessing the digital version impossible?
No you're not. One component is your setup gets fried and you lose access to everything.
Paper is its own reader device: it's far more resilient, because it has much few dependencies for use. Just think about digital archiving vs paper archiving for a bit, and it becomes clear.
> I can't think of ANY situation where a print out of Wikipedia would be better than a digital version.
Wikipedia would be of little practical value in a post collapse situation. And frankly, it's pretty terrible now for anything besides satisfying idle curiosity.
The serious take: live in the countryside. This is an urban problem.
1. they rot on the face of the ground and the carrion eaters will take care of it
2. they are already cinder/charcoal and the plants will take care of it
In more plausible cases, we're talking about a population collapse where the deaths are either concentrated in cities, spread out over several years, or both. If they're concentrated in cities, maybe avoid the cities for three to six months until they finish rotting. If they're spread out over several years, those who die later will be able to bury those who die earlier; it only takes a few man-hours of labor to dig a grave.
Regarding hunting, if you're near a river and it isn't piling up with bodies from upstream, you can take up fishing. It's easier to learn from scratch on your own and requires less effort.
That's the area of the planet; you only get that distribution if the event also redistributes the bodies evenly over the entire globe, including oceans. (Though I'm not sure how you go from 14/km^2 to 25 meter separation?)
> If they're spread out over several years, those who die later will be able to bury those who die earlier; it only takes a few man-hours of labor to dig a grave.
During the covid pandemic, which was around a single percentage point of the world population over a few years, there were reports in the UK and the USA of mass graves, normal death procedures being overwhelmed.
Global supply chain collapse is kinda the "mass starvation because farms can't get fertiliser to grow enough crops, nor ship them to cities" scenario. If you can't hunt or fish, you're probably one of the corpses (very few people will have the land to grow their own crops, especially without fertiliser).
I think we'll see more of it as the boomers continue to age. Some folks mistake their own looming end for the end of all things.
I assume there's some significant hard-wiring for this type of emotion, with some people having a different baseline for their sensitivity to it. I also suspect the environment might push regional genetic population to have different sensitivities, depending on how harsh/unstable the environment is. I say "unstable" because I see doom as anxiety about the possibility. For example, in a region with a consistent harsh winter, doom has less use because piling food up is just routine, everyone does it, it's obvious. But, in an unstable environment, with a winter that's only sometimes harsh, you need to fear that possibility of a harsh winter. You're driven by the anxiety of what might be. You stockpile food even though you don't need it now: you're irrational in the instantaneous context, but rational for the long term context. It's a neat future looking emotion that probably evolved closely with intelligence.
Been doing some retro hobby (16-bit, real-mode, 80286) DOS development lately. It is refreshing to look at a system and be able to at least almost understand all the things going on. It might not be the simplest possible system, not the most elegant CPU design, but compared to the bloated monsters we use today it is very nice to work with. DOS is already stretching the limits of what I can keep in my head and reason about without getting completely lost in over-engineered (and leaky) abstraction layers.
I wonder if ESP32s and Arduinos might be more commonly found, though I could see the argument that places with those newfangled chips may be more likely to become radioactive craters in some scenarios.
That's not as easy as just dropping a full computer on your desk, but having a low power processor that's easy to find replacements for would be useful. That is, of course, if you spent the time pre-collapse to learn how to make a useful system out of those components, which I suspect is the real goal of Collapse OS.
Not a hugely compelling argument for "the z80 is still a popular microcontroller", mind.
[0] https://en.wikipedia.org/wiki/Comparison_of_Texas_Instrument...
[1] https://www.amazon.co.uk/Texas-Instruments-TI-84-CE-T-Python...
[2] Mild cheating going on though because it runs the Python on an ARM copro.
TI uses them in one of their calculator lines. I've seen gobs of them as embedded controllers in invarious industrial systems (I have family in manufacturing). I understand a lot of coin-op games (think pinball or pachinko) use them. I've seen them in appliance controller boards (don't recall the brand).
EDIT: oh, and in case the website goes over quota, try https://new.collapseos.org/ . I haven't thrown the DNS switch yet, but I expect my meager Fastmail hosting will bust today.
And from your website:
> What made me turn to the "yup, we're fucked" camp was "Comment tout peut s'effondrer" by Pablo Servigne, Éditions du Seuil, 2015.
That'll make for some light reading next time I head up north. Thanks for the recommendation.
But, if you absolutely needed to depend on it, I think that other technology might be better for the kinds of things we normally use microcontrollers for. If I need to control electronics where something that does this for a minute, then waits for that so it can do something else until this other thing, it's hard to imagine that a would-be apocalypse-ee would want to use a microcontroller rather than a more easily improvised mechanical cam timer [0]
There are no one-time programmable versions of AVR as far as I know, so they can all have their internal Flash reprogrammed.
>The page you have tried to access is not available because the owner of the file you are trying to access has exceeded our short term bandwidth limits. Please try again shortly.
It seems it collapsed!
I can't imagine a single 302 request getting redirected 10x in a loop to the redirect limit per visitor is good for bandwidth.
> under what conditions do you believe the civilization you're living under will collapse? [...] Oh, you just haven't made that list yet? [...] Or you could take the question from the other side and list the conditions that are necessary for your civilization to continue to exist. That's an interesting list too.
I've always dismissed collapse talk as "batshit crazy" as the author says. but he raises good points here. maybe I'm not batshit crazy enough.
In the wired article the author says he thinks climate change will disrupt trade routes, but obviously society would route around the damage as long as it remained profitable to do so. The only scenario in which this hypothetical makes sense would be mass causality events like pandemics or wars that prevent travel and trade.
So we're talking about a hypothetical situation in which global trade has halted almost completely for some reason, and has been stopped for a very, very long time. This means that the majority of the worlds population are either dead or dying, which means that YOU will be either dead or dying as well.
Even if we accept the premise (a tall ask) AND we assume you will happen to be one of the survivors because you're "special", wouldn't it make more sense to prep by building a cargo ship so trade can resume sooner than it does to build apocalypse proof micro-controller code?
Meanwhile, America didn't even exist for the Romans.
Luckily neither of those things has happened in the last few years.
FWIW I'm a bit torn on this. I think most websites should host both HTTP/2/3 with TLS, but also plaintext HTTP/1.1 as a fallback.
Yes, it's kind of a LARP situation, but imagine a future scenario where some hacker (who also is physically resilient and well-protected in the face of apocalypse) has to figure out how to boot or get some system operating that might control solar panels. Not knowing the architecture - can you boot it up? Can you analyze existing binaries, ports, and other features and get it crudely operating? This sounds like a helluva of a video game.
I can't think of a way to come into possession of MPUs like that without intentionally buying them ahead of time. And if I'm going to stockpile those, I might as well stockpile a more capable MCU or MPU instead and flash it with something else. 99.9% of what I'd want to do with minimalist computers in the apocalyptic wasteland would be just fine without an OS. Bare-bones MCUs work spectacularly for control systems, wireless cryptosystems, data logging, etc.
Maybe I didn't look hard enough in the README [1], but I don't see how I'd bootstrap a system like this without already having a much more capable system on standby. Which comes back to the issue of... why?
For $0.1 I can buy an MCU that can bit bang a keyboard , mouse, sound, VGA, with 2x the memory and 96 times the processing power as my old 6502 based computer. An esp32 is much, much more capable, like better than an old pentium machine and has wifi, usb, Bluetooth, etc…. And costs 0.7-2$ on a module. They can be found in home automation lightbulbs, among other things.
Espressos has shipped over a billion esp32 chips since the platform launched.
Sure, we should have a 6502 based solution, as it has a lot of software out there and a minimal transistor count, making it possible to hand-build. But for a long time we will be digging up esp32s and they are much more useful.
"But I do tons of hobbyist electronics with surface mount!", some could say. Yeah, sure, but how do you wire it? You order a PCB from OSH Park? That's not very scavenge-friendly. " - https://new.collapseos.org/why.html
Not that I totally disagree with this but see clay PCBs, another post-supply-chain-collapse electronics project https://media.ccc.de/v/38c3-clay-pcb#t=1689
Perhaps I should drag my Osborne out of the cellar and see if the floppies still work.
Funny to see how the comments haven't shifted (and have!) in the past 15 years.
If/when civilization collapses, we will have zero problem scavenging for x86 CPUs.
In case it's down for others: https://web.archive.org/web/20250221070009/http://magic-1.or...
"This web page is being served by a completely home-built computer: Bill Buzbee's Magic-1 HomebrewCPU. Magic-1 doesn't use an off-the-shelf CPU. Instead, its custom CPU is built out of ~200 74 series TTL chips."
"Magic-1 is running a new port of Minix 2.0.4, compiled with a retargeted LCC portable C compiler. The physical connection to the internet is done using a native interface based on Wiznet's w5300 TCP/IP stack."
While I hate to condone using TTL rather than CMOS, this is extremely cool!
The CPU is documented at https://homebrewcpu.com/. Unfortunately the TCP/IP information was only posted on Google Plus, which has now been memory-holed by Google.
There's a clone by Aidil Jazmi documented at https://www.aidilj.com/homemadecpu/.
Running CollapseOS on an Esp8266 - https://news.ycombinator.com/item?id=38645124 - Dec 2023 (1 comment)
DuskOS: Successor to CollapseOS - https://news.ycombinator.com/item?id=36688676 - July 2023 (4 comments)
Collapse OS – Why? - https://news.ycombinator.com/item?id=35672677 - April 2023 (1 comment)
Collapse OS: Winter is coming - https://news.ycombinator.com/item?id=33207852 - Oct 2022 (2 comments)
Collapse OS - https://news.ycombinator.com/item?id=31340518 - May 2022 (8 comments)
Collapse OS Status: Completed - https://news.ycombinator.com/item?id=26922146 - April 2021 (2 comments)
Collapse OS – bootstrap post-collapse technology - https://news.ycombinator.com/item?id=25910108 - Jan 2021 (116 comments)
Collapse OS Web Emulators - https://news.ycombinator.com/item?id=24138496 - Aug 2020 (1 comment)
Collapse OS, an OS for When the Unthinkable Happens - https://news.ycombinator.com/item?id=23535720 - June 2020 (2 comments)
Collapse OS - https://news.ycombinator.com/item?id=23453575 - June 2020 (15 comments)
Collapse OS – Why Forth? - https://news.ycombinator.com/item?id=23450287 - June 2020 (166 comments)
Collapse OS – Why? - https://news.ycombinator.com/item?id=22901002 - April 2020 (3 comments)
'Collapse OS' Is an Open Source Operating System for the Post-Apocalypse - https://news.ycombinator.com/item?id=21815588 - Dec 2019 (3 comments)
Collapse OS - https://news.ycombinator.com/item?id=21182628 - Oct 2019 (303 comments)
Then keep some laptops in a waterproof box.
The hard part is powering it, when the infrastructure to generate clean electricity is gone. What will you plug your transformer into? So solve that, create robust sources for electric power, and the rest can be solved with a few bulk laptop purchases off ebay.
If you have more than one survivor, you quickly need to learn to trade and cooperate to maximize your energy return, or else you all die, one by one.