News for hackers. Stuff that matters.
Re:Duetto: a C++ compiler for the Web going beyond Emscripte... by chrismorgan on Thursday October 31, 2013 @11:16AM (#6647264)
That cnontetris example seemed to be having dire effects on Firefox's memory usage. It was using 21% of my 4GB, but then when I started that it went jumping up to over 80% and back down again and back and forth. Is it really causing the allocation and freeing of over 2GB of RAM just like that every so often?

Oh, by the way—the game was entirely unplayable for reasons likely to be related to this memory thrashing.

Re:Duetto: a C++ compiler for the Web going beyond Emscripte... by apignotti on Thursday October 31, 2013 @11:29AM (#6647361)
Our memory management approach is still not tuned and optimized. There are quite a few low hanging fruits that should provide great improvements, but we have not yet implemented them - Alessandro of Leaningtech
Re:Duetto: a C++ compiler for the Web going beyond Emscripte... by chrismorgan on Thursday October 31, 2013 @11:34AM (#6647393)
Would you mind if I suggested that arbitrarily using a couple of gigabytes of memory like that was a fairly severe problem? :-)

Seriously, I would like to see a warning put on links to that example to the effect that at present it will make your browser use up to 2½ GB more RAM and will thrash your memory. Because it did render my browser (and to a lesser degree my system) unresponsive for a couple of minutes while things swapped.

Re:Duetto: a C++ compiler for the Web going beyond Emscripte... by apignotti on Thursday October 31, 2013 @11:46AM (#6647470)
You are absolutely right, it is a severe problem and I apologize for this. We are adding a warning on our examples page right now.