News for hackers. Stuff that matters.
Re:Plan 9 from Bell Labs in Cyberspace by throwaway823882 on Tuesday March 23, 2021 @06:42PM (#26561264)
If Unix is "everything is a file", then Plan 9 is "everything is a network filesystem".

If you have a laptop and a desktop, and your desktop has a printer attached, can your laptop just print to it? In Linux, you have to set up CUPS, open network ports, download drivers, and generally set up both machines to be able to "talk printers". In Plan 9, your laptop just opens the desktop's printer file over the network, and prints.

Re:Plan 9 from Bell Labs in Cyberspace by afr0ck on Tuesday March 23, 2021 @07:56PM (#26561872)
Plan 9 provides a generic framework for writing server-client programs based on the 9p message-oriented protocol; nothing more nothing less! In Linux, there is no such widely generic equivalent. Every server-client application does that in its own way. Actually Plan 9 forces everybody providing a service to understand 9p and to be able to translate 9p message requests to whatever it means for that service (what does write(bytes) means for a printer? What does write(bytes) means for a screen? what does write(bytes) means for a GPU? Everyone of those should understand a 9p write() message and translate it to whatever service it means) then Plan 9 uses that power to forward requests over the network to remote servers, making easy to use resources in a distributed environment.
Re:Plan 9 from Bell Labs in Cyberspace by BountyKeeper on Wednesday March 24, 2021 @09:25AM (#26566863)
Google's Fuchsia is remarkably similar to this.

There is per process namespaces/"filesystems". Their 9P protocol is FIDL and the main system API is defined by FIDL protocols/APIs.

Re:Plan 9 from Bell Labs in Cyberspace by pjmlp on Wednesday March 24, 2021 @11:14AM (#26568267)
Linux had CORBA, DCOP and now DBUS, among other UNIX variants.
Re:Plan 9 from Bell Labs in Cyberspace by nine_k on Tuesday March 23, 2021 @07:51PM (#26561836)
The latter does not prevent the laptop from the need of a "printer driver" to actually render something. But the driver can be unified (TTY or PostScript), and the printer object (not exactly like a file) has, well, methods to report options and set options, like the paper tray to use.

Or so I understand.

If we could imagine a network filesystem (spanning many hosts) full of Erlang objects which can receive and send data, it would be somehow similar.

Re:Plan 9 from Bell Labs in Cyberspace by maxxk on Wednesday March 24, 2021 @02:59AM (#26564301)
I think, in Plan9 philosophy, if the desktop has a driver and it is started in the current namespace, it is represented as a file too (like /dev/my-printer/print-pdf). But it quickly becomes confusing for me:

1. Nowadays we can represent the essence of this approach with FUSE and SSH/SSHFS. Sadly, nobody does: local servers (i3, dbus, ..., vscode) use domain sockets and client executables, probably due to the lack of private namespace support by default.

2. The difference between hypothetical "/dev/my-printer/print-pdf" and almost-like-real-world "my-printer-print-pdf /dev/my-printer" looks similar to binding the first argument in OOP-style vs the explicit C-like call syntax.

Re:Plan 9 from Bell Labs in Cyberspace by anthk on Wednesday March 24, 2021 @04:16PM (#26572335)
>1. Nowadays we can represent the essence of this approach with FUSE and SSH/SSHFS.

These suck hard against 9p and factotum. Not even close, Linux and BSD's are jokes against what you can achieve with plan9/9front on networking whole componentes. You can run remote processes seamlessly.