News for hackers. Stuff that matters.
Re:Running Lua in a browser via Emscripten by mwcampbell on Thursday May 30, 2013 @05:32PM (#5795378)
To my surprise, lua.vm.js gzipped is about the same size (within 2K) as my Win32 Lua DLL build gzipped. The latter has the Microsoft C runtime statically linked, making the comparison more fair IIUC, since code built with Emscripten has to include a libc implementation.

This finding demonstrates that asm.js isn't significantly less efficient than LLVM bitcode or native code, even though it's text.

Re:Running Lua in a browser via Emscripten by takeoutweight on Thursday May 30, 2013 @07:08PM (#5795839)
By "efficient" I assume you mean the object code is compact, filesize-wise? It's fairly typical that byte-code or otherwise high-level object code is more compact than machine code. For example, Java .class files will be smaller than their equivalent native-compiled object code.