Show HN: My 5-year basement Plan 9 project
9gridchan.org
9gridchan.org
Professional colleagues of the late University of Wisconsin Law Professor John Kidwell might also have a vague personal interest in knowing what his son has been up to in the world.
I don't like facebook or any of those things, so I'm not well "networked" in the world. Kind of isolated actually. Me and a basement of Plan 9 machines. Figured I should reach out a bit.
Thanks my friend.
I just have a general sense of the world working through personal connections. I have never considered trying to contact a "public figure" as something which made sense to do as a random individual. Maybe I'm mistaken in that feeling though. I honestly haven't figured out how to interface with the world very successfully and maybe my instinct that I'm not allowed to try to contact human beings I don't know personally is wrong.
If he lists it on his homepage, an email concerning a project of interest is certainly not overly intrusive. Worst case it gets ignored, better case you go back and forth about your implementation.
One way to describe my software is as a Grateful Dead inspired approach to home clustering. Maybe it's even "outsider software art" or some ridiculous term like that.
Anyway, it has no web/facebook/ecommerce anything aspect to it, so it may not match the prevailing concerns here, but I tried to make it easy to use by providing preinstalled virtual machines to play with. Use them on a private network because they have default passwords and listen for cpu service. The "ANTS farm" subsite (http://antfarm.9gridchan.org/tutorial) has the VM/tutorial style documentation and walkthroughs.
I'd be interested in any feedback.
Found a little more background via Wikipedia: http://en.wikipedia.org/wiki/Plan_9_from_Bell_Labs
"Plan 9 is a grid computing platform. It is an effort to provide a computing environment for geographically distributed clusters running on heterogeneous hardware, engineered for modern distributed environments and designed from the start to be a networked operating system.[12] It can be installed as a self-contained system and used on a single computer, but also has the capability to separate its components between separate computers. In a typical Plan 9 installation, users work at terminals running rio, and they access CPU servers which handle computation-intensive processes. Permanent data storage is provided by additional network hosts acting as file servers and archival storage.[13] Currently available desktop computers can emulate this architecture internally using multiple virtual machines."
Anyone else care to explain the elements which make Plan 9 stuff awesome (in noob terms)?
Because everything was a file in Plan 9, tasks that were difficult for Unix were no brainers. Want to redirect your screen from one host to another? No problem, just mount a different framebuffer over the network. Compare that to the X11 monstrosity and its associated specific protocols for remote desktops and screen splitting/sharing and so forth -- in Plan 9, this was just done with mount.
Want to place a mixer on the audio path? No problem, the filter exports a filesystem interface, and you just mount it on top of the actual audio file. Different apps write to what they think is /dev/audio, which turns out to be a pipe to the mixer, which then mixes the signals from different apps and writes to the real /dev/audio. Contrast this with the "Poettering-approach" to Pulse Audio: klunky, specialized, complex, and ultimately broken.
Plan 9 was small, simple and incredibly powerful. Its /proc filesystem had impact on other OSes, notably Linux, but sadly no existing OS comes anywhere near its clean and elegant aesthetic.
There were so many other innovative aspects of Plan 9 (e.g. no superuser, utf-8 for everything, network protocols, the fileserver, the WORM filesystem that retained everything, the editor, the windowing systems, etc) that I cannot hope to be comprehensive, so I picked out its main feature. For the rest, I encourage everyone to read the papers: http://plan9.bell-labs.com/sys/doc/
In case anyone is wondering how the Plan 9 approach could accommodate special devices and so forth (i.e. objects that do not conform exactly to the same interface), there is an escape hatch called a control file, and you can do the equivalent of an ioctl by writing device-specific commands to the control file. But by and large, P9 represents everything as a filesystem and thus makes it really easy to reconnect the piping any which way the user likes.
Every hacker needs to see Plan 9 in action.
Plan 9 guys tend not to like the design of HTTP ( http://http02.cat-v.org/ ) so don't tell anyone I used this illustration, but Plan 9 is OO similar to the way REST is.
In Plan 9 (and Inferno) your objects can be files on disk, structs in memory, devices, etc. Anything that can conform to the interface. The interface in this case is files. Your objects expose a filesystem, and you interact with them by means of the usual tools for file manipulation. The Acme editor exposes a filesystem, the clipboard ("snarf buffer") is a file, and the network is, instead of a group of special syscalls, a filesystem. So you could write a shell script that reads a URL from the snarf buffer, downloads the page it points to, and puts the content into a new window in Acme, in three or four lines, without using anything more complex than cat and echo.
Maybe plan 9 was a bit before its time. Had it been developed today when distributed systems and big data is more talked about, it might have had a bigger impact.
And then your config files get config files (GRUB2, Debian/Ubuntu network configuration, ...) as the horrifically bad design decisions made on behalf of the nonexistent "Linux desktop users" get pushed onto the server that you have to actually deploy working code onto. It's enough to drive a man to drink...or at least it's driven me to Inferno and Plan 9.
I am skeptical. PA had teething problems, but on the other hand, they kept compatibility with ALSA, they kept compatibility with ESD. /dev/dsp had been known-to-be-broken for ten years or so when PA was released- and after the kernel added the necessary bits, osspd was released.
The PulseAudio rollout was a disaster, but it wasn't architecture that was the problem.
"To implement [NAT], a union directory can be created, overlaying the [gateway]'s /net directory tree with its own /net"
"Implement NAT"? Sorry, but exportfs doesn't contain any special-case code that says "oh, someone is accessing /net! Better switch on the NAT code!".
There's no actual translation of addresses, it isn't NAT. Plan 9 does have a NAT implementation but it's closed source.
And their example of a bind is horrible. They've got that LONG path into Inferno's "chroot". Inferno isn't part of standard Plan 9, and there aren't many paths in Plan 9 that are anywhere near as long as that. So it's misleading on two counts. If you must have a /bin example of a bind, a better one would be Acme binding its Acme-specific binaries and scripts onto /bin.
I'm really, really going to have clean that article up. It doesn't even have anything about how Plan 9 gets modularity without dynamic linking. Securely.
I like that they added an "Impact" section.
It's been said already that on Plan 9 you've got the same interface to local and remote resources. That's cool and all, but how many computers have you got, really? And how many of them run Plan 9?
So here's a related example, a corollary almost, of local vs remote.
You see, it isn't just local vs remote, it's also in-kernel vs user-mode. On most systems, you make system calls to ask the kernel to do something for you, and you make library calls to access functionality that's been implemented in user-mode.
In Plan 9, you've got some system and library calls, but for most services you've got the same interface whether they're in the kernel or in user-mode. REgardless of what language they're implemented in, too.
In the 90's, Plan 9's networking interface was a user-mode filesystem written in Alef. The IP stack was, the hardware drivers were in the kernel though.
In 2000 or so it was all moved into the kernel (except the connection server). But it was still a filesystem. The same interface. A service was moved from userspace to the kernel, and the method of accessing it didn't change, so no programs had to be changed, or even relinked or recompiled.
I mentioned the connection server (cs). You wanna know about the cs? Basically, it's a program that understands network types FOR YOU, so you don't have to. You _could_ access the network without cs, but the feel would basically be the same as using sockets: you would have to know whether you're connecting to TCP, UDP, or other, and make different calls accordingly; you would have to know whether your user has passed you a DNS name or an IP address; etc. With cs, you ask cs to do it, and nicely receive a file descriptor to the correct type of network.
That IPv6 support was added without changing any programs is due to cs. This sounds similar to the other example, but it's different. In the first example, the implementation changed but the _types_ of networks supported remained constant. The Blue Gene has all sorts of esoteric networks not used anywhere else. Only thing that had to be done to Plan 9 was write the hardware drivers and teach cs the new networks.
If I could make this post shorter and still have all the same information, I would, honestly. But I could talk for hours about Plan 9.
Plan 9 is basically a redesign where your files and username/password are centralised like on a Unix network with dumb terminals (70s up to mid 80s Unix), but at the same time, you're able to make use of the local resources of your "terminal" like use the CD driver or a scanner or whatever. You have access to them as if you're root.
Plan 9 says: whoever turns the machine on is basically root. If you have physical access to the box, you could theoretically fuck it up any way you wanted, so we might as well just give you root - there's nothing valuable (security wise) on a terminal anyway. Enjoy your CD drive.
The paragraph before the last one is more important than you think. You see, all that other stuff I said about /net, that came afterwards. The original goal was just to have centralised auth and (disk) fs, and stateless terminals. But then, all that other stuff we have in Plan 9 (e.g. network transparency, no real superuser) sort of emerged as a corollary of that first goal.
Other things that Plan 9 users are obsessed with (e.g. mouse chording, output which is usable as input, etc) more fall under the category of things with would be equally easy or difficult to implement regardless of the underlying OS.
I'm really glad we've got all these nice things under one OS, because it's totally conceivable that someone could have designed an OS where (say) everything is a file, but doesn't have (say) clean readable code. We have both, but we also have relaxing colours, mouse chording, easy-to-use concurrency, and a cool mascot.
Plan 9 software appears to be software that would enable a person to make a HOLMES FOUR on their own. Pretty cool.
1. http://www.amazon.com/The-Moon-Is-Harsh-Mistress/dp/03128635...
Manuel said it was poorly engineered and used #3 arm to improve the boot namespace.
I think this software is very interesting and does have real world uses, but it would need work to turn it into a math/science tool, and in general Plan 9 has a much smaller ecosystem built around these things. There are Plan 9 supercomputing projects like XCPU and if that is compatible with your wife's work it might be relevant to use XCPU top layer on top of ANTS architecture, - but I've never used XCPU personally.
I would say my software at the moment is better suited to hobby and exploration at the moment, but if you were interested in the possibilities, it could have an application in this field.
end times.
I hope most people know this already, but it needs to be said anyway. 4chan is a
popular website with millions of users. Negative stereotypes about people who
visit particular websites are just as silly as thinking that every person who
lives in Chicago is a gangster or any other unfair assumption.
P.S. install gentoo