forgive me if I overlooked something; I only did a quick 1st glance test of ChaiScript (which I find a stunning project btw).
If I implement a tight loop (count to 1 million and sum everything up, for instance), I seem to notice a new shared_ptr for every variable assignment in the loop. That’s cool, this is how we do things in C++. Still, I’d like to be able to provide my own allocator for all memory management during an eval() call. There are allocation methods that beat malloc / free by a factor of 1000. Plus it’d help in cases where memory allocation is a tricky business (embedded systems with dubious or restricted heap memory or strictly non-blocking realtime requirements).
So please: can we have custom allocators?