typeswitch,
@typeswitch@gamedev.lgbt avatar

is stack allocation (including call frames & locals) just a game of russian roulette ... ?

i can't be the only one who thinks this is weird.

typeswitch,
@typeswitch@gamedev.lgbt avatar

heap allocation: sophisticated algorithms to manage both small and large allocations, virtual memory with page swapping, memory protection, garbage collection & reference counting,

stack allocation: whistles very loudly

typeswitch,
@typeswitch@gamedev.lgbt avatar

my other favorite aspect of the stack is how it interleaves return code addresses with local variables. he he he ... nothing could possibly go wrong 🙃

exa,
@exa@mastodon.online avatar

@typeswitch it used to be pretty much normal to have 2 or 3 dedicated stacks for different purposes (see e.g. prolog machines). Kinda killed by (among other factors) x86's single SP reg. C and now LLVM&rusts don't help much either.

I hope we could see some cool new multistack code on risc-v (no big network effects yet, and there is no dedicated stack support needed in the cpu)

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • GTA5RPClips
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • Durango
  • cubers
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • ngwrru68w68
  • kavyap
  • tacticalgear
  • ethstaker
  • JUstTest
  • InstantRegret
  • Leos
  • normalnudes
  • everett
  • khanakhh
  • osvaldo12
  • cisconetworking
  • modclub
  • anitta
  • tester
  • megavids
  • provamag3
  • lostlight
  • All magazines