• CanadaPlus@lemmy.sdf.org
    link
    fedilink
    arrow-up
    2
    ·
    1 day ago

    It’s still mentioned as one of the main approaches to garbage collection in the garbage collection Wikipedia article.

    • Ethan@programming.dev
      link
      fedilink
      English
      arrow-up
      1
      ·
      9 hours ago

      Ok, I concede the point, “garbage collection” technically includes reference counting. However the practical point remains - reference counting doesn’t come with the same performance penalties as ‘normal’ garbage collection. It has essentially the same performance characteristics of manual memory management because that’s essentially what it’s doing.

      • CanadaPlus@lemmy.sdf.org
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        9 hours ago

        That may well be. I’d say I understand the basic concepts, but people in this thread have more detail on the specifics and how they work out in practice than me.

        It does make me wonder why everyone hasn’t been doing it, if there’s no drawbacks, though.