Ponder.cat
  • Communities
  • heart
  • search
    • Login
    • Sign Up
    • Communities

    • heart
      Support Lemmy
    • search
      Search

    • Login
    • Sign Up
    Gollum@feddit.org to Programmer Humor@programming.dev · 4 months ago

    Another smart move

    feddit.org

    message-square
    114
    fedilink
    966

    Another smart move

    feddit.org

    Gollum@feddit.org to Programmer Humor@programming.dev · 4 months ago
    message-square
    114
    fedilink
    • tgm@lemmy.world
      link
      fedilink
      English
      arrow-up
      8
      ·
      4 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
        4 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
        ·
        4 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
          ·
          4 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
        arrow-down
        2
        ·
        4 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: !programmer_humor@programming.dev

    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.

    • 916 users / day
    • 4.04K users / week
    • 10.1K users / month
    • 18K users / 6 months
    • 1 local subscriber
    • 24.4K subscribers
    • 909 Posts
    • 16.3K Comments
    • Modlog
    • mods:
    • adr1an@programming.dev
      cake
    • Feyter@programming.dev
    • BurningTurtle@programming.dev
    • Pierre-Yves Lapersonne@programming.dev
    • UI: unknown version
    • BE: 0.19.8
    • Modlog
    • Instances
    • Docs
    • Code
    • join-lemmy.org