News for hackers. Stuff that matters.

Ask HN: WASM Terminal Emulator Status?

In theory, could one "port all of linux" and create a terminal that runs in a browser and uses localstorage as the hard drive with ls and more and cat, vim etc. commands that all work? (Like xterm.js but real)

How far could you take this? Could I get the entire golang toolchain to work and compile a simple main.go program from within this WasmOS terminal?

( 4 comments | on HN )
Re:Ask HN: WASM Terminal Emulator Status? by FragenAntworten on Sunday May 26, 2024 @02:27PM (#40484276)
Re:Ask HN: WASM Terminal Emulator Status? by andrewfromx on Sunday May 26, 2024 @10:10PM (#40487029)
https://cartesi-machine.surge.sh/ is so cool!

~ # df -h

Filesystem Size Used Available Use% Mounted on

/dev/root 63.7M 54.8M 8.9M 86% /

devtmpfs 23.4M 0 23.4M 0% /dev

tmpfs 24.4M 0 24.4M 0% /dev/shm

Re:Ask HN: WASM Terminal Emulator Status? by andrewfromx on Sunday May 26, 2024 @10:10PM (#40487034)
is that 8.9M mine? from localstorage??
Re:Ask HN: WASM Terminal Emulator Status? by noergl on Tuesday May 28, 2024 @05:37AM (#40498995)
Maybe have a look at https://github.com/ktock/container2wasm, it most likely could boot into a customized container with all golang tools installed.