Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Feature request: Bespoke Garbage Collection  (Read 404 times)

jecowa

  • Bay Watcher
    • View Profile
Feature request: Bespoke Garbage Collection
« on: October 17, 2024, 02:40:01 am »

You know you want it.
Logged

FantasticDorf

  • Bay Watcher
    • View Profile
Re: Feature request: Bespoke Garbage Collection
« Reply #1 on: October 17, 2024, 04:35:38 am »

Yes but i don't know what i want.  :D

What does garbage refer to in this context? Walking along throwing body parts in a wheelbarrow or just randomly dropped items to be dumped into a a bridge compactor?
Logged

jecowa

  • Bay Watcher
    • View Profile
Re: Feature request: Bespoke Garbage Collection
« Reply #2 on: October 17, 2024, 07:49:52 am »

In computer science, garbage collection is a form of automatic memory management. The garbage collector attempts to reclaim memory that was allocated by the program, but is no longer referenced; such memory is called garbage.

It could possibly fix some bugs and maybe prevent some new ones in the future. Putnam has mentioned bespoke garbage collection a couple times as a dream project.
Logged

anewaname

  • Bay Watcher
  • The mattock... My choice for problem solving.
    • View Profile
Re: Feature request: Bespoke Garbage Collection
« Reply #3 on: October 17, 2024, 03:18:01 pm »

Why doesn't properly dereferencing the data already resolve the bugs?

I've seen issues with dfhack routines not removing all references within the DF data structure, and there were/are DF problems with raiding dwarfs and their equipment or squad positions, but in those cases the problem is that not all the references were removed/adjusted.

Garbage collection seems unnecessary since the garbage requires little memory but garbage collection costs CPU cycles.
Logged
Quote from: dragdeler
There is something to be said about, if the stakes are as high, maybe reconsider your certitudes. One has to be aggressively allistic to feel entitled to be able to trust. But it won't happen to me, my bit doesn't count etc etc... Just saying, after my recent experiences I couldn't trust the public if I wanted to. People got their risk assessment neurons rotten and replaced with game theory. Folks walk around like fat turkeys taunting the world to slaughter them.