GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    The MILF Messiah (lunarised@whinge.town)'s status on Tuesday, 16-Apr-2024 11:23:58 JST The MILF Messiah The MILF Messiah
    in reply to
    • teknomunk
    • karna :flipflop: :buffsuki:
    • charliebrownau
    • binkle
    • hazlin no plap pirate
    @karna @teknomunk @binkle @charliebrownau @hazlin what is the sam hell is this alarmist hogwash :o
    In conversation Tuesday, 16-Apr-2024 11:23:58 JST from whinge.town permalink
    • Embed this notice
      charliebrownau (charliebrownau@poa.st)'s status on Tuesday, 16-Apr-2024 11:23:59 JST charliebrownau charliebrownau
      in reply to
      • teknomunk
      • karna :flipflop: :buffsuki:
      • binkle
      • hazlin no plap pirate
      @teknomunk @binkle @karna @hazlin Python
      Rust
      SystemD

      All a subversion weapon
      In conversation Tuesday, 16-Apr-2024 11:23:59 JST permalink
    • Embed this notice
      karna :flipflop: :buffsuki: (karna@poa.st)'s status on Tuesday, 16-Apr-2024 11:23:59 JST karna :flipflop: :buffsuki: karna :flipflop: :buffsuki:
      in reply to
      • teknomunk
      • charliebrownau
      • binkle
      • hazlin no plap pirate

      @charliebrownau @teknomunk @binkle @hazlin So true, let's all use plan9

      In conversation Tuesday, 16-Apr-2024 11:23:59 JST permalink

      Attachments


      1. https://i.poastcdn.org/a22660bd163d3f9358bcaee6a642fd735d8f5fd24d9f4e18b69f89d0ccda09b1.png
    • Embed this notice
      hazlin no plap pirate (hazlin@shortstacksran.ch)'s status on Tuesday, 16-Apr-2024 11:24:01 JST hazlin no plap pirate hazlin no plap pirate
      in reply to
      • karna :flipflop: :buffsuki:
      • binkle
      @karna @binkle huh, I had assumed that, reference counting meant that you didn't have a separate gc event.

      For example, every time you deference, and there for, decrement the counter, there was a check to see if it was zero.
      In conversation Tuesday, 16-Apr-2024 11:24:01 JST permalink
    • Embed this notice
      karna :flipflop: :buffsuki: (karna@poa.st)'s status on Tuesday, 16-Apr-2024 11:24:01 JST karna :flipflop: :buffsuki: karna :flipflop: :buffsuki:
      in reply to
      • binkle
      • hazlin no plap pirate

      @hazlin @binkle I'll be honest, I'm getting out of my depth but I would assume there is a deallocation when the reference count of an object hits 0 it would be deallocated (assuming no cyclical references) but this is python, so for all I know the deallocations of objects with 0 reference counts might be queued up and done at certain moments. The gc.collect call is more to try and force collection of objects that have cyclical references that may no longer be valid references (look up generational thresholds or variations of that alongside python to find more info on that)

      In conversation Tuesday, 16-Apr-2024 11:24:01 JST permalink
    • Embed this notice
      teknomunk (teknomunk@apogee.polaris-1.work)'s status on Tuesday, 16-Apr-2024 11:24:01 JST teknomunk teknomunk
      in reply to
      • karna :flipflop: :buffsuki:
      • binkle
      • hazlin no plap pirate
      @karna @binkle @hazlin

      Going to drop in here to give what I know about the subject. I don't have any particular insight into python.

      When using referencing counting, you can release the memory to the allocator as soon as they reach zero references or you can queue them up for later releasing. This works reasonably well, but as you pointed out: cycles exist and make reference counting fail.

      A tracing garbage collector is one of the solutions for automaticly releasing memory that is no longer needed. It traces the graph of every memory allocation that is still reachable from global variables and the stack and marks everything that is reachable and throws away everything else.

      As I under it, python mostly uses reference counting, but falls back to a tracing garbage collector for dealing with cycles.
      In conversation Tuesday, 16-Apr-2024 11:24:01 JST permalink
    • Embed this notice
      karna :flipflop: :buffsuki: (karna@poa.st)'s status on Tuesday, 16-Apr-2024 11:24:02 JST karna :flipflop: :buffsuki: karna :flipflop: :buffsuki:
      in reply to
      • binkle
      • hazlin no plap pirate

      @binkle @hazlin Such is life in the carnival of horrors that is python. Im not going to get into the details but roughly speaking theres reference counting being done to inform the automatic garbage collection, but when that isn't suitable (think reference cycles, the collector not being called soon enough when left to its own devices, etc.), you could, for example, do some simple manual garbage collection by calling the python's garbage collector manually (hence manual garbage collection)

      import gc gc.collect() # or disable it entirely with gc.disable()

      PS I hate python

      In conversation Tuesday, 16-Apr-2024 11:24:02 JST permalink
    • Embed this notice
      hazlin no plap pirate (hazlin@shortstacksran.ch)'s status on Tuesday, 16-Apr-2024 11:24:03 JST hazlin no plap pirate hazlin no plap pirate
      in reply to
      • karna :flipflop: :buffsuki:
      • binkle
      @karna @binkle that worked!

      I didn't know del was a thing in python...
      In conversation Tuesday, 16-Apr-2024 11:24:03 JST permalink
    • Embed this notice
      karna :flipflop: :buffsuki: (karna@poa.st)'s status on Tuesday, 16-Apr-2024 11:24:03 JST karna :flipflop: :buffsuki: karna :flipflop: :buffsuki:
      in reply to
      • binkle
      • hazlin no plap pirate

      @hazlin @binkle Trust me when I say manual garbage collection in python is not a fun rabbit hole, especially venturing beyond del

      In conversation Tuesday, 16-Apr-2024 11:24:03 JST permalink
    • Embed this notice
      binkle (binkle@clubcyberia.co)'s status on Tuesday, 16-Apr-2024 11:24:03 JST binkle binkle
      in reply to
      • karna :flipflop: :buffsuki:
      • hazlin no plap pirate
      @karna @hazlin coming from a world where C/C++ is the norm, something about the phrase "manual garbage collection" makes my skin itch
      In conversation Tuesday, 16-Apr-2024 11:24:03 JST permalink
    • Embed this notice
      hazlin no plap pirate (hazlin@shortstacksran.ch)'s status on Tuesday, 16-Apr-2024 11:24:04 JST hazlin no plap pirate hazlin no plap pirate
      in reply to
      • karna :flipflop: :buffsuki:
      • binkle
      @karna @binkle ahhh, that killed the last value feature in my long running RPEL xD
      In conversation Tuesday, 16-Apr-2024 11:24:04 JST permalink
    • Embed this notice
      karna :flipflop: :buffsuki: (karna@poa.st)'s status on Tuesday, 16-Apr-2024 11:24:04 JST karna :flipflop: :buffsuki: karna :flipflop: :buffsuki:
      in reply to
      • binkle
      • hazlin no plap pirate

      @hazlin @binkle Doesnt it get reassigned after your next assignment? Or maybe you need to do

      del _

      ?

      In conversation Tuesday, 16-Apr-2024 11:24:04 JST permalink
    • Embed this notice
      hazlin no plap pirate (hazlin@shortstacksran.ch)'s status on Tuesday, 16-Apr-2024 11:24:05 JST hazlin no plap pirate hazlin no plap pirate
      in reply to
      • binkle
      @binkle
      def binkle_function(**args):
      >>>pass
      In conversation Tuesday, 16-Apr-2024 11:24:05 JST permalink
    • Embed this notice
      karna :flipflop: :buffsuki: (karna@poa.st)'s status on Tuesday, 16-Apr-2024 11:24:05 JST karna :flipflop: :buffsuki: karna :flipflop: :buffsuki:
      in reply to
      • binkle
      • hazlin no plap pirate
      @hazlin @binkle def _(**kwargs): ...
      In conversation Tuesday, 16-Apr-2024 11:24:05 JST permalink
    • Embed this notice
      binkle (binkle@clubcyberia.co)'s status on Tuesday, 16-Apr-2024 11:24:06 JST binkle binkle
      an entire day devoted to finding out "yeah no this function does nothing and it never will" :pleadhelp:
      In conversation Tuesday, 16-Apr-2024 11:24:06 JST permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.