AngouriMath

Navigation

← Back to list of members

next

 Field

Summary

The states one scope away, with the setting and the value that reach each, held
weakly: a state is kept by the scopes open in it and by the values cached under it,
and once neither is left it is collected and its entry dropped the next time one is
added. So a program that scopes a value that differs on every call -- a precision
computed from its data -- keeps no more states than it has scopes open and values
cached. And at most Bound of the entries are of one setting, so that
those values, while they are alive, do not crowd out the scopes of the others, which
the library opens on every call; past it a scope of that setting reaches a state of
its own, which only costs its values a cache miss.

Remarks

Two flows opening the same scope at once both read the table; the one whose exchange
fails reads it again, finds the state the other added and answers that one, so both
get the same object. Where they do not -- past the bound, or a state collected and
made again -- two states with the same values are only a cache miss: a value is
answered under the state object it was computed under, never under another with the
same contents, and a state object is never changed once made.

























Angouri © 2019-2026 · Project's repo · Site's repo · Octicons · Transparency · 6003 pages online