3 ms·
This memory model would be possible and practical without references. mut off by default, nice. pure by default, nice. Allocate everything on the stack (hopeful
by rurban 7y ago
This memory model would be possible and practical without references.
mut off by default, nice. pure by default, nice.
Allocate everything on the stack (hopefully with overflow checks unlike rust), but change internally to heap allocation with automatic scope tracking and deallocation (easy with gcc or clang). copy by default.
But with threads and refs you need more than that, namely ownership tracking and compile-time errors on wrong argument attributes (mut, ref).
Imho V does nothing of that. To ensure concurrency safety, like in Pony.
And haven't checked if stack overflows are caught on recursive calls, or if tail call conversion is done, to make it practical even with the stack limitations.
What I really liked of V was the OO system.