Impact factor for posts is a measurement of importance.

Impact factor for users reflect their authority, reputation and contribution on a particular topic.

Rating reflects the quality of posts.

Rating on Voofie is not a simple average of all ratings, but a weighted average of rating, weighted by the impact factor of users who rated.

Explore exciting communities of
Adding Garbage collector to MathOO
Bookmark and Share
Avatar for ross_tang

Ross Tang (ross_tang)

Degree in Physics and Mathematics, Master in Physics
香港

  • Garbage collection (computer science)
  • 0
  • MathOO
  • 0
    10 Nov 10

    Adding Garbage collector to MathOO

    Is it possible to add garbage collector to MathOO which is practical?

    In Mathematica, variables with downvalues will not be collected even it has the attribute "temporary".

    In: $HistoryLength = 0;
          x = Module[{y},y[1]=1;y]; 
          Names["y$*"]
    Out: {"y$111"}
    
    In: x = 1;
         Names["y$*"]
    Out: {"y$111"}
    

    Since MathOO makes extensive use of downvalues for both class and object, is it possible to overcome the problem to add automatic garbage collector to it?

    From this post, Temporary variables in Mathematica, Simon has suggested using Dynamic to do so:

    it has a dynamically updated list of classes and objects. And another dynamically updated object that tracks memory usage, which has a garbage control mechanism built in with a large UpdateInterval

    I have considered this option too. But I just don't like the idea of using dynamic, which needs to be enable by user. I wondered if all calculations are done by package, it will still work or not.

    Please login to post comment.

    What is Voofie?

    Voofie organizes knowledge, discovers useful resources and recognizes knowledgable users.

    Bookmark your blog in Voofie to get more traffic as well as building a reputation in your field!

    Explore more about it. Become a member—our FREE Registration takes just seconds.

    Page Info
    10Impacts
    0/0 rates
    859
    Your Rating: