News for hackers. Stuff that matters.
Re:LLJS: Low-Level JavaScript by djhworld on Tuesday October 09, 2012 @09:35AM (#4631386)
Can any javascript people explain this piece of code

    const $M = require('memory');
That the compiler outputs as JS? Is the 'require('memory')' something that is native to the JS runtime?
Re:LLJS: Low-Level JavaScript by mbebenita on Tuesday October 09, 2012 @09:39AM (#4631406)
"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.
Re:LLJS: Low-Level JavaScript by djhworld on Tuesday October 09, 2012 @10:12AM (#4631558)
So clients will have to download this to their machines (via CDN?)
Re:LLJS: Low-Level JavaScript by cshesse on Tuesday October 09, 2012 @10:58PM (#4634854)
It looks like if you want the memcheck functionality on the client, memcheck.js must be distributed with your "compiled" javascript code.