Remix.run Logo
▲ A real Linux kernel, compiled to WebAssembly(github.com)
8 points by DonAtimator 5 days ago | 4 comments
▲Waraqa 5 minutes ago | parent | next [-]

If I write any app name, it will automatically start apt-get install that app. Ctrl + C doesn't stop it. Are there different shortcuts?

▲d33 10 minutes ago | parent | prev | next [-]

Awesome! I'd love to see userspace work in wasm too though. Someone once did a PoC, but scheduling processes was a pain - AFAIK noone knows how to force preemption?

https://joelseverin.github.io/linux-wasm/

▲loftsy 9 minutes ago | parent | prev | next [-]

Seems to me that Replit should be using something like this rather than running your app remotely.

▲DonHopkins 3 minutes ago | parent | prev [-]

Another approach to running entire operating systems in the web browser is to use the browser's JavaScript => native code JIT with an instruction set emulator that JITs to JavaScript layered on top, to achieve higher performance than you can with WASM because the JIT gets to measure and optimize the code you're actuall running.

Here it is running a real Unix on a PDP-7, JIT compiled to JavaScript, that's then JIT compiled to native code, based on David Ungar's Korz, which is the continuation of his foundational work on Self:

https://hyperties.org/cabinet/systems/pdp-7-unix/

Here's how the PDP-7 emulator with Korz JIT compiler rubs Forth, PIXIE, Unix, and other stuff, also a Korz JIT Apple ][ emulator running Little Computer People:

Forth Day Talks: Mitch Bradley, PDP-7 Forth, Don Hopkins, PDP-7 and Apple ][ Emulator:

https://www.youtube.com/watch?v=k2pwJ294r8o

Forth Day Demo to go with the talk:

https://www.youtube.com/watch?v=I-Rf3XP_D0g

More about PDP-7 Forth:

https://github.com/SimHacker/WillWrightShowForFood/blob/main...

Lots more about Korz:

https://github.com/SimHacker/moollm/blob/main/designs/korz