3 ms·
I think there’s a caveat that the language needs to support inline assembly.
by davemp 9y ago
I think there’s a caveat that the language needs to support inline assembly.
- Touche 9y agoIt doesn't. Even JavaScript supports preallocating.
- masklinn 9y agoNot really. You can preallocate a bunch of objects in a big freelist (or multiple freelists) and manipulate that.
- davemp 9y agoManual memory management is just one aspect of performance. If you want to compete with C you’re gonna have to be able to hand tune some bottlenecks. The compiler isn’t going to produce optimal code.