Re:How would you build an operating system? (SerenityOS with...
by sph on Wednesday February 07, 2024 @06:02AM
(#39287054)
You're on the right path! My area of interest is actually making messaging (a-la-Smalltalk/Erlang) the root idea everything is built upon, rather than the file stream. The file metaphor made sense in the 1960, not in an ultra-networked world of heterogeneous CPUs. IMO, communication should be the basis of computing.
Which also means inventing a language to build this novel paradigm. As Dan Ingalls said, an operating system is everything that doesn't fit in a language.
I am looking forward to finding the time for this long and quixotic quest :-)
Re:How would you build an operating system? (SerenityOS with...
by tonyg on Wednesday February 07, 2024 @06:40AM
(#39287305)
You might enjoy http://synit.org/, perhaps. Heavily inspired by both Smalltalk and Erlang. (It's my own wee quixotic project btw)
Re:How would you build an operating system? (SerenityOS with...
by sph on Wednesday February 07, 2024 @07:54AM
(#39287944)
That looks very interesting, thanks for sharing! Somehow I had never heard of it. Time for a Show HN?
Re:How would you build an operating system? (SerenityOS with...
by tonyg on Wednesday February 07, 2024 @09:02AM
(#39288657)
Thanks! And good idea. The ideal time would have been early 2023, because things have drifted into bitrot a little already. I'll tidy up and see about showing it off hopefully in the next few days.
Re:How would you build an operating system? (SerenityOS with...
by toast0 on Wednesday February 07, 2024 @11:24AM
(#39290479)
Why a new language? Why not build an OS around Erlang?
I present Crazierl: https://crazierl.org/
My crazy hobby OS vision of boot to Erlang. I've been working on this for a couple years now, recently made it public as part of a PR to v86 [1] (which is amazing, by the way). 32-bit x86, has drivers for virtio and rtl-8168 (but not ne2k, so no networking in v86, sadly), works with SMP. Probably not better than running beam as init with a FreeBSD kernel, but was more fun?
Hah thanks for the encouragement! Don't worry, there's no danger on that front. I'm pretty thoroughly bored of the "everything is a file" motif.
I do like unix's idea of making large programs out of small programs that can be composed together. But unix's raw byte streams make a terrible messaging bus.