238 points · by signa11 · 5y ago · 100 comments
I've been running a Raspberry Pi as an all-in-one Plan 9 setup for a long while now (as a sort of catch-all minimalist dev environment/console), and the two main showstoppers for me have been:
- The reliance on a three button mouse, which makes it impossible to use Plan 9 on a modern laptop without finagling with modifier keys (no, I don't want to go back to using a mouse, thanks).
- The utter lack of any minimally usable browser (I know, the browser would be larger than the OS, but it is a major issue for any kind of work today).
It is an excellent system to dig into and learn from, but there are many paper cuts when using it daily: SSH/terminals work differently, VNC/Remote Desktop clients are... weird, etc. (rd sort of works, and sort of doesn't, and without it really working I can't even read documentation online unless it's plaintext).
All in all, this is a great thing to see as I hope new things are built atop Plan 9 (when it makes sense), but as a minimal desktop environment I've moved to Openbox + xterm + Firefox, and have been pondering setting up Chromium OS on a beefier Raspberry Pi, since most "consoles" are just web-based these days anyway...
Plan9 was also far ahead with sandboxing by having namespaces, which means you can expose restricted views of the "filesystem" to each process. Since in plan9 there's no ioctls and every resource access is simply read/write syscall (even networking!), restricting the "filesystem" is all you need to restrict what a process can do on your system.
UNIX world had sandboxing via stuff like Tru64 and HP-UX vaults, while the cloud kind stuff kind of traces back to IBM System 360 capabilities, later improved in z/VM.
- https://taoofmac.com/space/os/plan9
...so I do know a lot about it in practice. It's just that, also in practice, nearly ten years of tinkering with it have been mesmerising, mostly fun, but not useful enough for my particular use cases. YMMV.
In so far as when they were created long after UNIX. And Plan9 certainly was at some point hoped to be a successor.
That did not happen.
and the new ideas they had.
Some modern laptops which have both a touchpad and a trackpoint or similar have two sets of mouse buttons, with the top one (for the trackpoint) having three buttons. The Wikipedia article (https://en.wikipedia.org/wiki/Trackpoint) has a list of models (note however that, for some models, it's optional so you can have it either with or without the trackpoint) and a couple of pictures of these laptops with two sets of mouse buttons.
Definitely a very interesting system though.
https://shithub.us/sigrid/riow/HEAD/info.html
This has some keyboard shortcuts etc.
(... and so on and so on. HTTP, as a protocol, has eaten the world. A "desktop" anything without a native browser in it really sticks out.)
Thinkpad ;)
Thinking about getting a better workstation for it, but so far, there's no real problem using a raspberry pi. (and you just don't need a ton of resources to make it work really well!)
This article is great and has very few errors. I won't point any out as they'd just be some old curmudgeonly person pointing out historical inaccuracies that don't really matter that much to a "here's how you can use Plan 9/9front".
Really nice!
I've been particularly excited about Plan 9 and 9front since the MIT licensing that happened this year. Great outcome, and I wish it'd have happened 10 years sooner!
They are remarkably honest about it: "There is no advanced auto-completion of program names and flags, like hipster zsh and fish users might be accustomed to. But this really isn't an issue since Plan 9 has virtually no programs or flags to speak of, as you will discover soon enough."
Those with any kind of spidey sense for going down tech rabbit holes might also notice how front-and-center features for, ummn, connecting/emulating computers not running Plan 9 are in this guide.
Randomly cutting into the document presents you with a plethora of the usual fetishization of the fact that a nearly useless operating system, window manager, etc. doesn't take nearly as many LoC as something that more than a handful of people use, not to mention a giant list of things that you apparently shouldn't do, like use files made in Office: "There are a great many office suits (sic) on most operating systems, and other office utilities besides too numerous to count. So many are the choices in fact that it's easy to forget that "office" is just a fancy word for working with text."
It seems to close on some daft explication of how everything can be a database and how you don't need a real one, presumably after having invested thousands of words on how you don't need a spreadsheet, don't need a web browser, don't need an office suite, etc.
I cannot think of anything that captures the spirit of Plan 9 less than attempting to revive a dead, nearly 30 year old operating system and pretend that it's a useful daily driver. At the time Plan 9 was built it was a quirky and clean take on technology of the time, built on cutting edge and interesting hardware. At a time when distributed systems in Unix (not really Linux, then) were a tooth-grinding exercise in frozen NFS mounts and awkward, irritating incompatibilities, Plan 9 was a breath of fresh air. Honoring its spirit would be building a new operating system that applies this kind of simplicity to modern hardware (a hell of a task) - and learns from its mistakes, not trying to set up a homestead in this utter wreck.
It is pathetic that operating systems have remained crap for 30 years, but given that nothing has moved forward, there's no reason not to start with the newest operating system we have: Plan 9.
As a bonus, you'd get a vast array of device drivers and be able to run actual computer programs used by more than a handful of people, which I hear is neat for attempting to build an innovative research operating system with some relevance.
I'm not going to argue that a standard Linux distribution is not a giant mountain of cruft, but imo it's the user space and system software that's alarming, not the kernel per se. And to the extent that the kernel is crufty: well, it's supporting orders of magnitude more things that Plan 9 ever did, and that's a good thing.
I share your irritation at all the things you outline, but you don't need to be running a wacky Thompson C codebase on top of an old kernel to fix any of these things.
I'm also far from convinced that there's any aspect of the Plan 9 design that should be accepted uncritically for a clean sheet new OS design. Saying "nothing has moved forward" is hyperbole, and plenty of things have changed since 1990, even if we accept your claim about OS stagnation as a given. I'm far from convinced that the insights of the Plan 9 guys circa 1989 are so wonderful and timeless that they are better than what could be done with a clean sheet design on top of modern hardware and a minimalist Linux kernel now.
Harvey OS[1] is a Plan-9 based OS but with a modern toolchain using C11 and Go. Not much activity in the last few years, but then a burst of activity this summer.
I'll just stop at the top- no, I can't use Linux as a base, except perhaps as a host for a virtual system. For me I've been playing with uxn, but Inferno does exist. And you're right, using Inferno on a stripped Linux system WOULD be better than using Linux.
Also, rant whatever you want, but importing /net it's far better than all of the IPTABLES NAT crap you have to write in order to have an usable system build on top of stacked crap again and again.
9front is the future, and not that turd based on half baked networked file systems from Sun named NFS, or worse, Java as the 'standard' of enterprise 'computing'.
Don't let me start on X11, Bash having /dev/tcp and so on.
Or having to use VNC instead of X11's forwarding in order to be usable today (Or NX, Xpra...), thus, defying the basic scheme of X11's client/server model.
Why is the socket interface the way it is? Why isn't it like /dev/tcp in bash?
I tried Plan 9 about 10 years ago. Since then I use VPNs everyday and it can be tricky to setup at times.
The Plan 9 concept of just importing /net from the VPN machine as a union overlay is so elegant.
https://en.wikipedia.org/wiki/Plan_9_from_Bell_Labs#Combinin...
That's wrong. /dev/tcp or /dev/udp should be devices themselves, not a fake one for bash.
The thing that still appeals to me about Plan 9 as a concept - is the willingness to do a clean-sheet design and not be bound by the way that everyone else is doing things.
A better design would also not fetishize uselessness. It's one thing to have a cool environment but it's quite another to point-blank refuse to maintain a compatibility layer that allows people to run significant programs that people want to use. Plan 9 didn't have to allow the APE (ANSI POSIX Environment, a project from Howard Trickey) to run down into uselessness.
There are a lot of interesting system design questions that arise from letting people use computers the way they want to, for 2021 workloads. I think we probably know how to let people use shell, ed/vi/emacs/... and cc to make hand-built astronomy databases and manually paint a time of day clock into a window. But you don't get to find out the demands of modern computing without having enough compatibility layers to let someone run a database or a reasonably-complete 3D engine or a web browser on your system.
It’s just a guide on how to do things with an operating system. The author isn’t even really advocating it’s use as a daily driver, just providing instruction for how to do so, if someone was so inclined. There’s nothing in there that’s warrants a multi-paragraph whining about OP is using something.
There seems to be a very negative option towards retrocomputing on HN unless it related to bitching about electron or resource usage, but this is the most virile I’ve seen it.
I'm deeply affected by this because I loved Plan 9 in 1992-1994. I wrote multiple user level file servers for my silly honours project and for summer research projects. I built compiler passes for Thompson C while I was at the Labs between ugrad and starting my PhD (mixed caller save, callee save register allocation and a retargeting to the R4000). I wanted it to succeed because of the things that were good about it - but even then was starting to realize how worrying the NIH stuff in Plan 9 was. I started CMU still wanting to talk to people about Plan 9, but it didn't last.
My complaint comes from disappointment: Plan 9 was exciting because it was a clean sheet design, coming from the best judgement of a bunch of very smart people looking around at what was going on with hardware and software in around 1989. People poking the corpse now are working in the opposite of that spirit.
Everyone is free to do what they want, of course (I'd love to fire up a Commodore 64 or an Amiga!) but it feels like a tremendous waste of time to me (subjectively, of course).
Apologies for the aggressive tone in my comment. I do a lot of weird stuff with retrocomputig and have found myself having to defend my time in the past
It was developed by a single developer.
Perhaps the use of Plan9 can spark a similar good idea?
After all 'art cannot be created in the absence of limitations' ...
How so? GP's post may be a little bit too harsh, but it's definitely well written and coherent.
Recently, NetSurf has been ported to Plan 9 by the 9front developers. The browser is slow and glitchy with a ton of bugs, and thus provides a fairly convincing web 2.0 experience.
Based on this alone I think I shall give Plan 9 another try in the not too distant future!
HN works under Links, so it could work under Mothra.
Plan9 wants a network
Plan9 wants to be distributed
Plan9 wants a community
I've always heard about Plan9's networking, does this include having good leverage for tasks like audio streaming?So I assume so.
https://blog.tsr-podcast.com/index.php/2021/05/13/episode-76...
(Much of the Plan 9 UI was borrowed from Oberon.)
The Acme UI is heavily based on Oberon. The current plan 9 UI is Rio, a window multiplexer and manager.
https://arstechnica.com/gadgets/2018/03/a-history-of-the-ami...
It is possible to port wasm to inferno and replace dis. That could open up some interesting possibilities. You could write code in any language, spit out wasm and run it on any cpu/OS via inferno.
Inferno was created as a potential Java competitor. That hope is long gone.
However I do like the idea, either a Goberon or Ginferno version of Go's influences, but that is above all just nostalgia, they wouldn't be the same, and the time has pasted when their ideas were new.
Sitting in my bedroom with my 386 and trying to install Linux from stiffies and getting IPChains to dnsmasq/forward basically share the dial up connection for 'the house' lol the other 386 !
#GoodTimes :)
It has a lot of great architecture that would make it a preferred platform in these "cloud", "distributed" ways.
Smack Erlang and Elxir on it and you got something.
Also, if I had more time, I'd get Zig working on it too.
There's always Go, and it works pretty well too!
A plan 9 interface to a GPU would have to be as general as possible by excluding API specific interfaces. This way you have a GPGPU interface which you build applications/api's on top of.
edit: Here's a very back of napkin idea that was lightly discussed recently, https://marc.info/?l=9fans&m=162965057312200&w=2
Linuxemu is something of a research project, and I don't recall it working all that well either.
You can get a Unix-alike (e.g., OpenBSD) running under 9front's vmx(1), and that will get you access to X11, albeit not running natively atop a Plan 9 kernel, which is likely not what you're after.
Only reference I can find quickly is here https://plan9.io/wiki/plan9/x11_installation/index.html
I used it with the linux emulation layer someone was building to run Mozilla on Plan 9, but none of those were continued as far as I know.
Other OS like Windows, Android or MacOS implement such an API. Therefore it is possible. I think that truly open source drivers should be available for everyone, not only to the users of one specific kernel.
Here's the 9front ACPI interpreter:
http://git.9front.org/plan9front/plan9front/HEAD/sys/src/lib...
And the USB stack, user and kernel side:
http://git.9front.org/plan9front/plan9front/HEAD/sys/src/cmd... http://git.9front.org/plan9front/plan9front/HEAD/sys/src/9/p... http://git.9front.org/plan9front/plan9front/HEAD/sys/src/9/p...
Even the complex drivers, like wifi, are relatively small:
http://git.9front.org/plan9front/plan9front/HEAD/sys/src/9/p...
Linux code is unpleasant. I don't want to deal with it.
Give me clear, well-written docs instead. Of course, since that never happens, we just end up reading the linux code and reimplementing it in a way that's acceptably clean.