146 points · by jsfcoding · 4y ago · 66 comments
man mount_9pThere is an old KEXT on GitHub [0] that can mount them from the Finder, but KEXTs are on the way out...
virtfs is the good one, not 9p.
Virtio-fs is independent of 9P and has optional support for using shared memory to greatly increase performance, it also maps better to the permissions and metadata of "modern" filesystems IIRC, not sure if 9pvirtio had this problem but I remember coworkers having permissions problems with the 9P bridge in WSL2 (Plan9's permission system is very simple and doesn't map well to other VFS's)
Timing-wise, it was too late for what they ended up doing, but anything all those people worked on is bound to have some interesting ideas.
It's been weird watching the rise of iOS loosen the reliance on, or even awareness of, files, when 9P was all about files. Files for everything!
I had the impression that it was held back by its proprietary license.
That was my impression, too. And then it got relicensed to a FOSS license... that was GPL-incompatible. And then it got relicensed again to GPLv2, and then it got relicensed yet again to its current MIT license.
In any case, each of these license changes was too little too late to really improve Plan 9's practicality from a "can I legally use this?" standpoint.
But basically, the hardware support was pretty bad. It took me a long time to find a SCSI controller which was supported, when ATA disks were already standard for years. Same with network- oder graphic cards.
Nowadays, if esoteric OS's would just support standard Vmware hardware, they'd be much more successful (looking at you fuchsia!)
Unfortunately, kids these days seem to be afraid of files. For a hardcore unix fan, curl and wget are useless tools when you can just cat /www/url
Sad but true. Android and iOS are the worst offenders I've seen. They're apparently trying to completely get rid of the concept of files altogether, which is really unfortunate for anyone wanting to build cool stuff on those platforms.
I understand there can be security benefits but at what cost.
For those interested, Himitsu[1] is based on the design of Factotum, but ported to *nix. It's actually a pretty good systems secret store.
That said, I can't say I've seen anyone try to write anything that scales like nginx on Plan 9. That doesn't mean it hasn't happened, I've just not seen anyone talk about it too much.
It did run on IBM's Blue Gene for a bit (https://www.usenix.org/legacy/event/usenix07/posters/vanhens...) but as you can see that was some 15 years ago, and I'm not sure we're talking about anything even remotely similar to a single computer handling tons of concurrent connections.
Plan 9 can also run Go binaries, but, again, not really sure we're talking about the same thing as nginx-level scale.
1. RK3588 Rockchip 12in Thinkpad cross HTC style slideout keyboard form factor 2. Plan 9 Legacy OS 3. seL4 microkernel, Qi cross Racket IDE
and to compete what people can do scaling out to the "cloud" at price thresholds, maybe a gifted individual or team will realise the 2100 movie's HAL9000 sentience.