5 comments

[ 2.8 ms ] story [ 23.8 ms ] thread
Writing an x86 emulator to run in javascript on an x86 machine. (although of course this would work on ARM etc. too).

Pretty cool though in all fairness.

I know you're not too interested in performance here, but replacing DataView with a Uint8Array will probably get you a 10x+ win - DataView is extremely slow and V8 can't optimize calls to Program.getUint8(PC) in the same way that it can optimize Program[PC].