logoalt Hacker News

Ultimate-Linux: Userspace for Linux in Pure JavaScript

36 pointsby radeeyatetoday at 2:32 AM7 commentsview on HN

Comments

tzurytoday at 5:32 AM

Check out this:

https://bellard.org/jslinux/vm.html?url=alpine-x86.cfg&mem=1...

and

https://bellard.org/jslinux/

By the famous Fabrice Bellard who is the creator of QuickJS, QEMU, FFMPEG and many other brilliant and fascinating tools!

https://bellard.org/

supermdguytoday at 5:57 AM

Reading the code, I was surprised to see that cd was implemented by calling out to the os library. I assumed that was something the shell or at least userspace handled. At what level does the concept of a “current directory” exist?

show 3 replies
MobiusHorizonstoday at 5:12 AM

Very cool. Good use of quickjs, although it would have been cool if it somehow didn’t need a libc and just used the syscall interface. Makes me want to give that a try.

kalterdevtoday at 5:09 AM

It’s never early to prepare for JavaScript complete takeover.

stx5today at 5:53 AM

[dead]