#13566: Simplicial complex examples as singletons
---------------------------------------------------+------------------------
       Reporter:  tscrim                           |         Owner:  tscrim     
     
           Type:  enhancement                      |        Status:  needs_work 
     
       Priority:  minor                            |     Milestone:  sage-5.6   
     
      Component:  algebraic topology               |    Resolution:             
     
       Keywords:  simplicial                       |   Work issues:             
     
Report Upstream:  N/A                              |     Reviewers:  Travis 
Scrimshaw
        Authors:  Christian Nassau, John Palmieri  |     Merged in:             
     
   Dependencies:  #13244, #12587                   |      Stopgaps:             
     
---------------------------------------------------+------------------------

Comment (by cnassau):

 Replying to [comment:17 nbruin]:
 > You aren't proposing the cache to save computation time, I suppose? It's
 probably because you find it desirable to guarantee uniqueness when these
 things exist (are they parents?) In that case, you can get what you want
 by inheriting from !UniqueRepresentation or !UniqueFactory. That keeps a
 weak cache, so that
 > examples that aren't otherwise referenced anymore can be collected.

 I wonder if we could create a new modifier {{{@weakly_chached_method}}}
 (or maybe {{{@cached_method(weakref=True)}}}) for this purpose. Using a
 !UniqueRepresentation or !UniqueFactory probably requires some code re-
 arrangements (for example, {{{Sphere}}} is a currently a method, not a
 class whose inheritance we could change).

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13566#comment:18>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to