Collapse OS

by spraakon 10/7/2019, 4:18 PMwith 303 comments

by bcaa7f3a8bbcon 10/7/2019, 6:02 PM

I don't think just developing a Z80 operating system is enough. The whole ecosystem needs to be preserved.

In agriculture, we have the doomsday seed vault [0] just for this purpose. If we anticipate collapse of the current economic system or society, I think we should build a doomsday computer vault, that keeps everything we need to rebuild the computing industry in a underground bunker. It keeps everything we need in a controlled environment, such as 8080, Z80, m68k, motherboards, logic chips, I/O controllers, ROM/RAM, generic electronic parts, soldering irons, oscilloscopes, logic analyzers, schematics, documentation, textbooks, software. We also keep some complete, standalone computer systems such as desktops and laptops, and all the parts that need to service them. We also need to preserve the old semiconductor production lines around the world, although probably not in the same bunker. Even if we fail to build better systems, 8080s are already useful enough!

Meanwhile in peace time, we need to form a team of experts that makes a roadmap to rebootstrap the computing technology for the future using parts from the bunker, with a step-by-step plan, that can be easily followed and executed.

[0] https://en.wikipedia.org/wiki/Svalbard_Global_Seed_Vault

by SwellJoeon 10/7/2019, 5:22 PM

I've been sort of half-assed working on a novel about a post-tech future (100+ years after apocalypse), where a handful of people retained some technology by virtue of having stored information about it in a manner that survived and a tradition of scavenging and trading and a sort of religion based on maintaining it in a working state. So, this is a fun read and thought experiment, even if an 8-bit computer is probably not my highest priority when thinking of "when the shit hits the fan, as seems more likely today than it did five years ago, what do I want to have in my survival kit?"

One of the questions I keep coming back to for such a scenario, and still haven't come up with a great answer for, is how does someone living in a world without the ability to manufacture a computer still have computers that work 100+ years after the last one was made? Even manufacturing transistors without modern methods is non-trivial. Will a Z80 last 100+ years? I mean, maybe, if it's kept dry and not exposed to anything corrosive. I've got a Commodore 64 that's ~40 years old and still works...so, 100 years seems reachable, but there have to be extenuating circumstances to get to that "post-tech" world (though I guess in a post apocalyptic world, the value of computers would be seen as minimal for a few years while survival is the only concern, so just forgetting could be enough).

by AtlasBarfedon 10/7/2019, 7:39 PM

I think some sort or retro low-performance OS should start with NeXTSTEP.

Ryzen processors have 80MB of L3 cache! IIRC that may have been twice what was needed to run the colorized versions of NeXT.

A lot of "man the old days were all we needed" recollections of Windows and DOS forget how crappy those OSes were...

But NeXT? That was basically a modern OS, with a bit less anti-aliasing. XWindow systems STILL look horrible compared to it.

It fits in L3 cache. 5-10 NEXT hard disks fit in RAM!

It had a web 1.0 browser, TCPIP networking, all the productivity apps. It had DOOM.

Sure Mach the microkernel was buggy and leaked memory, but kernels... there's lots of kernels now.

I think it would be a great project to start with the NextOS and carefully rebuild it up with good security and multitasking.

It would be fun to run NeXTSTEP on bare metal with RAMdisks (spare a processor to do the writes to SSD), and compare with other systems, see if it feels ludicrously fast or not.

by agentultraon 10/7/2019, 6:03 PM

A neat idea!

I think we could also get started now. Not necessarily de-escalating tech, but realizing that the fundamental supply of newer, more powerful chips might not last even with a shift to more plentiful supplies of rare-earth metals due to our need to get off of fossil fuels, fast. I think it might be useful in the more immediate term to be able to lock-in the minimum set of features that make the web and Internet useful then distribute that as widely as possible on low-power, commodity platforms with resilient networks that could survive super-storms knocking out huge swaths of devices in one fell swoop.

Low-power p2p protocols, mesh networking, recycling devices, component-platforms that allow scavenging and make-shift repairs, etc.

Until we can solve the green energy problem it might be nice to know that even if your community gets hit with a storm or flood, it's still possible to restore and maintain network services rapidly in the aftermath. Simply being able to send a message to someone would be a big deal.

by digitalsushion 10/7/2019, 4:54 PM

I was pontificating about my 401k fund and what I should do if I find it no longer exists when I need to start using it.

The older gentleman who was polite enough to listen to me said, "It's ok guy, if that 401k doesn't exist, then neither will you".

And so I think I will not stockpile any computers for later. I do like the engineering spirit of this however.

by fraberton 10/7/2019, 4:36 PM

So, let me see if I understand this correctly: this is supposed to run on z80-based computers after an armageddon comes and all the other "modern" computers are out of business, so people start building them by scavenging parts. Ok.

So, first of all, how are you supposed to download this thing onto your homebrew computer, given that internet will most likely be down?

"But if the collapse magnitude is right, then this project will change the course of our history, which makes it worth trying."

Mmmh, I think the author is a bit on the hyperbolic side here. I'm quite sure that anyone that can design & assemble a z80 computer can quite comfortably code some basic utilities by himself just fine. All the others won't care a bit about your OS. Sorry if I sounded harsh, but I actually was.

by jedbergon 10/7/2019, 5:58 PM

For anyone interested in the idea of keeping old computers running, I highly highly recommend the Living Computer Museum in Seattle [0]. It was started by Paul Allen and has some of the coolest stuff I've ever seen. Their goal is to restore old computers to working condition and have them look/feel/smell/work the same as they did when new. I got to see a ton of old computers that I had as a kid. I even got to write a program in BASIC on the original IBM PC like I did when I was a kid! [1]

[0] https://www.livingcomputers.org

[1] https://twitter.com/TeriRadichel/status/1164369796307116033

by hutzlibuon 10/7/2019, 7:15 PM

Why can it be only useful after a collapse?

If it can be useful, than it can also be useful today to all the (poor) tinker people around the world today. There are lots of alternative eco villages etc. trying to be self sufficient, who do all kinds of recycling and improvised technology. If this adopts with those people, then it might be useful.

But if they cannot use this today, then I don't see how a broken down surviver group could use it.

by RodgerTheGreaton 10/7/2019, 10:22 PM

Forth is the ideal language for bootstrapping a cobbled-together computer from whatever scraps you can find. Forth gives you a shell, an assembler, a disassembler, and a rich, extensible programming language in a few kilobytes. You can peek or poke hardware interactively, or use the REPL as a calculator. Forth-style assemblers also make cross-compilation very practical.

If I was tasked with bootstrapping a post-apocalyptic computer from junk, a hard copy of a well-commented Forth implementation would be a welcome assistance.

by albandreadon 10/7/2019, 8:04 PM

I like the Collapse OS concept. I once typed Fig Forth from a booklet I ordered from America into a Sharp Z80 computer. Society was in the main computer free at the time. It was like the post collapse era. To restart the software industry from scratch; I recommend etching a modern version of that Fig Forth booklet onto stone tablets; perhaps provide a scheme interpreter written in forth as well. They will never need anything else.

by rston 10/7/2019, 5:03 PM

I like the concept, but I'm not sure that the Z-80 is the best implementation substrate -- it's got a lot of oddball properties and special case instruction encodings (due in part to the way things were squeezed in around the base 8080 instruction set).

A PDP-8 can be implemented in fewer transistors (original DEC wiring diagrams are on bitsavers, and github has source for several clones in Verilog), and DEC already shipped a moderately full software suite for it.

by headcanonon 10/7/2019, 5:48 PM

Why does the author think the global supply chain will collapse in the next ten years? What scenario do they envision?

Climate change? Will cost trillions of dollars and billions of lives, but will likely be played out over course of several decades. We will be stressing out about it but its not going to be electronics-ending apocalyptic

Nuclear war? Please. The countries that have the capability are also level-headed enough to use them to play brinksmanship, despite what the news is telling us. These countries want deterrence, not to blow stuff up.

Disease? We're too widely distributed and the most successful viruses are ones that infect but do not kill. Ebola is scary but its too destructive for its own good which makes it easy to contain. The most successful virus is the common cold, and possibly HIV which is certainly a serious problem, but nobody's out there building shelters because of that.

Water/food supply? Fresh water is a function of energy, and if anything is a plus about climate change its that we're gonna have a lot of fresh water raining down on us from the Earth trying to compensate for higher temps.

Second order effects from climate change will likely affect arable land and is worrisome but it may also open up new areas for growth and will likely play out over time, so I'm considering this more of a political problem.

The only things I can think of are either:

1) A sudden disappearance of rare earth metals needed to make electronic, which would be massively inconvenient but we'd figure out a way around that, either by it suddenly becoming more valuable to recycle old electronics or not needing them in the first place. Besides if this happens we'd just get extra motivated to start mining asteroids.

2) Celestial events like asteroid strike or Coronal Mass ejection hitting Earth in the wrong way. The first problem is mitigated with asteroid tracking and we're getting better at that, and the second one would make for an interesting 6 months but pretty sure we'd get back on track pretty quick.

I am all for technology that does not depend on a complex global supply chain - we will need to manufacture simple but sophisticated tech in space and mars in the future but this prepper BS is just fantasy driven by a hyper-apocalyptic news cycle shlepping around clickbait.

What am I not worried about that I should be? What massively apocalyptic event is going to happen in 10 years to turn us back to the middle ages? Seriously.

by mschaefon 10/7/2019, 6:06 PM

In the event of a sufficiently large collapse, people will be so far down on Maslow's hierarchy of needs that an OS will be about the last thing on their minds.

by carapaceon 10/7/2019, 5:29 PM

Give me a good slide rule and a manual of practical mathematics, eh?

As for scavenged parts, you're going to need a warehouse of manuals and datasheets, eh?

Depending on the details of your post-apocalyptic scenario planning, simple automation driven by relays or clockwork logic will be more likely than e.g. scavenged microcontrollers.

I applaud the spirit of the project though: I don't want to live on Gilligan's Island making everything out of coconuts and vines.

by codeulikeon 10/7/2019, 6:27 PM

Reminds me of Global Village Construction Set

https://www.opensourceecology.org/gvcs/

The Global Village Construction Set (GVCS) is a modular, DIY, low-cost, high-performance platform that allows for the easy fabrication of the 50 different Industrial Machines that it takes to build a small, sustainable civilization

by unhammeron 10/7/2019, 5:27 PM

Long Tien Nguyen and Alan Kay's Cuneiform Tablets seem relevant: https://archive.org/details/tr2015004_cuneiform

by aquabeagleon 10/8/2019, 1:57 AM

But if someone has a hint about useful prior art, please let me know.

http://fuzix.org/ - lots of 8-bit targets, z80 included

http://cowlark.com/cpmish/index.html - has a vi-like editor, assembler, and is cp/m compatible so it can run lots of old cp/m software like various compilers

by rocaon 10/8/2019, 5:13 AM

I think a useful adjunct to this sort of project would be a project that describes a really useful general-purpose CPU that can actually run a lot of advanced software but that's still as simple as possible --- and work out a realistic path for bootstrapping its manufacturing. A stripped down 32-bit RISCV for example only needs tens of thousands of gates but could run most modern software.

In conjunction with that, it would be good to have an archive of useful software and data in a durable format where access to that data can also be bootstrapped. I'm not sure what that format would be...

by cmrdporcupineon 10/8/2019, 12:03 AM

If I were to pick an 8-bit processor for a post-apocalyptic future, it'd be the single chip version of the Fairchild F8, not a Z80.

It was designed to be extremely simple and reduced in scope to the minimum of what a processor needed. It went into space. Radiation hardened versions were made.

The original version had its functionality broken up into multiple chips. That could allow for easier repairs.

I don't know how many transistors were in it, but I doubt it's more than the Z80 or 6502.

The RCA 1802 is another one I'd consider. In fact, it will likely outlive the human race entirely, as it's in the Voyager spacecrafts.

by rkeene2on 10/7/2019, 6:22 PM

Relevant to this goal is Stage0 [0], which is attempt to bootstrap a compiler toolchain. It is still a work in progress but the most promising attempt I have seen.

[0] https://github.com/oriansj/stage0

by guidoismon 10/7/2019, 6:46 PM

I love projects like these. One that has me fascinated is the idea of building a computer than can last centuries. Can it be done?

- Will the ICs last that long, can they?

- How will it get electricity if the sockets and voltage standards change?

- How do you make it durable to dropping, water, dust, etc?

- What sort of writable storage can last that long without degrading?

- How do you edit fonts as language changes over time?

- What sort of libraries and documentation do you include?

- Should you include some sort of Rosetta Stone for new users?

by adrianmonkon 10/7/2019, 7:04 PM

Neat idea, but I'm not seeing the window of usefulness for this.

If society collapses and recovers relatively quickly, we likely can coast for 10-20 years on the computers that have already been built. This would be what I'd expect to happen with a point-in-time catastrophe that disrupts everything but then ends and we can all set to work to rebuilding everything. (Like a massive economic collapse, huge meteor strike, nuclear winter, etc.) Even if 95% of computers become inoperable, there's a lot you can do with the remaining 5%. Probably more than what you can do with new stuff you build.

Another scenario is that we recover really slowly. This would be due to some kind of enduring factor that holds back humanity, like a really long-term famine or global political instability that we somehow cannot reset. In that case, what's the hurry to develop software that's ready to go? Maximizing compute capability doesn't seem like it would be the thing that tips the scales and allows society to get rolling again. For that you need to solve whatever the root problem is.

TLDR, if we fall, maybe there is nothing holding us down, and we can bounce back up relatively quickly, in which case we don't need this. Or there is something holding us down, then it seems unlikely that computing is what we need to solve that.

Maybe there are other scenarios that I haven't thought of, though. Or ways that computing would help in the above scenarios.

by alwaysanagendaon 10/7/2019, 4:38 PM

The digital version of prep-er style hoarding for the not-far-off-inevitable apocalypse.

Love the idea to make it run on simple 8-bit CPUs that will be scavenged Fallout-style, but seems to presume that no 'newer' technology would survive and be functional.

Wonderful to see, none the less.

by tiborsaason 10/7/2019, 5:41 PM

Anyone wondering why the Z80 chip, just read the FAQ:

https://collapseos.org/why.html

"The z80 has 9000 transistors. 9000! Compared to the millions we have in any modern CPU, that's nothing!"

by hybridson 10/7/2019, 7:05 PM

Why z80 and not x86 or AArch, which are both more readily accessible today? This whole idea reeks of someone trying to reconcile their love of old computers with their poorly considered death-cult Malthusianism.

by X6S1x6Okd1ston 10/7/2019, 6:53 PM

One way to gain traction (pre-collapse) might be to hold competitions about getting it to run on challenging "salvaged" systems and demonstrating impressive ways to copy it from one system to another.

by bobloblaw45on 10/7/2019, 9:10 PM

A bit of a tangent but in the novel "The Windup Girl" they live in a post oil world which essentially ended up more of a total societal restructuring that pretty much resembled what we'd consider a collapse. Nations fell and in some places companies took over. Cities collapsed as the population shrank and technology shifted to focus more on bio engineering to make up for the loss of all the mechanical/electrical technology that ran our world since powering it all got a lot more expensive after the oil was gone.

In one part a high security government installation was described with "ancient" PC's. They couldn't make new ones so they kept whatever they could running and the narrators mind was blown thinking about how much energy they wasted.

I think one of the top priorities for a project like this should be making it easy to implement considering practically everything you would use now days to get help getting it working won't exist. No websites or forums or anything like that.

by RantyDaveon 10/8/2019, 4:05 AM

I've wondered about this a few times and always started by asking myself what would be left after armageddon.

Android phones. Tens of millions of them. It must be the most ubiquitous computing platform by now...

by cubedroneon 10/7/2019, 5:28 PM

I had been thinking about similar projects myself. I figure that experience with the z80, 68000, and the 6502 would give someone a platform for hacking for at least the next century. There are some dozens of 68000-like chips in a single car. I/O is as simple as LEDs and toggle switches for the bare necessities, such as bootstrapping other I/O options. Worked for the Altair 8800. From there one could implement morse-like momentary switch input. In these (possibly far-fetched) scenarios, going back to things like ticker tape and printers would make a decent amount of sense. Perhaps spools of wire could be used as "tape" for programs and data, as wire recorders existed before plastic tapes were available. I love seeing how home fabrication is developing, with people making simple silicon in their garage, but there is value to a basic tool chain that doesn't require as much sophistication and supply chains. I truly hope we don't live to see such a world, as the suffering would be immense. That said, I have no idea how complex supply chains can be expected to persist without fossil fuels.

by mostlysimilaron 10/7/2019, 4:49 PM

This is a fun idea.

I often think about hoarding a collection of software and media for an end of the world scenario. Then another year goes by and the world is still here.

by GeorgeTirebiteron 10/8/2019, 1:15 AM

Why not a Rad Hard 8086 https://www.renesas.com/in/en/products/space-harsh-environme... or maybe a Rad Hard RCA CPD1802 https://www.renesas.com/in/en/products/space-harsh-environme... ? Those might survive a hydrogen bomb if not too close.

I've thought about this a little, and I think rebooting vacuum tube technology from scratch is possible more easily. Not trivial, but possible. Once you get reliable triodes, you're on your way.

by nitoy69on 10/10/2019, 11:50 AM

They have much too rosy an idea of the future. Nuclear war is actually the only thing that will save them! By that time countries will be their own separate cyber-Fascist states, actually cooperating with each other to keep their citizens, by that time implanted with chips in their brains and connected to the central Net, in line. Oh, by the way, they won't be forced to have the chips implanted, they'll willingly line up for it! So they can get their Dominos Pizza, and Amazon deliveries, and Google Map directions all with a thought! Or so they'll be told. Besides, the asymmetry in computing power between the rulers and the enslaved will be laughable. The government will have even (more) powerful quantum based machines. Cobbled together 48K Z80 machines will be insignificant. If they're even tolerated. Which they won't be...

by insamsuon 10/10/2019, 10:58 AM

Everyone is comparing it with Seed Valut[0]. its better to have a complete eco-system for computers. But its a nice forward step to save the technology in small computer, which gives the basic idea of how to proceed further. in case if you start storing the everything you need lots of space underground which seems not feasible.

In my opinion, there should be system in which all the blueprints for the technology is saved & that machine should be self sufficient to run on its own power, memory and should be capable enough to educate or atleast gives the basic idea of structure, as after the post Collapse, if anyone who is lucky enough get this technology, can improve and build a new system.

I like the idea of Collapse OS, in similar manner create the machine which can run any software/os or supports most basic and used operations.

Same goes with the books as well.

~Nauman

by jolmgon 10/7/2019, 5:12 PM

Why Z80? Is it like the 2nd most common processor type or something? Where would one find a Z80 when scavenging?

by laudenson 10/16/2019, 8:44 AM

Do you know that can be possible (more than what you can think) the situation you told, Mr Virgil Dupras, in 2022? You were thinking about informatic and not about events on the planet. For that time (2022) all the wolrd should have a negative situation where a solar storm arrives on the planet and destroys many electrical/electronics... It is called Carrington event and happens every 150 years... Please ask to the NASA as they know well. US Government started researches about to stop, already in 2004...

by java-manon 10/7/2019, 4:55 PM

Is there a rad-hardened version of z80?

by neurobashingon 10/7/2019, 6:15 PM

The manifesto/winter-is-coming bits and overall design reads to me like TempleOS without the mental illness. Eg, a shell that "compiles", no protected memory, etc.

by LargoLasskhyfvon 10/8/2019, 12:20 AM

Seems strange to go for something like Z80 from the 8-Bit home computer age, when the goal is simple manufacturing. Should go with the PDP-11 line instead which had a long history spanning different technologies, going across large and simple to manufacture to more integrated and miniaturized, faster, with more memory, with a standardized set of peripherals and instruction set architecture.

by dustedon 10/9/2019, 1:01 PM

I'll chose TempleOS for my go-to "paranoid schizophrenic philosophy" daily driver over CollapseOS anyday, and I'm atheist.

by harperleeon 10/7/2019, 10:28 PM

To me a much more interesting avenue to be able to “bootstrap the pc era” would be to achieve DIY knowledge enough to recreate TTL on a garage. Afterwards you can at least create a computer from the 80s, as Ben Eater is doing in his youtube channel.

by Ericson2314on 10/8/2019, 12:28 AM

Eh, our current ecosystem is such a mess I wouldn't miss it. I worked on cross stuff for Nixpkgs in part due to a more optimistic take: Let's bootstrap all the good stuff en masse onto freer hardware.

by oneepicon 10/7/2019, 7:58 PM

This project is really out of left field, especially as someone who doesn't tend to wear tinfoil hats. I wouldn't mind if it was marketed more as some kind of lightweight OS though.

by kotongoon 10/15/2019, 3:31 AM

Maybe a system based on ARM or MIPS @ 1GHz very common in a modem-router. Z80 @ 8Mhz cannot dispay even a 640x480 image. it would be wonderful recycling modems as stand-alone computers

by brian_herman__on 10/7/2019, 8:02 PM

Reminds me of the anime series: https://en.wikipedia.org/wiki/Dr._Stone

by brian_herman__on 10/7/2019, 8:03 PM

Reminds me of: https://en.wikipedia.org/wiki/Dr._Stone

by akozakon 10/7/2019, 7:59 PM

What if computers caused the collapse though? Doesn't this risk reseeding the problem? Maybe it'd be better in the long run if we have to reinvent.

by tov_objorkinon 10/8/2019, 11:35 AM

In the Herbert Dune, civilization collapsed because of smart machines. So after renaissance they are completely banned for the future use.

by voldacaron 10/7/2019, 7:19 PM

Could this run on TI calculators? They use Z80 but I don't see them mentionied. Looks like a cool project!

by wailupe2kon 10/7/2019, 4:59 PM

Lets think about what technologies are most likely to be around after an apocalyptic event... Probably something that everyone has, that there are millions of.. something with a screen and a keyboard... very light and easy to transport.... maybe even something with a battery, and signals processing chips.... na screw it, lets just use a desktop. :P

by bovermyeron 10/7/2019, 4:59 PM

A fascinating thought experiment.

As the author points out, probably useless, but still fascinating.

by gtirlonion 10/7/2019, 11:35 PM

I'm interested in the reasons the author sees for the ~2030 collapse.

by elchiefon 10/7/2019, 11:59 PM

Should come with a bicycle to generate power

by flipgimbleon 10/7/2019, 9:46 PM

Related to the post, I highly recommend reading "The Knowledge: How to Rebuild Our World from Scratch" [1] if you are interested in foundational technology that underpins our civilization. This type of information is often forgotten or taken for granted in our highly dependent late-capitalism society.

[1] https://en.wikipedia.org/wiki/The_Knowledge:_How_to_Rebuild_...

by joombagaon 10/7/2019, 5:15 PM

Does this work for the T80 FPGA core?

by unixheroon 10/8/2019, 6:32 AM

This collapse thing. It's real?

by monsoniteon 10/8/2019, 2:35 PM

IMHO - the Z80 is probably not the optimum starting point. Its close cousin, the 8080 started out as a TTL cpu built into early Datapoint terminals. Intel took the Datapoint logic design and ISA and integrated it into LSI silicon. Anything a Z80 can do, an 8080 can do - albeit less efficiently.

With an 8080 equivalent running a serial character display terminal based on an oscilloscope CRT (1940s RADAR tech) you have an input/output device.

This leaves the main job of processing to another cpu, which could be 16-bit for arithmetic speed and efficiency. The late 70s, early 80s 8-bit machines were only underpowered because they were doing all of the video output using the same cpu. Separate computation from video generation and you get a much faster system.

8-bit cpus rarely needed an OS. They were really only capable of running single applications at a time. All an operating system does is separate hostile C code applications from each other. C is probably not the best starting point to reboot society using 8-bit systems.

Forth, or some derivative might be better. Charles Moore's original 1968 listings for Forth on an IBM 1130 are available from here: https://github.com/ForthHub/discussion/issues/63

Remember also that every mid-1970s microprocessor generally relied on a minicomputer (built from TTL) for its software and logic design. If you go back 10 years (1965) to the PDP-8 minicomputer, these were built from diode-transistor logic or DTL - made from discrete diodes, transistors, resistors and capacitors. This sort of technology could possibly be re-booted more easily for post-apocalypse society.

The original 12 bit PDP-8 contained 10,148 diodes, 1409 transistors, 5615 resistors, and 1674 capacitors. See- https://www.pdp8.net/straight8/functional_restore.shtml

Scale these figures by 1.33 and you have the approximate requirements for a 16-bit architecture.

Whilst over 50 years old, the PDP-8 could run BASIC at speeds not too dissimilar to the early 8-bit micros that appeared in 1976 - about 10 years later.

It used a modular construction - and if you did find yourself with an excess of diodes and transistors, the best approach might be to build a series of logic modules - loosely based on the 7400 series, but using DTL for simplicity. If you were to standardise on a footprint similar to a 40 pin DIP, you could probably recreate about 8 NAND gates in such a device.

Some years ago I looked at the NAND to Tetris cpu, and worked out a bitslice design based entirely on 2-input NANDs. Each bitslice needed 80 NANDs, so a 16-bit machine would need 1280 gates. Memory would be difficult, but something could be implemented using shift registers. You could of course revert back to storing charge on a CRT screen - which formed the basis of the 1K words of memory on the Manchester Baby machine of 1949 (Williams Tube).

Finally - never underestimate audio frequency generation, and storing signals as audio tones - something that cpus are good at. Possibly use a rotating magnetic drum for storage.

In the summer of 1984 - a friend and I, who both owned Sinclair ZX81s set up a 1-way data link between one machine and the other across our college dorms - using a FM transmitter bug and an FM radio receiver - over a distance of 300 feet.

by hyperion2010on 10/7/2019, 7:50 PM

Like other in this thread I have been thinking about this problem on and off for a while. I think that many of the comments stating that the Z80 is probably not the best choice are right (I know nothing about the Z80) and would like to extend some of their thinking.

The primary design requirement for a stand alone computer system in a post-* world is simplicity, maintainability, and debugability. It must be possible for a single user to do _everything_ in situ. There are very few existing systems that meet all three of these criteria across the whole hardward-firmware-software stack, and modern technology companies are actively moving away from this.

At all levels this requires extensive and open documentation and implementations, and ideally a real standard.

The hardware level would probably need a complete rethink, and if you want good peripheral support (e.g. to be able to try to access whatever data device you come across) then you need a solution that doesn't require a subsystem kernel maintainer for everything, or you just give up on that. A potential 4th requirement here could be a large supply of parts since in most scenarios it is extremely unlikely that anyone will be able to get a fab working again for hundreds or thousands of years. Maybe radiation hardened large feature size ICs or something like that. The alternative would be a zillion RPis (with some alternate data storage interface) so that hopefully some of them survive and continue to work after 100s of years, but this seems like a much riskier bet than trying to actually engineer something to survive for a very long time. Above the IC level the ability for someone to replace parts without special tooling beyond maybe a soldering iron also seems like it is probably also important.

At the software level there are two existing systems that might serve, one of the Smalltalks, or one of the lisps (my bias says common lisp, despite the warts). Assembly and C are just not a big enough lever for a single individual, and other things like Java seem to have been intentionally engineered to deprive individual users of power. The objective here is not to be fast, the objective is to retain access to computation at all so that the knowledge of how to work with such systems is not lost. Also at the software level the requirements pretty much preclude things like browsers that are so monstrously complex that there no hope than an individual could ever hope to maintain a legacy artifact (or probably even compile one of the monsters) for interpreting modern web documents.

I do not think that we can expect the current incentive structure around software and hardware to accidentally create something that can meet these requirements. If anything it is going in the other direction as large corporations can employ technology that can _only_ be maintained by large engineering teams. We are putting little computers in everything, but they are useless to anyone in a world without a network.

by AltmousGadflyon 10/8/2019, 11:09 AM

Are Z80 systems and alike very common? Seems like a niche hobby.

I'm thinking old phones, tablets, and portable computers will be more common. I keep several bootable USB drives which have lots of ebooks, audio books, videos, software, and games along with several old laptops/netbooks which were free. I also keep some of those files on microSD cards to make them accessible with tablets.

IMO collapse will be very boring so lots of books, audio files, video games, and music would be nice to have if it can be run off small off grid solar setups.

by akhilcacharyaon 10/7/2019, 5:08 PM

I really like this idea!

Makes me wonder what possibilities become, er, possible if we up the computing power a few orders of magnitude to a Pi Zero W or Pi 4.

From what I understand it’s fairly easy to use a Pi as an LTE Router for longer ranges and WiFi for shorter ranges. I wonder if the right microsd cards and were stockpiled one would be able to reconnect several communities in a mesh.

by jaaklon 10/8/2019, 1:45 PM

Ok, but what user programs will we really need then for it? Other than re-building technology. Isn't "too much technology" basically the single biggest root issue of current state of humankind, and planet in general?