Hacker News
Ultimate-Linux: Userspace for Linux in Pure JavaScript
pointlessone
|next
[-]
rkeene2
|next
|previous
[-]
[0] https://chiselapp.com/user/rkeene/repository/tuapi/doc/trunk...
tzury
|next
|previous
[-]
https://bellard.org/jslinux/vm.html?url=alpine-x86.cfg&mem=1...
and
By the famous Fabrice Bellard who is the creator of QuickJS, QEMU, FFMPEG and many other brilliant and fascinating tools!
mod50ack
|root
|parent
[-]
This project, on the other hand, is the opposite (and kind of a joke): a set of Linux utilities mostly written in JavaScript.
zsoltkacsandi
|next
|previous
[-]
I am working something similar in Go, and writing an educative blog post series about it: https://serversfor.dev/linux-inside-out/
supermdguy
|next
|previous
[-]
creatonez
|root
|parent
|next
[-]
hnlmorg
|root
|parent
[-]
jasomill
|root
|parent
|next
[-]
On my Fedora system, /usr/bin/cd is just a shell script that invokes the shell builtin:
#!/usr/bin/sh
builtin cd "$@"
I suppose it could be useful for testing whether a directory exists with search permissions for the current user safely in a multithreaded program that relies on the current directory remaining constant.
mattstir
|root
|parent
|next
|previous
[-]
lukeh
|root
|parent
|next
|previous
[-]
semiquaver
|root
|parent
|previous
[-]
mort96
|root
|parent
[-]
But yes, in the BSDs, Linux and Windows, the kernel has a concept of a current working directory.
mos87
|next
|previous
[-]
MobiusHorizons
|next
|previous
[-]
anthk
|next
|previous
[-]
stevekemp
|root
|parent
[-]
https://github.com/briandfoy/PerlPowerTools
I guess there are related projects such as busybox which contain a collection of utilities implemented in a single binary. There are others such as toybox, and various alternatives in different languages, or with different licenses to choose from.
nxobject
|next
|previous
[-]
hxbdbehd
|next
|previous
[-]
This is the Linux Userland reimplemented in JavaScript