Hacker News new | ask | show | jobs
by rakoo 4227 days ago
Plan 9 goes far beyond than that. Everything can be shared automatically, because everything is a file. Here are some scenarios that should be possible:

- You can access files remotely automatically from any application (akin to what sshfs does)

- You can access non-files remotely automatically: a printer is just a fd you write to

- A GPU from a distant cluster is just a resource you can use as if it were local (I'm speaking of implementation, not performance).

- A mail service can be accessed on a mail server, which is itself not connected to the wild internet but goes through a firewall... itself accessible through the same file protocol. Oh and the mail you want to send sits in your outbox on your phone, so you just grab it from your computer.

- You can play the music that lives on your machine on the speakers anywhere in your house by communicating with the remote fd

- One of the dream of Rob Pike (co-inventor) is that you wouldn't need a multi-core machine in your pocket for your mobile lives, you'd only need a good connection so you can access all resources on any server that is connected to the network. Your "smartphone" would then just be a terminal to pilot all your resources.

All of this accessible with the same interface, available in the OS. It may be have been a ludicrous dream, especially when we look at how much data would have been shuffling between machines, but the prospect of such networking still sounds awesome.

3 comments

IO devices were also mounted/manipulable within this filesystem. So you could mount your home keyboard/mouse/monitor to your remote workstation (maybe an HPC box in some datacenter) and continue working where you left off. Java tried something similar with Jini but without the powerful abstract of everything being a file descriptor in some hierarchical mapping.
So, could we imagine a startup making Internet of Things, and smart homes, and basing their tech on Plan 9 instead of Linux?
At this point I'm not sure it's worth it. We've got far more covered by just using a working Linux and taping specific protocols together than trying to make Plan 9 even work everywhere (If we're talking IoT, we're talking exotic hardware, so there's much much more chance Linux will need less work to be adapted, if not already done)

On top of that, we already have some platforms to use on Linux: the Erlang VM already has a notion of "global cluster of things" where the actual location of a resource doesn't have an impact on how things are executed (other than performance). The plan9 utilities are also partly ported to run on Linux; maybe we could try to run services that speak 9p/9p2000/styx on top of Linux ? That would be more useful.

Sure. Sign me up. Also, ContikiOS.
it is absolutely not a ludacris dream. I've been dreaming it for years. All my machines run linux. As long as I'm NOT on a phone or tablet, I sign in, ssh, restore tmux/screen session, and pull X via xpra.

Why my phone is unable to be a terminal to all my other machines is beyond me.

I should have 1 hard drive and 1 "computer", and 1 desktop. Every other machine should be a window to this desktop.

At least... in my dream world.