News for hackers. Stuff that matters.
Re:What does “asm.js optimizations” mean? by CJefferson on Thursday February 19, 2015 @09:54AM (#9074262)
> dlmalloc is cross compiled for you. I might be mincing words, but you make it sound like you have to bring your own allocator. Not so.

Wait, so I don't have to include an allocator in every asm.js project? How do I avoid doing that?

> Non issue. there are compiler flags `-s TOTAL_MEMORY=X` and `-s TOTAL_STACK=X`. Of course, you have to play around with these values otherwise you might not have enough space.

How does that make my complaint a non-issue? I shouldn't have to, in this day and age, manually tune the maximum amount of memory my program will use up front. That what my OS is for, I ask for more memory when I want it. What happens when some user decides to use my app in a sensible, but more memory hungry way, and hits so arbitrary limit I had to set for mobile users?

Of course, someone else replied this second point is now invalid, as asm.js is gaining the ability to grow the heap.

There are no comments on this comment yet.