News for hackers. Stuff that matters.
Re:Duetto: a C++ compiler for the Web going beyond Emscripte... by angersock on Thursday October 31, 2013 @12:35PM (#6647811)
From the link:

"Since I do not expect native platforms (i.e. GLibc) to preallocate gigs of memory at application startup to make it faster when dynamic memory is actually used, I do not expect this from a compiler for the JavaScript target either."

So, it would actually make very good sense to have the thing slab allocate a big honking array upfront, and then manage it with brk/sbrk/malloc, and perhaps just add more memory as needed.

Like, if we're going to be writing C/C++ in the browser, why not do this? Why make us deal with the GC at all?

There are no comments on this comment yet.