?

Log in

No account? Create an account
Adventures in Engineering
The wanderings of a modern ronin.

Ben Cantrick
  Date: 2007-06-09 01:29
  Subject:   Ensuring garbage collection of objects in perl.
Public
  Mood:employed
  Music:Underworld - Pearl's Girl
  Tags:  perl, programming, reddit

Perl's garbage collector counts references. When the count reaches zero (which means that no one has a reference), Perl reclaims the entity. The approach is simple and effective. However, circular references (when object A has a reference to object B, and object B has a reference to object A) present a problem. Even if nothing else in the program has a reference to either A or B, the reference count can never reach zero. Objects A and B do not get destroyed. If the code creates them again and again (perhaps in a loop), you get a memory leak. The amount of memory allocated by the program increases without a sensible reason and can never decrease. This effect may be acceptable for simple run-and-exit scripts, but it's not acceptable for programs running 24x365, such as in a mod_perl or FastCGI environment or as standalone servers.

http://www.perl.com/pub/a/2007/06/07/better-code-through-destruction.html
Post A Comment | | Link



Ben Cantrick
  Date: 2007-06-09 13:23
  Subject:   Back To The Future mod for GTA:VC
Public
  Mood:amused
  Music:AirWolf main theme
  Tags:  metafilter



Back to the Future: Hill Valley is a full conversion Mod, being made for Grand Theft Auto: Vice City. BTTF: Hill Valley will allow the player to re-experience all the great moments from the films. It’s the modders goal to not stray too far from the original story line; while still adding in new content to the game that enhances the game experience. You can relive one of the best movies of all time, in the outstanding game play of the Sandbox hit, Grand Theft Auto: Vice City. This mod is sure to bring countless hours of fun to anybody who enjoyed the movies.

http://mods.moddb.com/8553/gta-back-to-the-future-mod/


See also, Knight Rider: San Andreas and Grand Theft Auto: A-Team
Post A Comment | | Link






browse
May 2015