UmU
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Gollum@feddit.org to Programmer Humor@programming.dev · 3 months ago

Another smart move

feddit.org

external-link
message-square
114
fedilink
1K
external-link

Another smart move

feddit.org

Gollum@feddit.org to Programmer Humor@programming.dev · 3 months ago
message-square
114
fedilink
  • tgm@lemmy.world
    link
    fedilink
    English
    arrow-up
    8
    ·
    3 months ago

    Haven’t heard of the stack address thing, anyone got a TLDR on the topic?

    • gnutrino@programming.dev
      link
      fedilink
      English
      arrow-up
      25
      ·
      edit-2
      3 months ago

      https://softwareengineering.stackexchange.com/questions/386194/why-do-we-still-grow-the-stack-backwards

      TL;DR: For historical reasons stacks growing down is defined in hardware on some CPUs (notably x86). On other CPUs like some ARM chips for example you (or more likely your compiler’s developer) can technically choose which direction stacks go but not conforming to the historical standard is the choice of a madman.

    • Kidplayer_666@lemm.ee
      link
      fedilink
      arrow-up
      8
      ·
      3 months ago

      Pretty sure that it’s something a long the lines of “stack begins high, grows down, while heap behind low grows high” when they meet, it’s a stack overflow

      • shortrounddev@lemmy.world
        link
        fedilink
        English
        arrow-up
        5
        ·
        3 months ago

        They don’t have to meet, the max stack size is defined at compile time

    • rockSlayer@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      3 months ago

      Dynamic stacks are pretty common in the most popular scripting languages, but considered bad practice from folks who use systems languages

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 721 users / day
  • 4.53K users / week
  • 8.97K users / month
  • 17.3K users / 6 months
  • 2 local subscribers
  • 23.1K subscribers
  • 1.25K Posts
  • 39.3K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.9
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org