larsbrinkhoff / lbForth

Self-hosting metacompiled Forth, bootstrapping from a few lines of C; targets Linux, Windows, ARM, RISC-V, 68000, PDP-11, asm.js.
GNU General Public License v3.0
418 stars 112 forks source link

IE11 imul polyfill #42

Closed pipcet closed 7 years ago

pipcet commented 7 years ago

Does this work on IE? It appears still to validate as asm.js in js24.

larsbrinkhoff commented 7 years ago

Thank. I can't check until tomorrow.

larsbrinkhoff commented 7 years ago

It works in IE11.

But I think Firefox slowed down. Without the polyfill, it seems to take about 0.5 seconds from "lbForth" to "ok". With the polyfill, more like 1 second.

Similar with Chrome.

larsbrinkhoff commented 7 years ago

Or maybe not! I tried reloading many times. I do see some apparent slowdown sometimes, but it seems to go away when I reload the page again. So maybe it's just due to some cache being warmed up.

larsbrinkhoff commented 7 years ago

I measured with console.time() and console.timeEnd(), and things seem good.