Re:LLJS: Low-Level JavaScript
by djhworld on Tuesday October 09, 2012 @09:35AM
(#4631386)
Can any javascript people explain this piece of code
That the compiler outputs as JS? Is the 'require('memory')' something that is native to the JS runtime?
[ Parent
| on HN ]
"require('memory')" gives you back a JS module that's written in LLJS (http://git.io/vHeH2g). It exports several typed array views and a few functions like malloc() / free(). It's all JavaScript, nothing native.
So clients will have to download this to their machines (via CDN?)