Dusk OS: 32-bit Forth OS. Useful during first stage of civilizational collapse
duskos.org
duskos.org
There’s something I adore about the aesthetic of this project and how this is written. I’ll probably never run the code myself, but I’d watch this show on Netflix in a heartbeat.
And if you are going to do something like this then you really should make it entirely self hosting and forget about networking and communities and such because by the time you need it those will all be gone and the best you'll be able to do is sneakernet. I hope your USB sticks will be EMP proof... papertape?
Anything that you rely on in a situation like that should be 100% maintenance free and should not rely on technology more complex than what you can make today in your garage with hand tools. Go over that level and it will just buy you a little bit of comfort but it won't last.
Candles: yes. Solar panels+batteries+inverters: forget it. Even a basic charge controller would be a major feat of engineering under those circumstances. I have some ideas on how I'd make that work if I really had to but I'd probably be too busy defending myself from marauders and taking care of my crops to be able to work on it...
What's interesting here is that plenty of the stuff that we take for granted is absolutely state-of-the-art engineering and there is no way that you'd be able to continue to rely on it for more than the available stock that you could still lay your (likely very grubby) hands on for spares, and even those have a limited shelf life.
Bootstrapping to the present day level of technology where working semiconductors can be taken for granted will take a long, long time. Even if you have the knowledge. Assuming that enough of the eco-system survives that you will be able to survive and procreate I'd estimate at least several generations, if we didn't entirely regress to some more primitive state. Mad Max would be an amazing level to bootstrap from, having working computers means you're focusing on the wrong thing. Electric light might be a good idea, but personally I would not count on LEDs or bulbs to last long enough in quantity and if you're going for batteries keep it simple: lead acid flooded cells (You'll need some basic chemistry tools and materials to make sulphuric acid, but that's probably doable).
It would be an interesting hard sci-fi novel to see the village black smith replaced by the village semi-smith and wind mill replaced by the nuclear mill.
Yes, if you rely on a bunch of hard to obtain tech, a stable energy supply, relatively pure starting chemicals and a whole pile of tooling. I'm aware of Jeri Ellsworth and Sam Zeloof, both are off the charts smart and capable and put the lie to the 'relatively easily' for anything approaching usable devices in quantity.
You'd be better off to learn how to wire relays, assuming you're going to find enough power. It's much easier to get to reliable logic circuitry via that route than it is by homebrew semiconductors, that's an optimization that you can do without if you have nothing. Even tubes would be simpler. And much, much easier to make. Nothing that you couldn't do with early 1900's technology.
Nuclear power in such a situation will likely only kill the operators. Wind power could be relied on for many decades, the Jacobs Wind Electric powerplant that was installed in the arctic still worked decades later under some of the most harsh conditions on the planet. Keeping it simple is key to anything that needs to work in such a setting.
Some electricity some of the time is very useful compared to no electricity, ever.
Lithium batteries will indeed likely not last for a decade but that has nothing to do with solar installations, though you could combine them (but you'd have a choice of chemistries and for stationary installations where weight and size are not usually the limiting factors you can do better than Lithium).
Usually the case is that one cell in a 'dead' battery has far lower capacity, and might only run a flashlight for 20 minutes (which is still useful, though I dispose of those). The other cells are comparable to new ones in capacity (maybe they're 90% or whatever of their original).
We often have a distorted idea of lifetimes and reliability because absent real scarcity we're overly prone to discarding things which can be fixed (e.g. using 5 bad laptop batteries to make four good ones) or are still usable. If you have no other source of light at night a flashlight you can only use for 20 minutes is still a life changing transformative device.
One could imagine searching for battery technology with much longer lifetimes. But I think you'd be better off with the best batteries you can find out of thousands of lithium cells ambient around you than just a few 'super batteries', esp if you're only talking about your lifetime or the lifetime of your children.
The grid is always changing in capacity and output. What makes the grid "the grid" is the ability to transmit power long-range based on demand. I'm saying that that kind of high-level coordination would be a pretty high priority for people in the face of apocalyptic disaster because people tend to be like that. Just trying to counter the cynical doom and gloom that nudges people toward hard-libertarian/ancap/mad-max mindsets.
On that note, learning CW (Morse Code) well enough to understand it by ear would be one my technical priorities if I were seriously worried about civilizational collapse, as well as more about early (pre-transistor) radio technology.
I've made a whole trip around the USA to make pictures of these old windmills, an amazing number of them are still around, sometimes even in working state. Waterpumpers for the most part but also lots of other uses including electricity generation.
I dunno if that's a good tradeoff. It's fairly difficult to make good tubes and the performance of pre-tube radio technology is extremely poor. Yet your home alone probably contains hundreds of transistors which could be scavenged to make radio receivers and transmitters.
Constructed correctly these devices have no significant wear out mechanism.
(I think the author’s predictions about the collapse of civilization are overblown, but still, if you’re going to engage in a middlebrow dismissal, at least do us the courtesy of reading and understanding what you’re dismissing.)
You should probably do me the courtesy to not make assumptions about what I've read and understood. This is such a common trope on HN that it made it into the guidelines.
The whole idea that the collapse of civilization is something slow is a massive assumption, it could be all over in a few microseconds so fiddling around with tech at a level like this is an exercise in futility: if this is the level that you end up at that's pure luxury and proof that civilization has not collapsed and likely will not collapse in the near future.
Microchips are not going to be much use in any situation where they can no longer be produced. They are the pinnacle of a very large pyramid and without the base the tip is next to useless.
A better - and far more immediate - use case would be to target the re-use of scavenged chips in the present day undeveloped parts of the world which are 100% dependent on imported goods.
We know exactly what to build and how to tie it all together, the reason we currently do not is economics, not because we could not.
Personally I think the degree to which the Western world is making itself dependent on supply chains like that is irresponsible, but I also think that to some degree it is the same kind of thinking that went on in Germany to make itself dependent on Russian gas. It goes something like 'let's tie ourselves together at the hip in an economic way so that a shooting war is no longer an option'. This presumes rational actors on both sides. Which was a giant mistake in the case of Russia and which may well be a giant mistake in the case of China and Taiwan. But then there is still Korea and possibly Japan.
If china becomes that aggressive that they are in open war with Taiwan, Korea and Japan won't be an option either.
"easy to imagine - a large enough collapse that making new ones is very very hard, especially compared to scrounging and repurposing the huge amount of existing ones. Imagine a huge population decline, and search parties looking through the ruins for useful tech, like computers, decades later.
Such a society could probably make new computers, but the cost of making new, much worse specced computers, may not be cost effective for a long time as long as old computers can be found and repaired.
Edit: such a movie or novel would make for great Fallout-ish world-building. Imagine for instance a large hotel in a big city running the booking system on an old laptop in a central secure location, and new 8-bit computers used as terminals at the front desk. Public access 8-bit computer terminals at public libraries connected to copies of WikiPedia running on some old gaming rig and such things. :-) "
edit: I think this sort of thinking is more of an excuse to scratch an itch than a realistic scenario. We are not so addicted to computers - yet - that we could not revert back to some stable society without them, but some of us are so addicted to them that we can't imagine a society without them. The first couple of hours of any major crisis will likely correct that in ways that are going to be very unpleasant. Effectively aiming for something 'in the middle' is aiming for a crisis that isn't a crisis. Anything that actually is a crisis would be better served by acid free prints of Wikipedia and the designs of common farm implements that can be made with just bench tools. You'd be on your feet again in a short few hundred years. But if you remain addicted to playing around in FORTH while the world goes to pieces around you chances are you'll be kicked out of any community you're a part of because you're slacking off your farming duties. Any world where you think you might need this will be so drastically altered from the one you live in today that you won't need it, you'll be way too busy to try to stay alive.
'slow collapse' is a bit of a contradiction in terms, all collapses that I'm aware of are sudden, they are events on the timescales that we normally care about, even though if you zoomed in on them enough they would show plenty of detail. Once started they will run their course. Gradual deterioration of society isn't something you need to make contingency plans for. It will happen, or it won't but your FORTH based OS isn't going to make a meaningful difference. For the aftermath of an EMP it will be useless and for a deterioration that takes a year, a decade, a century or even longer there will be other, far more effective mitigation strategies.
But fine, if that's the pretext the OP needed to build their thing I'm perfectly OK with it, I just don't think that's in any way a realistic premise. See also: preppers and shelter fanatics.
The people that are best positioned to deal with all of this are the Mennonites.
> hope your USB sticks will be EMP proof.
You don't keep your spare computers in a steel and copper clad safe?
It really feels like people would rather live in 1800 than continue with industrial society, even if the environmental toll and body count was far higher than what future tech could achieve.
That is a great question for which I don't have an answer, but thank you for asking it, it is something to think about.
Or it just doesn't seem like there's much an individual can do.
I think there's a connection here.
Running NetBSD without languages like Go and Rust clearly shows that compiling and running portable software is perfectly doable. If the Internet should collapse, just having a drive with a full set of NetBSD sources plus all the tarballs downloaded for source compiles in pkgsrc would make it possible to re-bootstrap dozens of targets. That's not possible when we treat the world as a fast amd64 with many gigabytes of RAM.
I'd love to see how far Dusk OS can go.
Where can I enlist my drawer?
Edit: Are there any easy entry points to this ecosystem for people interested in the concept but not familiar with the details? Like a competition to see who can get this up and running some set program the fastest on microprocessors found in the trash/recycling? Or what’s the most unexpected device people can get this running on?
I am not looking for users, only people willing to commit.
To put it in perspective, a rough estimate is that there were 20 million Sega Master Systems ever sold worldwide, compared to 20 billion (and counting) smartphones.
But the “collapse” backstory seems silly and redundant, and dare I say it reminiscent of the kind of prepper that relishes the prospect of apocalypse, just so that all their prepping pays off.
And if you're going to pick a date, why one over another?
+7 years seems a reasonable goal to make progress towards
Also it's effin goofy. Nerd CEOs building their underground fantasy post apocalypse shelter, thinking that not only that the society will collapse I their life time into a Fallout-ish World, but that their shelter is going to be of big help. But the goofyness is just that, it's the promotion and prophecies that are harmful.
The number of people and amount of treasure spent on it is a rounding error.
Let other people have their hobbies.
Thiel is rich and powerful, but he isn't that rich and powerful. There are more than enough counterbalancing forces.
And it starts to be way too thought policy (for me) deciding "You can't be rich and worry about civilization collapsing."
He's basically just another doomsday cultist.
Pretty much by definition the first people to prepare for any disaster will be people who are or at least appear to be unreasonable.
We benefit from a diversity of opinions, even when some of the opinions are wrong.
https://dustoffthebible.com/Blog-archive/2012/05/25/the-end-...
https://github.com/nornagon/jonesforth/blob/master/jonesfort...
Is a nice starting point. It's obviously not as compact as say 'Brainfuck' but it is far more versatile.
That's the thing: there are already many hackers and makers working on all kinds of ways to reuse old electronic. If they cannot really use this now - who can after a collaps?
If you have technology skills and reasonably expect to experience some sort of apocalyptic scenario, ISTM you'd be better off with a solar charger, a few rugged smartphones, and several SD cards containing backups of Wikipedia and as much reference material as you can collect. Getting to a better location (either by traveling or improving a deficient one) is likely to take up most of your mental and physical energy, and electronics are in the 'nice to have' part of your inventory, below weapons, tools, and basic survival supplies.
If you want to go really cheap and low power, consider stocking up on ESP32 devices, which are super-capable and can be had for only a few $ each.
That will buy you a decade. I'd go for a paper version of the stuff that you think is important enough to haul around in physical form for many decades and immediately start spreading these around in numbers large enough to ensure that some copies would survive. And even that assumes literacy, some level of schooling to survive, and enough specialization to be able to set aside time for people to study all of this. The best mechanism for something like that would probably be a priesthood of sorts... they tend to be long lived and good at preserving knowledge (and eventually to use it as a power base for domination of the unwashed masses which they work hard to keep dumb but that's already many steps down the line).
Deciding what to conserve and making it succinct enough to be manageable but detailed enough to useful actually seems like a great use case for AI. I'm a little more optimistic than you on the timeframe, as I have electronics that are decades old and work fine. Of course, if they suddenly stop it will be a source of disappointment rather than survival anxiety.
https://en.wikipedia.org/wiki/Electromigration
This puts an upper life-span on VLSI chips and has practical effects on the fabrication processes and materials used. The higher the integration level, the smaller the feature size the more important this becomes.
So if you want something to last a really long time use the largest feature size chips that you can still make your designs with.
This might sound a little out there, but imagine a world where even if npm/cloudflare/AWS goes down or if there's a world war and intercontinental fiber connections are attacked, everything keeps working. In a strange way, I'm incorporating these ideas into my current project[0]. Thank you weird project, which might have had a much deeper impact on me subconsciously.
The thought of a solitary hacker somehow saving our electronic heritage with nothing but a Sega Master System brings a grin to my face.
Semi-conductor industry has complex supply chains, and if cost of bunker fuel shoots to say $500 dollars a barrel, we are done with transcontinental shipping. There are few ways of getting there -- I know Civilization Collapse has dramatic effect and is the right marketing.
Half the time, you have a locked bootloader, and even if you don't, you probably need a bigger machine to stage and load new software. Even when you're done, you're stuck with a form-factor that's of limited alternate utility. Phones make a decent media player or ereader, but they're not really useful for many use cases. I'd expect, once you've got a few devices up and capable of preserving, say, human knowledge as defined by Wikipedia, you start looking for devices that are more GPIOs and less screen-and-storage. Access to something Arduino-esque could be a big force multiplier, because it allows process automation with relatively low manufacturing skill. Even something like an old mechanical clothes washer timer-- open and close a few relays over time, maybe respond to a few sense switches for emergency stop if the tub leaks-- requires a fairly high degree of mechanical tolerances to get right, or you could implement the same functionality in a few dozen lines of code for an Arduino-esque device, as long as you have the GPIOs. Phones are hardly amenable to that-- you try soldering a big relay to a tiny BGA processor pin.
Some of the documentation seems also focused around the idea of salvage at the component level. This may be a more feasible option too-- when you start to look beyond "computer/phone devices", there are a lot of embedded Z80s and EEPROMs that you could desolder and press into service, and they represent a lot more of a consistent baseline than 400 chips that are all theoretically ARM family, but have wildly different memory maps, peripherals, and varying instruction sets.
What will be a priority to you will be to survive, which essentially means how to get drinking water and nutrition, as well as territorial control and self defense.
A computer will be useful to you if you become a ruler that is responsible for the census, taxation, etc.
Rather than building a 'collapse OS', maybe just hoard some reference material, and have a plan (and multiple backup plans) for powering/charging devices in the absense of a power grid or fuel for generators/vehicles.
I don't think anyone's going to be doing much coding in a post-collapse world, let alone tinkering with the internals of an OS
Paper maps will be far more practical.
First targets going down in a global war will be GPS, Galileo, Glonass, etc. so all those systems will go offline right away.
All power will go to water pumps, heating, air conditioning, mining, etc.
Major challenge with prepping is uninterrupted vigilance maintaining your supplies… which likely is an Amazon marketplace business in and of itself… lol.
Can someone please explain to me how modern computers will die? I don't see how solid state electronics will break, will they eventually rust in 100 years or something?
Not sure if integrated circuitry suffers from this or other similar phenomenon to.
=> https://git.sr.ht/~vdupras/duskos/tree/master/item/fs/doc/sy...
Debian needs a little bit more.
The core system is about 8000 lines of code. The C compiler is 1400. Its memory footprint is extremely small (1MB to have a C compiler running on bare metal in the PC architecture). From here, you have a system capable of building C programs as well as bootstrapping itself.
This is level of simplicity is staggering and empowering -- it is completely reasonable to read and understand every single line of code in Dusk OS. This would be incomprehensible in something like Debian.
Even if you do have access to a modern computer which is not fried, you still need a whole bunch of devices, mass storage stuff and mains electricity to be able to boot it, and then on to find and boot some software.
The OS above would run in things like graphing calculator cpus, 8-bit video games and other "almost non-computer" devices which actually have simple but useable CPUs. It would be better than going back to the 1900s.
Virgil's "collapse" mindset, to me, is about building resilience and independence, and IMO Dusk OS is fantastic at this purpose.
FORTH is extremely easy to get into, a very powerful metaphor that has a ton of parallels in other languages, even if you don't realize it. There are strong connections between FORTH, LISP and shell programming languages to the point that they are in a manner of speaking different ways to express the same thing. Of those three I think LISP is the most complete and feature rich, and FORTH probably the least because it is much more barebones. But that upside of that is that it also requires absolutely no supporting infrastructure, the most basic access to a machine at the hardware level is enough to bootstrap to a usable system in an absolute minimum memory profile.
But a 32 bit FORTH implementation may well have embedded uses in the present (though, in some circles building something like this is more like a rite of passage and anybody able to use it properly is likely able to re-implement it, possibly better).