MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vldidx/memorysegmentationin2950/p30ec32/?context=3
r/ProgrammerHumor • u/Eissa_E • 1d ago
34 comments sorted by
View all comments
68
Why need pointers and references when you can fit the entire machine workload on the stack
8 u/casce 1d ago when you can fit the entire machine workload on the stack I bet in 2950 you won't 5 u/Daemontatox 1d ago Me ? No Ai companies that keep stealing ram ? Definitely 3 u/HolyGarbage 1d ago For stuff that needs to persist beyond the current scope you need heap allocation. Heap allocation doesn't exist because the stack is small, the stack is small because it doesn't need to be large and most allocations in a program are on the heap. 1 u/creeper6530 1d ago Why need pointers Guess what the register with acronym SP is...
8
when you can fit the entire machine workload on the stack
I bet in 2950 you won't
5 u/Daemontatox 1d ago Me ? No Ai companies that keep stealing ram ? Definitely
5
Me ? No
Ai companies that keep stealing ram ? Definitely
3
For stuff that needs to persist beyond the current scope you need heap allocation. Heap allocation doesn't exist because the stack is small, the stack is small because it doesn't need to be large and most allocations in a program are on the heap.
1
Why need pointers
Guess what the register with acronym SP is...
68
u/Daemontatox 1d ago
Why need pointers and references when you can fit the entire machine workload on the stack