hot take: if C++ was truly committed to zero cost abstractions, functions would have opt-in reentrancy, the same way classes have opt-in vtables
-
-
For a long while, being a massive Forth entheusiast, I thought Forth was something of a local optimum for languages targeting early 8-bit CPUs. But, I'm beginning to realize that's not the case; believe it or not, it's compiled BASIC that is the local optimum.
-
And the reason is exactly what you mentioned above: stack accesses are just plain expensive (even push and pop!) compared to a straight absolute memory reference. And with BASIC's general lack of local variables, all you *have* are global/absolute memory references. :)
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.