Most fancy languages think C's "stack" is barely functional. They need a much more complex concept of stack, and they use it for far less. It leads to some strange conversations when the word "stack" means radically different things to different people.
-
-
-
And then there's the "stack" in "full stack coder". GTFO and make up your own word for "tottering jenga tower of babel"
- 2 more replies
New conversation -
-
-
Oddly enough, the CPU of my first computer (TI 99/4a) didn’t have hardware support for a stack https://en.m.wikipedia.org/wiki/Texas_Instruments_TMS9900 …
-
The special stack and branching instructions in other 8-bit CPUs are really just syntactic sugar and give a bit better performance in some cases ;) E.g. a Z80 jump could just be "LD PC,nnnn" (if PC would be 'public'), or PUSH HL: "LD (SP),L; DEC SP; LD (SP),H; DEC SP" etc...
- 2 more replies
New conversation -
-
-
Not to be confused with
@bratton's The Stack, which is one of the fullest, grandest views of how computer science collides with the world. https://mitpress.mit.edu/books/stackThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
My style of programming, especially C++ (and JavaScript for some reason?), is separating my code into "Containers" and "Functions". While the former is typical OOP, the latter treats stack frames like object instances. C++ benefit: "members" (parameters) can be read-only (const)!
-
The point of the tweet is that stack frames are very good at encapsulating state. So often I see people trying to fight the stack with over-aggressive OOP. They should let the stack frame do the work when the code is "push question answer pops synchronously at end of function".
End of conversation
New conversation -
-
-
Hey my Fortnite account is not logging in I tried to restart my password but didn’t work I have a default account can I get things because I spent lots of money on this game
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Check out "Thinking Forth by Leo Brodie". One of the best books on Computers
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
This Tweet is unavailable.
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.