Re:Compiling Quake 3 Virtual Machines To JavaScript
by ori_b on Sunday February 16, 2014 @12:15PM
(#7248322)
I'm impressed, but I'm not particularly surprised. The initial code was interpreted, while the new code is JIT compiled. I have no data to back this up, but I suspect that if instead of generating javascript, he generated x86 assembly, you'd see a similar speedup. Possibly a larger one.
[ Parent
| on HN ]
Re:Compiling Quake 3 Virtual Machines To JavaScript
by Scaevolus on Sunday February 16, 2014 @03:22PM
(#7249101)
That's exactly what Quake3 did natively, and it gave a large performance boost.
Re:Compiling Quake 3 Virtual Machines To JavaScript
by inolen1 on Sunday February 16, 2014 @03:26PM
(#7249112)
Right. Pulling from JC's August 16, 1999 .plan (http://floodyberry.com/carmack/johnc_plan_1999.html#d1999081...) when he first wrote the x86 compiler:
Q3demo1 dll: 52.9 Compiled: 50.2 Interpreted: 43.9
Q3demo2 dll: 50.1 Compiled: 46.5 Interpreted: 38.7