minibase | mrsh | |
---|---|---|
1 | 2 | |
179 | 501 | |
0.6% | 0.6% | |
1.8 | 2.4 | |
4 months ago | about 1 year ago | |
C | C | |
GNU General Public License v3.0 only | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
minibase
-
Portable Executable
I remember simple use cases for clone() such as spawning child processes with just enough shared resources to execve(). I remember reading a lot of old emails from Torvalds about it, can't find them anymore.
I used to value portability but now I believe in using Linux everywhere and for everything. I like OpenBSD too but Linux is the stable one you can build anything on. What I wanted to eventually accomplish is a 100% freestanding Linux user space with no libraries at all. Maybe boot straight into the program I want to use, just like we can pass init=/usr/bin/bash in the kernel command line. How far could this go? Using nothing but system calls it's actually possible to get a framebuffer and use software renderering to draw some graphics. I'm guessing pretty far.
By starting from scratch like this it's possible to fix all the historical problems with our systems. For example, I think it's unacceptable when libraries keep global state. This can't be fixed without getting rid of libc and its buffers and caches and errno. Removing this cruft would actually simplify a threads implementation. And then there's completely insane stuff that should be dropped like .init and .fini sections:
https://blogs.oracle.com/solaris/init-and-fini-processing-wh...
A similar statically-linked user space project I found years ago:
https://github.com/arsv/minibase
mrsh
-
Writing a shell
If you want to get to a working shell a bit faster, there are shell libraries you can use.
-
Planning on installing Guix, how to do a minimal build (i.e. no coreutils)?
Oh that's interesting. Do you know which shell they chose for /bin/sh? I think https://github.com/emersion/mrsh would be a good candidate
What are some alternatives?
liblinux - Linux system calls.
shc - Shell script compiler
s6 - The s6 supervision suite.
goat - POSIX-compliant shell movement boosting hack for real ninjas (aka `cd x` and `cd ...`)
dinit - Service monitoring / "init" system
fet.sh - 🐢 a fetch written in posix shell without any external commands (sponsored by https://git.io/kiwmi)