370 points · by tosh · 6y ago · 236 comments
Why am I imagining this? I feel like computing systems as they've evolved, they've built stuff on layers upon layers and just like biological evolution, it is impossible (difficult) to undo because the marginal cost is too high to unwind and break backwards compatibility. We get stuck in local maxima at each layer and the critical energy required to escape out of it would be too large.
I am not saying backwards compatibility is bad, far from that, I am saying that if we force ourselves to cut the cord and completely build computing systems from scratch - I feel like we would have a hindsight to design it better, faster, and cheaper.
I think it is extremely important from a teaching and engineering perspective to view the modern computing environment not as some elegant design (which it most certainly is not) but instead as an concretion of "best option at the time" solutions to real problems.
It is a bit intoxicating to think about how things could be if computing really were approached as a single, monolothic, elegant design. But essentially every attempt to do so has failed. Much like how we think of computing as layers of abstraction, the computing industry is functionally constructed of layers of abstraction, and so it is difficult to really change anything at lower levels.
I've programmed for two decades. I write non-trivial software modules in a specific domain. It's not as if I was averse to analyzing things. And I try. When I can.
Yet. Design is damn hard.
One of the problems is that implementation is often an empirical process of requirements and constraints recovery.
I.e. I cannot create an elegant design before I've implemented anything, because some of the requirements are discovered only when the domain is explored using the code which I write.
One of the problems is that I'm not smart enough to design the system beforehand. And I don't have enough working memory to do so. And I presume many programmers work in similar environments.
I think in the 70's or 80's there was a vivid dream that one day programmers would have advanced CASE tools to help them design better programs. I wonder what happened to that dream. Maybe IDE:s and software systems became so easy to use that everyone prefers to prototype in code and perform empirical constraint discovery just like me...
Essentially in FP you design your entire program as a single immutable function expression that's made out of a pyramid of layers that's constructed of smaller closed lego like functions composed together. People in the FP world call it the point free style.
The type signatures guide the architecture of your program and can easily be replaced decomposed or recomposed into higher or lower forms of abstraction without compromising your overall program. Design comes naturally like building something out of legos... Easily configurable, and minimal planning or need to hold the entire program in your head. If the design is wrong like legos your program is easily reconfigurable.
The main factor that allows lego like design is immutability. A lego that mutates state outside of its own scope is a lego piece that cannot be modular. FP by making everything immutable makes your program legos all the way down meaning your smallest primitive can likely be broken down further to reuse in other places and recomposed to form other higher order abstractions that are easier to reason about. In both OOP and procedural programming your designs can never have this level of flexibility due in to modules being tied together by shared mutable state.
Of course there are costs to immutability: both low level costs such as memory management and high level costs such as graph algorithms that require mutability to be effective. There are ways to deal with these issues but they are not trivial. In the end all FP programs must "cheat" in some way and have a small portion of their program actually mutate something.
Overall though, in all my years of programming I have found FP to be the best overall answer to the design problems that most programmers run into. It's by no means a perfect answer but it is the best I've seen and unfortunately not applicable to all domains.
On the other hand, the current internet feels like a good approximation of the best trade offs for performance vs. usability in most areas, and I doubt a full rewrite would fundamentally change much about how we use the internet.
An Internet where “keep engagement high so we can serve shitloads of ads” was not the default path to financial success would be an Internet without social media that happily pushes people into ever-more controversial positions, because that’s what keeps them around longer and lets you serve more ads. Decide for yourself what social changes that would create.
I imagine that it would in fact have to support people using the internet exactly the way they do now, if it hoped to get traction.
It is far from obvious, TCP has it's problems over fast and relatively reliable networks. For a random example see [1]
[1] https://blog.ipspace.net/2019/06/do-packet-drops-matter-for-...
Sounds like a ML model that can do correlation but can't handle causal and counterfactual reasoning.
Isn't the iPhone/iPad supposed to be exactly that?
A single device, a single ecosystem, a single curator.. and outside of a vocal minority, millions of people love it for exactly those reasons.
It's just a skin on top of the same old stuff everyone else uses, but with more control so you can't reach underneath to see much of the foundation.
That said, it's a fairly deep skin by this point, and getting deeper, but compared to the whole depth of the stack we're talking about, it's still just the skin.
I’m a software engineer, I’m perfectly well aware iOS and MacOS run on top of a Unix kernel. But unless I go looking for it, they will never shove this in my face and make it my problem.
Meanwhile, I’m still dealing with Linux-loving colleagues who cannot get their sound or webcam to work reliably and consider this an acceptable state of affairs.
In both cases, for different reasons, and in different contexts, the projects set out to reinvent computing from the ground up. The Newton failed in ways that make it a punchline, but the punchline obscures useful things about how it succeeded and how it failed.
Clean Slate seems to have morphed into another research program called CHERI (http://www.csl.sri.com/users/neumann/20191213-ctsrd-ftr-fina...), but it hasn't taken the world by storm, either.
Both projects embodied some fairly radical rethinking of how computing should work. Both were fun and inspiring to work on--among the best things I've done in my career. Neither has conquered the world, though some of Newton's novel features have become commonplace, at least in some form.
On the one hand, the fate of these projects is most likely the fate of any similar attempt to reinvent computing. The scale of the existing computing ecosystem is planetary. No small group of visionaries can exert the force needed to move the planet, and no group big enough to move the planet can be cohesive enough to embody a coherent vision.
On the other hand, I think it's worthwhile to invest in pipe dreams like these. They sometimes invent compelling new things that go on to make positive contributions.
They're also instructive. They teach you what is possible when you ignore inconvenient realities. Smart people given a green field and an inspiring vision can invent some truly wonderful things.
They also teach you what is not possible. You aren't going to simply wipe away the existing infrastructure and replace it wholesale. Its gravitational pull is inexorable. At some stage you have to come to terms with what has gone before, unless you're content for your effort to become a footnote.
Both things are useful things to learn: yes, you can do something novel and inspiring, and that's well worth doing for its own sake. No, you can't, simply through the charisma of a beautiful idea, undo all that has gone before.
Nor, if you could, would that necessarily be a good thing. Finding workable compromises with your surroundings is, after all, a constructive endeavor.
So between spending all that (partially duplicated) effort to rethink everything and the fact that the end result would have little buy in due to the high threshold of effort involved with adopting and using it, this is rarely a tempting proposition for many. Either to develop, or to use.
Often it comes from a sequence of these evolution->revolution chains. When that happens the initial execution of the revolutionary idea is usually buggy and incomplete, but works well enough to demonstrate the idea. Other people then evolve that idea further.
Was that because of the Newton project, or it happened independently?
To build a system, you would have to start at the bottom layers and then build up. To think you could design any of those layers (protocols, languages, tools, etc.) without making mistakes is naive and I think you would end up with a system that is layered just like current systems, but each layer being much less thought out. Yes, that is even with complete hindsight. I have watched many experienced teams fail on gen 2 of systems.
Don't get me wrong, there are many things I dislike in computers, starting with autotools :) But things like autotools are a lot easier to replace in Hacker News comments than in real life.
Do you really think that it would be less thought out if we have lots of resources and smart people? I feel optimistic that we can bake in the lessons from the past and improve on existing layers/stack/protocols.
If we had lots and lots of really smart people working on a new version of everything, though, my guess is that we would end up with pretty much the same stuff we have today. As another commenter said, a lot of software projects doing next gen rewrites from scratch fail. The reason is simple: they focus on solving painpoints and forget about the areas that were neatly addressed by the previous architecture.
The best approach IMO is to address the painpoints by refactoring them properly into the architecture. That is often very complex on its own but still has the best chance of succeeding.
In terms of display technologies, we have DisplayPDF from Apple and Wayland on the Linux side.
You take huge risks by just throwing out everything at once. You want a modular system anyway, so run your revolution one module at a time. People don't notice your little revolutions, but that's kind of the point.
Strangely enough, the most recent motherboard I bought (X570-based) has a PS/2 port for the first time in years. No idea why they seem to be making a comeback, but it is kind of nice to be able to directly plug my old Model M in again.
I first started running BeOS on my PowerPC Mac clone, back when those were a thing. There was a 1.44MB floppy disk circulating which contained pretty much the full OS, along with a web browser and various utilitied and demo applications.
Inside 1.44MB. It was phenomenal.
Compared to MacOS on the same machine, raw computational benchmarks were about 40% faster, and perceptually, the gains were even better than that, with essentially zero UI lag.
So, starting from scratch can have a lot of benefits, and you don't even need to throw out that much legacy.
My ethernet driver for BeOS was terrible. If I left BeOS running overnight, most of the time I'd awake to a little popup saying something to the effect of "The ethernet driver for your 3c509 has crashed. Click OK to restart the driver." Thank goodness for userspace drivers.
I'm a bit surprised that the iso9660 and UDF drivers are still in kernelspace on Linux, since I can't think of a modern use case where performance of CD/DVD is relevant. Around 2004, I had a corrupted CD-R backup that would kernel panic OSX, Linux, and Win2k3 x64. Unfortunately, there was sensitive financial data, so I wasn't about to submit the image as a repro.
Isn't that port required if users want keyboards with true N-key rollover?
"Throw out the old" happens in local pieces of the stack all the time. AMD removed a lot of cruft from the Intel ISA when they designed AMD64, Wayland removes a lot of complexity from the display protocol stack, and every I/O port before USB was designed to be incompatible with existing ports.
I feel that what you are describing will look like the SBC situation in the ARM world: the processor instruction set may be identical, but every vendor uses a slightly different incompatible way of connecting and designing the surrounding chipset, which results in a myriad of almost-identical drivers and subtle bugs that are impossible to fix, because the cost/benefit ratio would be prohibitively high.
Standardization isn't just for backwards compatibility, nor does it mandate it. But it does allow for reuse of existing components in an interoperable way. Imagine if every application came as a unikernel microservice instead of an OS framework library: there would be no UI consistency, copy-pasting between different applications would be hard, and you would have no OS-level update facility -- every application would have its own set of vulnerabilities.
Without AMD64 Itanium would have prevailed.
Maybe I'm just pessimistic but I suspect the opposite would occur. It would be buggier, slower and more expensive once you started trying to operate at any kind of scale. The reason being that hidden within all the accumulated layers of cruft are a million fixes for specific security, reliability and performance issues discovered through real world usage.
That's a pity. Wouldn't it be nice if we somehow could separate the cruft from the craft?
What if some computational deity sifted through our collective codebase and distilled the essence, the minimal, purest kernel? Such minimangel's task would be daunting and probably useless, since the moment we'd throw some new use cases and requirements, NIH and patents, POCs and MVPs and we're back to the simmering mess in no time.
So lets call it detail instead. You cannot separate detail from the craft.
Starting from scratch is actually feasible on the software side though. The OSDev wiki has many examples. The most recent one I know is Serenity. Still a monumental task. It's probably a lot of fun if you have the time and motivation to stick with it. You can actually throw POSIX in the trash and create your own abstractions. Hopefully people aren't reinventing signals...
I think Linux is the best option for those who want to create something from scratch. The Linux kernel is unique in that it is completely separate from user space. There is a stable, documented kernel interface in the form of system calls:
https://man7.org/linux/man-pages/man2/syscall.2.html
https://man7.org/linux/man-pages/man2/syscalls.2.html
https://www.kernel.org/doc/Documentation/ABI/stable/syscalls
https://www.kernel.org/doc/Documentation/ABI/stable/vdso
So people can actually do things like trash all of GNU and come up with something entirely new. It's possible to rewrite the entire Linux user space in Rust or Lisp or whatever. It doesn't have to be POSIX compliant.
The kernel even has this amazing header which lets people build freestanding Linux programs:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/lin...
> This file is designed to be used as a libc alternative for minimal programs with very limited requirements. It consists of a small number of syscall and type definitions, and the minimal startup code needed to call main(). All syscalls are declared as static functions so that they can be optimized away by the compiler when not used.
Yeah, it's an awesome header! It comes straight from the kernel developers too. They use it for their own tools, apparently. It might be missing some of the newer or niche system calls but it has generic mechanisms which can be used to access everything.
I found it during my research for my own Linux system calls library project:
https://github.com/matheusmoreira/liblinux
There's some additional details implemented by my project such as process start up functions which handle argument, environment and auxiliary vectors. I don't see the need to maintain it anymore though since nolibc.h is so amazing and practical.
I even asked Greg Kroah-Hartman about nolibc.h on Reddit:
https://old.reddit.com/r/linux/comments/fx5e4v/im_greg_kroah...
But really, the kernel is not where the innovation potential is. The way it works is really more or less decided by the way the hardware works. That's why the only real "novel" idea in the kernel space is microkernels, which date back decades.
Worth noting that the microkernel revolution kind of happened on Android, which is a re-think-computing-from-scratch kind of project. The drivers are all moved to userspace in Android, using their own IPC mechanism. The Linux kernel is left with less to do.
Is it even possible for one person to design a basic operating system?
https://wiki.osdev.org/Expanded_Main_Page
It's in some way easier today than in the past. VMs really make testing much easier. On the other hand, the hardware has become more complex compared to some years ago when you could assume that all you needed was a little bit of assembly code to initialize the 32-bit mode of the x86 CPU and talk to the IDE interface.
https://sites.google.com/site/dicknewsite/home/computing/byt...
Very cool and groundbreaking technology!
NOTE: Discussed previously on HN:
https://news.ycombinator.com/item?id=9802379
https://news.ycombinator.com/item?id=9806607
Anyway, smartphones / tablets have made us rethink hardware, its developments have led to more compact laptops as well, and the push to more compact laptops have caused their manufacturers (mostly thinking of Apple throughout this comment btw) to eschew legacy systems - disk drives, USB ports, even 3.5mm jacks all went out the window.
But that is exactly what you're proposing here; what did you think when Apple got rid of a lot of that legacy? Personally I have mixed feelings; I do like USB-C. I didn't like Lightning because it was nonstandard, but it was an improvement over their broad connectors and USB-C wasn't a thing yet. I can see why they're pushing to wireless connections for audio and input.
Anyway final point, despite the cut in legacy connectors and the like, Apple's hardware hasn't gotten cheaper.
Arguably, using an existing OS as a base was kind of the only way to get these products done in a reasonable timeframe. They run complex and powerful software and writing that stack alone is hugely demanding. Rewriting the OS would easily have lost the market to the competition because of cost and time overruns.
Take JPEG for example, Six different companies helped develop it, there are six different patented ideas in the arithmetic encoding system and a slew of papers were influential in it's development over decades. You're really going to come up with better ways to do all of that over again from scratch?
OK maybe you come up with a better file system or kernel architecture, but why does that mean you need a new graphics compression format? You're also piling up all the risks together. Coupling together a huge swath of unrelated concerns arbitrarily means if some of them sink they'll bring all the other stuff down with them.
I think in general doing a grass roots, ground up, all encompassing design is inferior to a more battle tested natural evolution based strategy where you build on top of each other.
Might be wrong, but that's my gut feel. I'm sure there some good examples of the two strategies and how they played out?
As far as I know, currently there are no "good" real time operating systems available. There are some ancient, crufty ones... and some modern soft-real-time operating systems, but that's it. This would be a fun exercise for someone wanting to write something uniquely useful in Rust, for example.
It might make sense to write a pure web browser engine designed for embedded contexts. Think infotainment systems where the web content being served is fully controlled. This would be an opportunity to write something like a HTML5-only engine with UTF8 only, TLS 1.3 only, HTTP 3 only, etc...
Relational database engines need a massive rethink. All of the current popular ones are 20+ years old, and based on 50+ year old architectures. Why do schema operations take time? Why does index rebuilds lock tables? Why are there column size limits? Why is SQL injection still a thing? Why, why, why... because legacy, that's why. Because hard-coding, that's why. Because 1980s C-style programming with fixed-size buffers, that's why. All of this could be just washed away with a rewrite using Rust, Modern C++, and some fresh ideas.
It most certainly is not. It's a macOS and Linux userspace application, no more no less[1].
How on earth do you consider that totally separate from any legacy system?
Potentially it is better to purchase an Urbit ID directly, rather than indirectly purchasing Apple ID through buying their hardware, or a Google/Facebook ID by donating your data.
Nevertheless, despite being presented as a free and open system, it seems like Urbit would centralise power with those selling Urbit IDs to an extent that Google, Apple, Facebook, etc have not yet achieved.
Like imagine cars / roads were invented today do you thing they would have all have this same ubiquitous elongated design, with the grill in front and two headlights in the side, or maybe cars would be completely round maybe they would be made generally with standup room, one big head light across the bottom etc.
While some of these design decisions are practical, I believe a lot would be different if we would reimagine it from the bottom up. The reason - for instance - cars cannot be wider is because the wouldn't fit on today's roads roads. Existing safety regulations also prevent certain design possibilities.
Have you also though about how we see 3 holes on a face (2 eyes and 1 mouth, ignoring the downward facing holes of the nostrils) as normal. Just add one more and it’s horror. We take these things granted and then slight changes to it is completely terrifying.
I also wonder - if we rewind evolutionary time and restart with slightly different initial conditions, not sure what species including humans would even exist in the same form. It would likely be like that game Spore.
When we started moving to cell phones, you could still call a landline phone from one. When we created web browsers, they could hit gopher or ftp URLs. When Stroustrup created C++, he let C code freely interoperate, which let people migrate at their own pace, or even flip back and forth. When Windows was created, it let DOS programs run. When IBM introduces a new mainframe, they always have a way to run programs from the previous generation (back to the 1960s, at a minimum). In all of these cases, interoperability with the old system was essential for the growth of users for the new system.
How many computer users are there now? Three billion? Break backward compatibility and interoperability, and you lock half the planet out - the half that uses computers. And the other half... if they decide to use a computer, are they going to use what everyone else uses, or are they going to decide that your completely incompatible new thing is the right answer? Even if (in some platonic sense) your new thing is the right answer, how are they going to know that?
So, like I said... zero users. 100% user free.
I think that's already possible today - the Legion programming system claims to do exactly that (among other things). I have absolutely no experience with it though so I might be completely wrong.
(https://legion.stanford.edu/)
> By making the Legion programming system aware of the structure of program data, it can automate many of the tedious tasks programmers currently face, including correctly extracting task- and data-level parallelism and moving data around complex memory hierarchies.
Another partial approach would be this: imagine you had a completely new console which had a single programming language, all tools needed to develop integrated, dumb simple, and you could draw on the screen easily, manipulate the audio buffers easily, and had trivial access to button inputs. Even without networking, I bet we would see amazing things happen. A closed, small, understandable and yet practical and performant system? The dream of every programmer. I know some people already think we have libraries that do this, but they can't provide such a platform.
It's been a while since I seriously looked into IPFS, but this is what I remember about it.
Check out Urbit.
But stuff will evolve, people will want to innovate. So they make new hardware, and they make new libraries because lets face it, chances you get everything right the first time is slim to none.
And after a few years you're back to having backwards compatibility issues, and some years after that you're starting to feel the mismatch between hardware and software again etc.
As for cheaper, consider this. You can get an ATX motherboard with lots of functionality most people won't use, for like $50 or so. In low quantities just the PCB alone, just empty tracks with no components would be much more than that.
Where it matters, we use hardware acceleration and very thin layers over that acceleration. For example games.
JPEG have good compression and few hundreds of kilobytes to implement its support (and those kilobytes are battle-tested and probably have little to no exploitable bugs). I just don't understand why would you want to drop it. Modern web adopts new image formats, it's not like you must use JPEG today.
The iPad is probably the biggest such attempt to do most of those things. :)
But ultimately a computing system should do what its users want, and the market has favored backwards-compatibility for a long time. If anything, it's a little alarming how old software and hardware can quickly become useless or obsolete. For example, any web browser that doesn't support any encryption better than, say, SSLv3, is cut off from a significant fraction of the Internet.
I respectfully disagree. Alien systems can be thwarted by inverting some bits. [0] I would not have believed this had I not seen it for myself. [1] After all, seeing is believing. True, the alien code seems very insecure. Perhaps aliens write their code based on the historical documents. [2]
[0] https://www.reddit.com/r/movies/comments/2oi7cz/i_am_dean_de...
Why must bytes have 8 bits, why do we count time as seconds since 1970, why must text be encoded as unicode code points, etc...
There is now such strong external pressure on projects to conform to these table stakes that I think the only thing that will overturn these decisions at this point is the singularity.
"From scratch" is a loose definition. And there will necessary be reinventing the wheel.
Making the new wheel incompatible on purpose with the old ones is wasteful. For one thing, you are correct. You don't build a car on a carriage framework. But the principles are the same and there are some technologies that will be reused: bushings for example. What should we do about them?
Why aren't there architects writing down the requirements of operating systems and defining their architecture, and, separated, developers working from these designs?
I also wonder why we see so few new ideas in the OS space. From a user's viewpoint, it seems little has changed since the first Unixes were born.
Also who was saying that architecture is the wrong metaphor for software architects and the good metaphor is city planners? They put some frames and infrastructures but mostly enable the creation.
Good idea, and then run legacy apps under an emulator. Each instance created and destroyed after use. That way there will be virtually no chance of malware propagating through the system.
ML solution - many restarts, add momentum and in the end maybe all local maxima are equally good after all.
I think the networking layer should be built off of http://PJON-technologies.com - it's perfect for standardizing the next layer of networking and without depending on any ISP or centralized authority that also has support for multiple "packet/connection" protocols (LoraWAN, Light, Ethernet, and more).
I am going through a history lesson right now on studying older OS's and why they didn't take off while also getting my feet wet with Forth and lower-level hardware experiments. I still have no idea how video truly works, that's something that's been bugging me from a first principles perspective and I want to understand that more intuitively. Something I keep asking myself is: "How do I poke at the video card and make it display stuff without having to use a OS level API that wraps openGL or similar?" - I know some will be shocked at that question and some may go "woah, actually I don't know that" - we're in an interesting generational leap with where knowledge has been in the zeitgeist of computation and networks.
The OG's are in a particular precious bucket where they've done their part and not that active or have been yelling the current stack is wrong but it's hard to find their voices. Then you have the hackers and hardware folk who learned a lot pre-internet that may or may not be active on the typical net's hanging out only in Plan 9 esoteric rooms saying how good the internet was before marketing took over, and then the dot com boom generation which either knows the earlier internet or thinks the internet is only social media and search engines.
I want to make the internet feel adventurous and fun again like the 90's. I want it to be focused on individuals and not organizations. It was exciting because you connected to people, today you don't do that anymore - you interface with some centralized entity that exposes you to products. I have more to say here that is a lot more nuanced but you get my gist.
Urbit is doing something similar to what you're saying, however I personally don't like their networking model and a few other decisions that just feel contrived to me. Plus I want to get my feet wet and understand the layers myself from a first principles perspective so I can add to it as I am imagining it.
Sounds like a new dawn of innovation is bubbling.
My previous comment on a similar tone/opportunity from yesterday: https://news.ycombinator.com/item?id=24467534
But I think this would be impossible to cut the cord completely, because a computer is basically a communication system (internally and networked) and by Conway's law groups zero in on comms systems that reflect their own dynamics, so as a civilizations we've built devices and networks that have zeroed in on our own internal dynamics. Therefore as a member of this civilization, you could not create something different. You'd need to go hang with some folks completely different until you absorbed that, then make it to reflect their dynamics. Uncontacted Amazon tribes? Dolphins? Elephants? Plants?
http://web.archive.org/web/20081120092935/http://www.memetec...
Comment is funny in assuming ZFS is objectively better than NTFS or APFS or FAT16.
And, of course, in the same vein: https://www.nand2tetris.org/
Some surviving info regarding System 3:
https://www.drdobbs.com/architecture-and-design/oberon-syste...
https://www.semanticscholar.org/paper/Oberon-with-Gadgets-A-...
https://sourceforge.net/p/nativeoberon/wiki/Home/
https://www.semanticscholar.org/paper/Project-Oberon-the-des...
Some surviving info regarding Bluebottle (AOS):
https://os-projects.eu/oberon-system
https://www.linux.org.ru/gallery/screenshots/4163239
Unfortunately the www.ocp.inf.ethz.ch seems to have been moved out of Internet. It had quite some information about Bluebottle, although there are some Github mirrors like this one:
https://github.com/cubranic/oberon-a2
The doc directory has lots of nice info.
The latest version of Active Oberon manual as of 2019:
Oberon => Oberon-2 => Component Pascal
=> Active Oberon
=> Oberon.NET => Zonnon
=> Oberon-07 (multiple iterations until 2016)
From features think Go (Oberon), D/C# (Active Oberon).Active Oberon provides features for manual memory management (untraced references), async/await (active objects hence the name), lightweight generics, interfaces, exceptions.
About half of the innovations were picked up by other manufacturers within a couple years.
This was done with a programming language. Ada was designed through an iterative sequence of trials for a clean sheet implementation of a development language. It created, or popularized, ideas such as explicit module exports, tying directory and file names to classes, separate "to end of line" comments, and more.
About half of the innovations were picked up by other language vendors within a couple years.
Oberon gets mentioned on HackerNews every couple years. It is hard to say its really a clean sheet.
It would be good if there was a VirtualBox distribution. I looked but I saw nothing that I could use.
Just download the Oberon IDE (there are precompiled versions for Windows, Mac and Linux) and run the OberonSystem project included with the IDE.
Sorry if I don't really understand what this is, but it seems like there's a production-ready hardware and software description (written in 2013?) that is applicable today in 2020?
Edit: Is this meant for academic study? And if so, is a basic newbie description available?
What's more, this is all done with a compiled language using GC at runtime, and with a low memory overhead ie. Oberon can be used as a systems language.
There are several projects moving on from this software-wise, A2:
https://www.research-collection.ethz.ch/bitstream/handle/20....
Also, following on from A2, Composita introduces a component architecture to allow managed memory without GC, and contextless switches (IMHO better than Rust)
http://concurrency.ch/Content/publications/Blaeser_Component...
What could be done instead would be a parallel virtual platform inside the current technology that abstracts the current technology in such a degree that many things become trivially doable.
From a circuit board etched by someone else and PCB components purchased online and soldered together by a hobbyist, certainly, without too much difficulty (the package used by the programmable gate array requires a bit of specialty equipment, but is within reach).
One other point about Oberon is that I _believe_ that because the design predates open-source FPGA toolchains, a closed toolchain is still required to convert the Verilog (high-level design describing the processor logic) into a netlist (FPGA configuration), and it hasn't been taped out into a chip, either. So, the book covers the design of a computer end-to-middle - that is, without covering how the block / HDL level design becomes logic gates, and without covering how said gates are then manufactured. This is probably fine - the scope has to end somewhere. The linked NAND-to-Tetris articles cover the other end - from logic gates up to typical computing constructs (adder, registers, shifters, etc.).
If you want to go further from scratch... Designing a motherboard wouldn't be too hard, though it probably wouldn't be very good or reliable. Same with a power supply. Designing my own CPU is something I could probably do with several months' worth of effort, as a CompE. But actually making a physical chip of it is another matter entirely. It would be expensive and you'd have to pay a manufacturer to do it. Physically making your own CPU at home is pretty much out of the question, but you could use an FPGA. I have no idea how to go about making RAM or hard drives "from scratch". Same for monitors.
With enough study and motivation everything should be pretty accessible.
I've used it a bit (almost 20 years ago however), certainly still requires committed dedication, then again, just like anything else.
For example, take a look at the display module [0] -- this 190-line program contains over 20 instances of constant "128", in lines like those:
sa := base + u0*4 + sy*128; da := base + v0*4 + dy*128;
What does this mean? See, there is only one display supported by this OS -- an 1024 x 768 monochrome one. Since this is monochrome, you only need one bit per pixel, and you can put 8 of them in the byte. If the pixels are sent out serially and lines follow each other in the buffer, then start of each line is (1024 / 8) = 128 bytes apart.But instead of writing something like "const LineStride = Width / 8", the code just hardcodes the value all over the place.
[0] https://people.inf.ethz.ch/wirth/ProjectOberon/Sources/Displ...
Never mind that you’re introducing the possibility for bugs: the compiler would catch if you type the wrong symbol name, but not if you type 129 accidentally.
And anyone reading or maintaining that code now has several additional needless WTFs they’ll encounter in the course of making sense of it.
But more importantly, by giving it a name the code is more self-documenting. New and old programmers don't have to figure out why 128, or if 128 is right or not in this bit of code.
If you want a different display, they'd prefer you to rewrite it from scratch?
He's not primarily a programmer, but a computer engineer. It wasn't his first computer system, and may not even be his last. The mouse stays the same size, but the computers themselves have shrunk dramatically over the years. Maybe when he turns 90 he'll ship-in-a-bottle build a computer inside his favourite mouse?
Ha wouldn't be shocked. Apparently some mice already have ARM processors inside, why not take it a bit further.
Or they may never have thought about running on a different device. Why should I do the work to do it?
This was not done with the idea of portability, maintainability, or even good engineering practice.
It can't know that with a named constant.
(Same would be true for any value that's a power of 2. Usually a real speed up.)
What were benefits or breakthroughs of the OS when it was created? I wish the 2013 book was available in a physical copy, I'm not a huge fan of PDFs.
http://toastytech.com/guis/cedar.html
"Eric Bier Demonstrates Cedar"
https://www.youtube.com/watch?v=z_dt7NG38V4
About 1h video with some developers from Mesa/Cedar done by Computer History Museum.
As for what breakthrough, this are full stack graphical workstations written in GC enabled systems programming language.
To bring it to modern context, imagine something like Windows being fully written in .NET Native, but in the 80's.
> "The primary goal, to personally obtain first-hand experience, and to reach full understanding of every detail, inherently determined our manpower: two part-time programmers. We tentatively set our time-limit for completion to three years. As it later turned out, this had been a good estimate; programming was begun in early 1986, and a first version of the system was released in the fall of 1988."
I think of Wirth and Gutknecht as demonstrating that one need not be as far out as Terry A. Davis to do small-team end-to-end work. (compare Carver Mead's tall thin person)