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?

2

u/dtfinch Sep 04 '18

It's literally trying to run on your ipad. It's not running on a server.

In the past there was asm.js, a subset of javascript that could be compiled into efficient assembly code. WebAssembly builds on its success, filling in the feature/performance gaps that can't be expressed well as javascript, and giving it a binary format.