63 ms·
Inferno Operating System
- fghtr 7y agoNamespaces: a program's view of the network is a single, coherent namespace that appears as a hierarchical file system but may represent physically separated (locally or remotely) resources Standard communication protocol: a standard protocol, called Styx, is used to access all resources, both local and remote This looks similar to Qubes Air roadmap: https://www.qubes-os.org/news/2018/01/22/qubes-air/ https://www.qubes-os.org/news/2018/01/22/qubes-air/
- rhabarba 7y agoExcept that you cannot run a Qubes CPU server without a giant overhead.
- fghtr 7y agoAs a happy Qubes user, the overhead in CPU is barely noticeable for Xen virtualization. One needs a lot of RAM though.
- henesy 7y agoThe concept here is fairly profound and you could make the analogy of power to something like Lisp. Lisp everything is a symbol, in Plan9 everything is a file and all namespaces are mutable. This concept is combined in the Interim OS experiment[1]. The idea of everything is a file is very literal and very serious compared to say, unix. It's worth noting that 9p, while a filesystem protocol, is closer in concept to a REST api than something like say ext4. In Plan9, the kernel could be thought of as a 9p connection router/multiplexer and all system resources and all servers must express themselves as 9p filesystems. The tooling 9p provides allows you to take trees of named objects (filesystems) and rearrange them however you please and place child processes under rules for modifying their own trees and how they can break scope, if at all. Forking is more dynamic as provided by rfork[2] where you can give a child a specific subset of your process's namespace. So you could make a child who can only see specific files, executables, or resources and make it so that the child can't mount, unmount, etc. [1] Interim OS: https://github.com/mntmn/interim https://github.com/mntmn/interim [2] http://man.cat-v.org/9front/2/fork http://man.cat-v.org/9front/2/fork Some cool manuals: - http://man.cat-v.org/9front/1/bind http://man.cat-v.org/9front/1/bind - http://man.cat-v.org/9front/1/ns http://man.cat-v.org/9front/1/ns - http://man.cat-v.org/9front/3/proc http://man.cat-v.org/9front/3/proc - http://man.cat-v.org/9front/5/intro http://man.cat-v.org/9front/5/intro
- bangonkeyboard 7y agoThis project had my favorite naming theme in all of computing.
- nurettin 7y agoDoes it have the seven shells and a lake of boiling blood instead of the kernel?
- 0_gravitas 7y agoWith full compatibility with the latest version of your Seas of Ire
- panpanna 7y agoIn reality, this was an attempt to turn Plan 9 into a commercial product. Plan 9 despite it's crazy UI (the shell and editor have been ported to Linux so some people must have liked it) brought a lot of new ideas which eventually found their way into other projects such as Linux containers and Go (for obvious reasons). One really good idea that died with Plan 9 was transparent distribution of CPUs across the network. You could - the same way you mount a network drive today - mount a remote CPU and run your local software on it.
- lighthazard 7y agoThis is an interesting concept because I wasn't sure what 'distributed operating system' meant.
- jhbadger 7y agoAlthough I'm not sure how that "mounting" of cpus would avoid people hogging resources. I use a HPC system where users submit jobs and there's a whole complicated queuing system going on to make sure that greedy users don't monopolize the system.
- spease 7y agoYou could make the same argument about mounting disks. You revoke the permissions of the people who abuse those resources, and you don’t expose them to the outside world at large completely unprotected.
- gnufx 7y ago"Queuing" is distinct from the resource management component. If you don't have something like cpusets, processes on shared nodes can indeed hog CPU. There are worse issues with shared resources, like flattening the parallel filesystem, which is one of the things which is at least difficult to manage.
- rhabarba 7y agoExcept that Plan 9 has not died.
- based2 7y agohttp://doc.cat-v.org/inferno/historical_documents/website/infernojava http://doc.cat-v.org/inferno/historical_documents/website/in...
- dang 7y ago2015: https://news.ycombinator.com/item?id=9876217 https://news.ycombinator.com/item?id=9876217 2014: https://news.ycombinator.com/item?id=8801372 https://news.ycombinator.com/item?id=8801372 2011: https://news.ycombinator.com/item?id=3007069 https://news.ycombinator.com/item?id=3007069
- m_sahaf 7y agoThere are times when I wish Plan9 and/or Inferno took off and won some respectable market share. Having a laptop, smartphone, tablet, Synology storage at home, servers on DO, and remnant external HDD from prior era becomes frustrating because my files end up being everywhere and nowhere. There were times when I want to be able to start working on some code on my laptop, pause, then continue work on my tablet later on. At those moments it would have been wonderful if I had Plan9's ability to mount remote filesystems, sync across the network, and have consistent view however I access the data. Yes, SSHFS is available, and the same protocol from Plan9 is available in Linux nowadays, but setting them up isn't as simple as it was in Plan9 and being native to the OS. That, in addition to the fixes it had (truly everything is a file) and the innovative features delivered (e.g. namespaces). Can we revive them? Inferno's development seems to have slowed down to a halt.
- rhabarba 7y agoPlan 9 (and some of its distributions, namely 9front and 9pi, the latter being Plan 9 for the Raspberry Pi) are still developed. No revival needed. You'll just have to download, install and use them. And they come with VNC, if you absolutely need incompatible software like a sane web browser. edit: That said, I happily use some of Plan9port every day. There never was a better Acme editor (or, rather, Acme2k) on any other operating system. Amazing concept!
- henesy 7y agoYeah Richard Miller just put out tentative support for the Raspberry Pi 4 for his pi port. https://9p.io/sources/contrib/miller/9/bcm/ https://9p.io/sources/contrib/miller/9/bcm/
- bigato 7y agoNo need for vnc on 9front to access a browser nowadays. You can run the browser inside vmx.
- rhabarba 7y agoThe manpage ("bugs") suggests that I shouldn't do that. But thank you a lot - I had, indeed, entirely missed that!
- rhabarba 7y agoI actually tried the Android port once. It was... interesting.
- ACE_Recliner 7y agoJust a note for anyone who is looking to try this out: there are currently some fairly hard baked and thorny 32 bit dependencies in the Dis VM, so your system will need to be multilib to run it. There's currently a 64 bit porting effort going on in the form of Purgatorio, but that's still some time away from being complete (I recommend using it anyway because it's the most up to date version of the Inferno tree).
- henesy 7y agoSource: http://code.9front.org/hg/purgatorio/ http://code.9front.org/hg/purgatorio/ Purgatorio 64-bit is a ways away, but is a goal. It'll happen eventually, but the more eyes the better.
- henesy 7y agoNice to see Inferno posted! Some Inferno related stuff: - Limbo by Example: https://github.com/henesy/limbobyexample https://github.com/henesy/limbobyexample - The Inferno Shell: http://debu.gs/entries/inferno-part-1-shell http://debu.gs/entries/inferno-part-1-shell - Try Inferno in the browser: http://tryinferno.rekka.io/ http://tryinferno.rekka.io/ - Cat-v Inferno resources: http://doc.cat-v.org/inferno http://doc.cat-v.org/inferno - Experiments in Inferno/Limbo: https://github.com/caerwynj/inferno-lab/ https://github.com/caerwynj/inferno-lab/ - Inferno Programming with Limbo: https://web.archive.org/web/20160304092801/http://www.gemusehaken.org/ipwl/ https://web.archive.org/web/20160304092801/http://www.gemuse... (also on cat-v) - Developing Limbo modules in C: https://powerman.name/doc/Inferno/c_module_en https://powerman.name/doc/Inferno/c_module_en - Simple FS example in Limbo: https://github.com/henesy/simplefs-limbo https://github.com/henesy/simplefs-limbo - Inferno client for Redis: https://github.com/pete/iredis https://github.com/pete/iredis - Inferno for Nintendo DS: https://bitbucket.org/mjl/inferno-ds/src/default/ https://bitbucket.org/mjl/inferno-ds/src/default/ - Inferno as an Android app: https://github.com/bhgv/Inferno-OS_Android https://github.com/bhgv/Inferno-OS_Android - Inferno replacing Android (hellaphone): https://bitbucket.org/floren/inferno/wiki/Home https://bitbucket.org/floren/inferno/wiki/Home - Porting Inferno to Raspberry Pi: https://github.com/yshurik/inferno-rpi https://github.com/yshurik/inferno-rpi
- henesy 7y agoIt's a really early draft, but here's the base for an awesome-inferno repository: https://github.com/henesy/awesome-inferno https://github.com/henesy/awesome-inferno
- yingw787 7y agoWould Plan9 fit in with applications like robotics? I feel like such an operating system would do well with the need to interoperate between a bunch of different types of sensors and hardware, and the need for sensor fusion. I’m not sure if Linux and device drivers are the right foundation for that kind of stuff.
- henesy 7y agoThis exists and to a pleasant effect! http://doc.cat-v.org/inferno/4th_edition/styx-on-a-brick/ http://doc.cat-v.org/inferno/4th_edition/styx-on-a-brick/ The ev3dev project is partially inspired by everything is a file and I've used it in the past for educational purposes by making the business of controlling/using motors/sensors as trivial as read/write. https://www.ev3dev.org/ https://www.ev3dev.org/
- ori_b 7y agoYes, until someone asks "Can I use $POPULAR_MEGAFRAMEWORK".
- luismedel 7y agoI have some sort of love/hate relationship with this project, regarding the Dis VM. IMHO, having read the spec, I think the VM had a great design for the nineties but was not future-proof enough. It's like it was designed with some specific CPUs of the time in mind, and that biased the design. Also, I find it too tied to the language used in the canonical implementation (obviously C). In contrast, I find the JVM (contemporary to Dis) more generic and more easy to implement using other languajes than C. BTW, a few years ago I wrote a (incomplete) Dis VM in C# [0] that I hope to finish^H^H^H^H^H^H rewrite some day... [0] https://bitbucket.org/luismedel/sixthcircle/src/default/ https://bitbucket.org/luismedel/sixthcircle/src/default/
- sprash 7y agoThis OS doesn't require an MMU or protected memory. I wonder if a processor architecture that lacks those features could yield much higher performance due to less complexity, reduced memory latency or less cache miss penalty. Will it be enough to mitigate the perormance penalty of runing code in the Dis VM?
- soraminazuki 7y agoYou'd have to compensate for the lack of memory protection by running all unprivileged code in a VM, which would very likely introduce its own class of complexities and performance penalties.
- henesy 7y agoInferno instances are really meant to be compartments for individual programs more than a desktop OS in and of itself. Dis VM instances are super light… you wouldn't really be needing to worry much about running a large number of them. Point aside in many cases you can sandbox applications in crafted namespaces using spawn and flags like NODEVS.
- sprash 7y agoInferno already runs all unprivileged code in a VM. When I installed it on a Raspberry Pi for example could disable or enable its MMU, it didn't make a difference at all.
- tinus_hn 7y agoPeople always defend Java as if these penalties don’t exist somehow.
- sprash 7y agoThe question was more about how the big the penalty is compared to running a MMU. Also according to my (admittedly rather basic) tests the DIS VM performs far better than JVM.
- the_why_of_y 7y ago
- adam_gyroscope 7y agoBack when I was in university we had a small course on Limbo/Inferno because of a connection my university (RIT) had to bell labs. I took the course in... 1998? and wrote a version of Tetris for limbo. The code was awful, but did find a bug in the Tk implementation. This lead me to my proudest/most embarrassing programming moment - apparently, my code ended up in front of Dennis Ritchie, who thought the code was terrible. Whatever, Dennis Ritchie looked at my code! Anyways, here's the awful code: https://github.com/adamf/limbotris https://github.com/adamf/limbotris
- jadbox 7y agoThat's a great story! We have written all written embarrassing code at some point in our careers. xD
- riffraff 7y agoI find it impressive you still have code you wrote for a university class in '98!
- BrissyCoder 7y agoI still have code I wrote for the C64 in 1988 lol.
- AJ007 7y agoMy dad has a box of punchcards for code he wrote in his university class, well before ‘98. I think all of my own 90s era code was on floppy disks that may or may not still be readable.
- lakkal 7y agoI have a printout of a Pascal Othello/Reversi game I wrote in 1985 for a class, as well as some C and DCL stuff from 1986-1987. The oldest I still have online is some more C stuff from work in 1988.
- fit2rule 7y agoIs that your Tetris in the screenshot?
- hestefisk 7y agoI remember reading about this in a Danish PC mag ‘PC Pro’ (or ‘Alt om Net’) in ca 1998. From memory there was also a framework called ‘Hades’ as per the mythological river. Or am I wrong here?
- mortdeus 7y agoinferno is cool because it takes a lot of great ideas Ken and rob pike came up with for plan9 to address unfixable architectural flaws inherent to Unix's overall design, and basically makes an vm based portable OS/userland that is everybit what Java could have been. And then of course Rob Pike, Russ Cox, Ken took what they learned from their background at Lucent and paired it with Robert Griesmers background in developing innovative VMs for Javascript and Java and they essentially put everything they learned to develop the Go programming language. Which if you get into the architectural aspects of it. You know actually dig into how it's implemented deep down you will see a lot of code that is essentially derived from plan9 and inferno's code in many ways.