Code compilation alternative to Function()

Brendan Eich brendan at mozilla.com
Sat Jan 11 22:54:55 PST 2014


fixplzsecrets at gmail.com wrote:
> Asm.js programs are larger than equivalent native executables

Not on the (gzipped) wire:

http://mozakai.blogspot.com/2011/11/code-size-when-compiling-to-javascript.html

(Emscripten has improved since then, IINM.)

In memory, the issue isn't executable vs. JS source (asm.js or not), 
since safety is not optional. You'd do better to consider an SFI 
compiler (NaCl or PNaCl) code size than raw executable.

Anyway, I see Sean Silva replied, so I'll stop here.

/be


More information about the es-discuss mailing list