Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

How I want my memory managed

by Petruchio (Vicar)
on Dec 09, 2002 at 06:40 UTC ( #218458=poll: print w/ replies, xml ) Need Help??

vote on How I want my memory managed

Reference Counting
[bar] 88/18%
Mark & Sweep (or related GC)
[bar] 97/20%
Beer!
[bar] 266/54%
Other
[bar] 46/9%
497 total votes
Comment on How I want my memory managed
Re: How I want my memory managed
by Zaxo (Archbishop) on Dec 09, 2002 at 07:13 UTC

    I prefer that my memories are not exposed to Management.

    After Compline,
    Zaxo

Re: How I want my memory managed
by mt2k (Hermit) on Dec 09, 2002 at 07:17 UTC
    /me notes that he doesn't want anyone accessing his memory.

    psstt... I'm very scared. I think the new automated poll code reads the chatterbox. People were just discussing this tonight (I believe before the poll came up.). We were talking about perl 6 and all that. /me drops subject and goes off to write the Brain::Memory module, including of course, the putToSleep() and killCells() methods.

Re: How I want my memory managed
by PodMaster (Abbot) on Dec 09, 2002 at 07:30 UTC
Re: How I want my memory managed
by BrowserUk (Pope) on Dec 09, 2002 at 07:33 UTC

    Errrrrrrrrm. I forget?


    Okay you lot, get your wings on the left, halos on the right. It's one size fits all, and "No!", you can't have a different color.
    Pick up your cloud down the end and "Yes" if you get allocated a grey one they are a bit damp under foot, but someone has to get them.
    Get used to the wings fast cos its an 8 hour day...unless the Govenor calls for a cyclone or hurricane, in which case 16 hour shifts are mandatory.
    Just be grateful that you arrived just as the tornado season finished. Them buggers are real work.

Re: How I want my memory managed
by mce (Curate) on Dec 09, 2002 at 09:34 UTC
    The problem with beer management is that your memory decreases, and you need to reboot quite often.
    But hey, I also allows you to forget things you would like to forget.
    ---------------------------
    Dr. Mark Ceulemans
    Senior Consultant
    IT Masters, Belgium

      You want to forget stuff? You need some THC, coded by our very own davorg. That's help you um...

      ... yeah

      ... mmm, chips, I'd love some chips.

      print@_{sort keys %_},$/if%_=split//,'= & *a?b:e\f/h^h!j+n,o@o;r$s-t%t#u'
        You mean it isn't by David Cross? How disappointing.

        -Logan
        "What do I want? I'm an American. I want more."

        This module THC (Tie::Hash::Cannabinol) was the best joke that I found in Perl! ;-P

        Forget stuff? Why not just fnord...

        what was i saying again?

        /jynx pries tongue from cheek...

Re: How I want my memory managed
by vek (Prior) on Dec 09, 2002 at 14:00 UTC
    What was the question again?

    -- vek --
      How I manage my beer want. How I manage my memory leak. How my beer manages my leak. How I want my beer.
Re: How I want my memory managed
by Mr. Muskrat (Abbot) on Dec 09, 2002 at 14:48 UTC

    I forget way more than I should. My brain is entirely too ineffecient at memory management and I would love to let Perl do it. Perl is pretty good at memory management.

    The problem lies in my software to wetware interface. Try as I might, I just haven't been able to get it right. I thought that sending the delta and gamma waves towards my head would suffice. The taint checks are working fine but if an alpha wave gets through Perl coredumps. :( Perhaps if I use an EEG, I would have better results...

Re: How I want my memory managed
by Acolyte (Hermit) on Dec 09, 2002 at 19:43 UTC

    Beer, of course, especially anything from Stone Brewery. One greases the wheels for more relaxed coding (although not at the office). Two or more means it's time to walk away from the keyboard and watch football.

    Acolyte
    Studying at the feet of the masters
      Doesn't that depend on the office? ;)
Re: How I want my memory managed
by cecil36 (Monk) on Dec 09, 2002 at 21:08 UTC
    I'll manage my own memory, thank you very much! OK, now where the heck did I place the next car payment?
Re: How I want my memory managed
by tbone1 (Monsignor) on Dec 10, 2002 at 13:12 UTC
    As long as my memory doesn't become open source, I don't care. If that dishy brunette in sales ever had access to my memory, she would never stop slapping me.

    --
    tbone1
    Ain't enough 'O's in 'stoopid' to describe that guy.
    - Dave "the King" Wilson

Re: How I want my memory managed
by brianarn (Chaplain) on Dec 10, 2002 at 14:14 UTC
    I find the vote count somewhat unique at this point:
    Reference Counting
      35/23%
    Mark & Sweep (or related GC)
      35/23%
    Beer!
      69/45%
    
    I'm not sure what it says, but I'm sure it says something. :D

    ~Brian
      Beer is the best way to manage ANYTHING!


      work it harder make it better do it faster makes us stronger more than ever hour after our work is never over.
Re: How I want my memory managed
by agentv (Friar) on Dec 10, 2002 at 21:50 UTC

    My current preferred method is lazy heap management. Information is kept intact (even when it's not referenced) until it is absolutely necessary to reuse the memory for something else. In the event that the information is requested again and the memory has not been overwritten, reclamation is swifter.

    Coincidentally, this is similar to how the Solaris kernel manages buffer cache memory pages. (And also pages stolen from an active process.) These pages are placed on a special "free list" (called the cache list) and will only be utilized when the traditional free list is empty.

    As a human, I've also adopted this strategy with respect to reclamation of disk space. Even though I know something is no longer in use, I keep it around on the chance that it might be useful for something later. When space is at a premium, I can then use some procedure for cleaning out old stuff.

    Does this lead to chaos? You bet. But with a good search engine and clever indexing, I can find my way through the uproar to the information that interests me.

    Now, if only I can get the screaming in my head to stop!

    ...All the world looks like -well- all the world, when your hammer is Perl.
    ---v

Re: How I want my memory managed
by pfaut (Priest) on Dec 10, 2002 at 22:32 UTC

    I don't need to worry about memory management. My wife does my memory management for me.

Re: How I want my memory managed
by yung_tw (Pilgrim) on Dec 11, 2002 at 02:35 UTC
    as people say.. people are happier when they don't remember stuff or do too much processing or think much, so I'd guess the beer method would be the best as well :)
Re: How I want my memory managed
by chinman (Monk) on Dec 11, 2002 at 05:22 UTC
    As they say, "you can never have enough mammary".

    chinman

Re: How I want my memory managed
by (Initiate) on Dec 11, 2002 at 07:45 UTC
    If my memory serves me correctly (which it most likely is not), then memory is a good thing only if you have a lot of it. If you've only got a little bit of memory, you've probably got a peanut problem :)
Re: How I want my memory managed
by Anonymous Monk on Dec 11, 2002 at 13:08 UTC
    reference counting is useless in any reasonably sized OO perl app where the app is persistent (eg: mod_perl). having to manually break circular references to prevent memory leaks is naff. i may as well write in C++. bring on proper GC!

      GC does not necessarily provide automatic circular reference breaking.

      I prefer GC over reference counting because it simplifies implementation. A simpler implementation contains fewer bugs (on average). One improperly accounted reference can bring Perl down with a core dump, or worse.

        You prefer a garbage collector over reference counting..?

        Makeshifts last the longest.

Re: How I want my memory managed
by malaga (Pilgrim) on Dec 14, 2002 at 09:27 UTC
    Other...children should skip from age 10 to 18. Beer probably wouldn't hurt either.
Re: How I want my memory managed
by zentara (Archbishop) on Dec 24, 2002 at 15:15 UTC
    True memory is stored in the "Akashic Record" in the quantuum fields of space-time. You can train your brain to access this data, (but you go crazy).

View List Of Past Polls


Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (13)
As of 2014-09-17 18:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (94 votes), past polls