3 ms·
Well, even Chrome OS and Firefox OS don't have their own kernels; they run on top of Linux. If you were to build a Python OS, you'd probably start by writing P
by amyjess 12y ago
Well, even Chrome OS and Firefox OS don't have their own kernels; they run on top of Linux.
If you were to build a Python OS, you'd probably start by writing PID 1 in Python. It would be a Python init, starting services written in Python, running gettys written in Python, and you'd log into a shell written in Python.
Hmm... I can actually see myself writing an init system in Python... (hell, I did exactly that at my last company.... I'd have to rewrite it from scratch, but that's no big deal...)
Great, I think I've found a new rabbit hole.
- voltagex_ 12y agoMessage me if you start this!
- pygy_ 12y agohttps://github.com/justincormack/ljsyscall https://github.com/justincormack/ljsyscall is just that, but for Lua. FFI to the kernel on Linux, NetBSD Rump kernels and even bare on Xen.
- e12e 12y agoI wonder how much tweaking supervisord[1] would need to be suitable as a init replacement/for running as PID 1? Incidentally, I also came across [2] -- which I wasn't aware of. [1] http://supervisord.org/ http://supervisord.org/ [2] https://www.python.org/dev/peps/pep-3143/ https://www.python.org/dev/peps/pep-3143/ https://pypi.python.org/pypi/python-daemon https://pypi.python.org/pypi/python-daemon