3 ms·
> Genuine question, I don't use stack based langs. How and why not? What languages do you use?
by PrimeMcFly 3y ago
> Genuine question, I don't use stack based langs.
How and why not? What languages do you use?
- dexwiz 3y agoCommon ones like JavaScript, Java, C#, etc. They all have a stack, but aren't stack oriented like Assembly or Forth. The stack in modern languages is abstracted so you don't have to worry about pushing/popping values in a specific order, and you can't explicitly reference it. C and Rust is probably the closest I get with Heap v Stack memory, but even that is not truly stack oriented. https://en.wikipedia.org/wiki/Stack-oriented_programming https://en.wikipedia.org/wiki/Stack-oriented_programming
- PrimeMcFly 3y agoAh gotcha. Thanks.
- toasterlovin 3y agoWas literally reading that wikipedia page last night before bed, so this is all very timely for me.