r/javascript • • Sep 04 '18

Windows 2000 running in the browser using WebAssembly

https://bellard.org/jslinux/vm.html?url=https://bellard.org/jslinux/win2k.cfg&mem=192&graphic=1&w=1024&h=768
363 Upvotes

87 comments sorted by

View all comments

23

u/marocu Sep 04 '18

Wow. Booted up on my S8 and appears to be fully usable. Had no idea web assembly was this powerful.

5

u/AegisCZ Sep 04 '18

You can translate llvm ir to it (C code, Rust etc...). It pretty much can do anything js can

9

u/trakam Sep 04 '18

Apart from have a decent DOM api yet

8

u/[deleted] Sep 04 '18

I know this is /r/javascript but I seriously can't wait to do full stack Ruby one day

6

u/dont_forget_canada Sep 04 '18

Technically you can pass weapper methods around Dom functionality that you want to your wasm setup function from JavaScript. The thing is, at least how I understand it, calling JS from wasm is quite slow. Not sure if this extends to calling webgl being slow from wasm too.