7 ms·
Nanix: An idea for a modern, small, Unix-like operating system
- deleted 7y ago[deleted]
- david_draco 7y ago"UPDATE: Thanks to the Lobsters commmunity, commenting on my Lobsters post, I have come to the conclusion Nanix is unfeasable. That's too bad! " That thread is here: https://lobste.rs/s/qurwmz https://lobste.rs/s/qurwmz
- geofft 7y agoThis seems sarcastic to me. You'll compile a lot out, sure, but I don't understand from the discussion why it can't be done. I understand why it's hard, why certain people have no interest in it, and why using a 64-bit address space is important for security defense. But nome of that seems to make it fundamentally impossible.
- Someone 7y agoDepends on how you balance take advantage of modern hardware with be somewhat useful for hobbyist desktop users. If you think “somewhat useful for hobbyist desktop users” means booting from UEFI, supporting USB-3 including hot-plugging, and doing power management well on generic hardware, I don’t think there’s any chance to stuff everything on a floppy disk. If you’re willing to remove device enumeration, effectively building a different kernel for each choice of to be supported hardware, work with just a tty over a serial port, and be forgiving a lot on the “Unix-like”, it’s quite doable (example: http://lng.sourceforge.net/ http://lng.sourceforge.net/, a ‘Unix-like’ OS for the Commodore 64). The “somewhat useful” would suffer, though, and one could argue that isn’t “Unix-like”. There may be something in-between that adds enough usefulness to make it “somewhat useful”.
- newwbb 7y agoThis has already been done. Works fine on older hardware: http://www.toms.net/rb/ http://www.toms.net/rb/
- tyingq 7y agoSimilar for FreeBSD: https://people.freebsd.org/~picobsd/old/picobsd.html https://people.freebsd.org/~picobsd/old/picobsd.html
- Quequau 7y agoI think there are many niche BSD derivatives that focus on minimal footprint and small machines. The other day I was looking at RetroBSD for example.
- floatboth 7y agoyeah, there was also LiteBSD https://github.com/sergev/LiteBSD https://github.com/sergev/LiteBSD but Retro is the more active project https://github.com/RetroBSD/retrobsd https://github.com/RetroBSD/retrobsd
- geofft 7y agoThese are about twenty years old (Linux 2.2 and FreeBSD 3). While they almost certainly still work on modern hardware thanks to the backwards compatibility of the PC platform, can it be done with newer software?
- squarefoot 7y agoA possible alternative: pester Blackberry with requests for opening the 32bit variant of QNX (crowfunding?), since they're likely moving to 64bit anyway. Very small devices with RAM sizes well below the Gigabyte are the ones which would benefit the most from it.
- aidenn0 7y agoSurely they are still selling the 32 bit version to the embedded market?
- dddw 7y agoyep, lotta automotive and transport stuff.
- jacobush 7y agoThe ever elusive QNX. I remember being given a boot floppy of QNX for PC, it had a graphics environment, a shell and a web browser. On one floppy. Stable like Linux, small, graphical and fast like Amiga (actually smaller!) and could run circles around Windows 95 on off the shelf hardware. Alas, it was not to be.
- lizknope 7y agoYou can still get it here. http://toastytech.com/guis/qnxdemo.html http://toastytech.com/guis/qnxdemo.html Demo video https://www.youtube.com/watch?v=K_VlI6IBEJ0 https://www.youtube.com/watch?v=K_VlI6IBEJ0
- nyolfen 7y agoi looked around a bit on that site and really enjoyed this: http://toastytech.com/guis/abuse.html http://toastytech.com/guis/abuse.html
- emayljames 7y agoOr go full Assembly OS (a tiny size and gui): http://menuetos.net http://menuetos.net
- PorterDuff 7y agoI'm always in favor of homebuilt OS projects, I've worked on several in-house OSs and they seem to have good ideas salted around them. If it were me, I'd write an open source RTOS (yet another one) and cast around for clever notions to stick in the thing, for the mental exercise if nothing else. Perhaps carve out a niche in quality/safety and not so much in performance.
- giancarlostoro 7y agoWhat I partially would love to see is a Unix like OS for the Pi thats designed and built specifically to take full advantage of everything the Pi has to offer. The Pi especially with the Pi Zero is a great tool to learn and teach. Since the Pi Zero is so cheap if it breaks you buy a new one...
- scintill76 7y agoWhat does the Pi offer that Linux doesn't take advantage of?
- giancarlostoro 7y agoCompared to an x86 OS that is specialized and fits in a few MB worth of storate media. I think a custom OS for the Pi could be very lightweight and efficient. Especially given how spread out the SBC is. I am sure there could be a stripped down Distro for the Pi as well. Its a shame that Slitaz is kind of dead.
- deleted 7y ago[deleted]
- al_form2000 7y agoThis has prompted me to look if floppies are even still available for purchase -they are (as are USB floppy drives). Also pretty expensive, at 1.5 euros apiece.
- jpindar 7y agoThere may not be many computers with them still in use, but there is test equipment and, I assume, other industrial equipment.
- alexellisuk 7y agoHow is dragonflyBSD?
- cat199 7y agodragonfly is a full system. 'light' by modern (read: ubuntu, windows 10) standards (e.g. GUI, other things are addons), but a base install will run you about 800MBish
- emersonrsantos 7y agoSounds like Fuzix [1] - it fits in a 720kb diskette but it's for 8-bit processors. [1] http://www.fuzix.org http://www.fuzix.org
- steffenfrost 7y agoWhat is a floppy disk?
- wiz21c 7y agohow old are you ? :-)
- o-__-o 7y agoThere are people alive in the industry today who have never seen a floppy disk. CDROMS Too but because of DVDs and BDs they are still in recent memory
- rhoyerboat 7y ago..im suddenly seeing inspiration to hook up a modem to a 12" turntable output and see what kind of compression ..
- wiz21c 7y agoyeah, i know, i didn't mean any disrespect. I grew with floppy disk (5.25 inches) and, yeah, it's perfectly normal (and fortunate) and the people have forgotten them. AFAIAC, I have fond memories of them : the sound of the drives (anybody remembers Locksmith, CopyII+,... ?), the hope that the copy you made would work (those floppies were not that reliable), my first experience in cracking, etc.
- hpen 7y agoIt's funny that it's an OS for modern hardware yet they use a floppy disk for comparison
- aquabeagle 7y agoThey just mean the Save icon.
- mrtweetyhack 7y ago"take advantage of modern hardware, (2) fit on a single floppy disk" that's kinda funny using the works modern hardware and floppy disk together. Tell me where you would even buy a floppy disk or a floppy disk drive.
- ilaksh 7y agoSounds a little like Puppy Linux or Tiny Core. One interesting thing was that he wants it to be modern but fit on a floppy disk. Modern computers support USB storage which of course is orders of magnitude faster and larger than floppy disks.
- userbinator 7y agoNot exactly Unix-like, but there's this: http://menuetos.net/ http://menuetos.net/ ...which seems to imply that you're going to need a more efficient language than "traditional" C/C++ if you want to fit more functionality on a single floppy, although given that early UNIX was written in C/Asm, I wonder how much of it is due to bloat/unnecessary/extra abstraction than the choice of language itself.
- PeCaN 7y agoQNX 4 was mostly written in C and the demo disk fit on a single floppy and included the whole system including a TCP/IP stack, drivers for a few common network adapters, a GUI, a web browser (with javascript), and various demo applications. Granted, I think it's probably easier to limit size (and more importantly, complexity) by using assembly language, it's by no means necessary. Lately I've been exploring minimizing complexity by using less-capable text editors like ed and notepad.
- peter_d_sherman 7y agoFirst, I think this is a great idea, and I second your idea! But, there's sort of a larger problem at stake here with operating systems, and that is the "archaeological WHY". You see, the way Operating Systems classes are typically taught at university is that you are given an already working, already functional Operating System, which might be as "simple" (a term I use loosely, because it's relative) as Minix. (Minix is not simple compared to DOS, DOS is not simple compared to CP/M, etc.) But the thing is, while you learn about the different parts of an already functional (multi-functional, because it has many functions) Operating System, you never really learn about the WHY, the reason why, the problem why all of that functionality, all of those systems and subsystems, were established in the first place. In other words, let's say I have a computer with no OS. Bare metal. And I want the simplest piece of functionality to make my life a little bit easier, like let's say, a simple file system, the ability to run a C compiler, and the ability to use simple commands like "ls", "dir", etc. Now, that ignores all sorts of other functionality, such as threads, multitasking, locks, IPC, sockets, memory management, GUI, etc., etc. But, it would allow a greater understanding of the "archaeological WHY". Once that understanding is firmly solidified, we could explore the next problem on our road to creating a modern, more complex OS. The WHY of that next problem, and the solution to it (increasing in complexity, but building commensurate understanding!) at every step. OK, I'm rambling! But I like your idea and greatly endorse it!
- ksec 7y ago>You never really learn about the WHY, the reason why, This isn't just in Operating System, or Programming but Computer Technology in general. Unlike other Engineering courses from AeroSpace to Mechanical Engineering, which explains everything from basic theory to practice and how we evolve to current design and current ( likely slightly outdated ) industry practice.
- commandersaki 7y agoI think a great perspective on the "WHY" is one of the recollections by Dijkstra: https://www.cs.utexas.edu/users/EWD/ewd13xx/EWD1303.PDF https://www.cs.utexas.edu/users/EWD/ewd13xx/EWD1303.PDF
- auvi 7y agois there a git repo of nanix?
- keyle 7y ago> (1) take advantage of modern hardware, (2) fit on a single floppy disk I did laugh at this.
- ivanfon 7y agoOT: is the thin white text difficult to read on the blue background for anyone else?
- swetland 7y agoIf folks want to experiment with a tiny, bare-bones unix-y OS on relatively modern platforms, xv6 (used as a teaching OS at MIT) is ~10kloc of C for the kernel and a handful of userland programs: https://github.com/mit-pdos/xv6-public https://github.com/mit-pdos/xv6-public More information, docs, etc: https://pdos.csail.mit.edu/6.828/2014/xv6.html https://pdos.csail.mit.edu/6.828/2014/xv6.html A few years back I did a quick port of it to x86-64 as a project to learn more about 64bit intel (having been in the ARM world for some time) which was fun: https://github.com/swetland/xv6 https://github.com/swetland/xv6
- klhugo 7y agoThey manage to put "take advantage of modern hardware" and "fits in a floppy disk" in the same sentence. Nostalgic feelings right now.