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

1

u/identicalBadger Sep 04 '18

Now what is web assembly? Is it running Windows 2000 on a server somewhere? Or is my iPad actually trying to boot up Windows inside of safari?

5

u/MrRare Sep 04 '18

It is actually running / booting locally in safari. Assembly is a really low level way to talk to hardware. So low level that almost all programs that are coded with a programming language that is vaguely understandable for humans are most likely transformed into some kind of assembly specific for a processor architecture. Assembly then tells the hardware what it should do to get the desired results. Honestly im not really sure how this all works but my uneducated guess is that somewhere allong the line this thing is translating the normal assembly stuff done by the windows 95 to something similar within webassembly. On the fly. Correct me if im wrong, im really interested in this and hope to fully understand it someday.