by nazgulsenpai · 4y ago · 0 comments
An OS release capable of running on the latest hardware in 2022 is still making optimizations for a niche system from the late 80s/early 90s. There's something very beautiful about that.
The reason it came up was a tiny quote from the NetBSD announcement of Luna 68k support which mentions its "rare cousin" the 88k LUNA.
Now that's niche!
So as long as there are developers who want to do the work to support the 88k LUNA (whatever it is) then it will happen.
More specifically:
Fun fact - the 88k was designed by Mitch Alsup, who also designed SPARC CPUs for Ross, x86s for AMD and others. He is retired, but still active in the comp.arch Usenet newsgroup.
Intel, as they're known for doing, half-assed many things. Even though the 32 bit mode on the i80386 wouldn't be compatible with i8086 real mode and they could've made vast improvements, they decided to make just a mediocre 32 bit CPU, since they figured most people would just be running it as a super fast i8086.
The m68020 in 1984, by comparison, was much more forward thinking. It had atomic operations, could exist in a multi-processor environment much more easily than an i80386, and it can still run a modern OS (NetBSD) in 2022.
Well, I think the argument being made (implicitly) was:
If Intel had made a decent and capable implementation of 386 with forward looking CPU instructions etc. 386 could have been alive and kicking today in many more operating systems and platforms.
That might be why it's still supported.
(edit: it seems they didn't: OpenBSD/i386 hasn't actually supported running on [386sx/386dx] for some time. )
i386 ISA is the bare minimum for functioning protected mode to be better than real-mode DOS. i286 protected mode is absolute trash.
i386 is so bad at dealing with SMP primitives, it was standard practice to have a non-SMP kernel. Then, you get into the business of maintaining 2 kernel flavors or a major kernel feature flag.
For those interested, there is a quirky processor mode trick called "unreal mode" that allows flat addressing without switching to protected mode (no protections, just like real-mode DOS).
You may need locks on a non-SMP system (since you can still have concurrency), but without parallelism you don't need atomics... right?
If you were writing code specifically for the 386, I suppose you could implement all semaphores as critical sections to guard against external interrupts; I see no reason why that wouldn't work. But realistically, that code would be more of a museum piece than something you'd want to maintain in a 2022 operating system.
Who is funding OpenBSD these days?
As for funding essentials like electricity, network, hackathons, and unpleasant development work, that would be the OpenBSD foundation (http://www.openbsdfoundation.org/activities.html)
$87.5k in 2022?
That doesn't even pay for a single person after taking the rest of the expenses into account.
Do they all have other jobs and using their spare time to devote to such a serious project?
Yes, except when <daywork> is also OpenBSD related. But that has nothing to do with the foundation.
> $87.5k in 2022?
The year isn't over... and there should be some left from bygone years.
> That doesn't even pay for a single person after taking the rest of the expenses into account.
I'm not aware of a single full-time paid developer, by the OpenBSD foundation. It's more a gig thing. In addition for Hackathons the foundation pays for the venue and network, and the developers usually fly themselves in.
The foundation was founded b.c. the CD sales (back when there were still CDs sold) didn't even cover electricity and network costs of the main site anymore.
It's all done like in the good old days of Linux, before big business stepped in.