core.memoize is a new Clojure contrib library providing the following
features:
* An underlying `PluggableMemoization` protocol that allows the use of
customizable and swappable memoization caches that adhere to the
synchronous `CacheProtocol` found in [core.cache](http://github.com/
clojure/core.cache)
* Memoization builders for implementations of common caching
strategies, including:
- First-in-first-out (`memo-fifo`)
- Least-recently-used (`memo-lru`)
- Least-used (`memo-lu`)
- Time-to-live (`memo-ttl`)
- Naive cache (`memo`) that duplicates the functionality of
Clojure's `memoize` function
* Functions for manipulating the memoization cache of `core.memoize`
backed functions
core.memoize is based on a library named Unk, found at <http://
github.com/fogus/unk> that is planned for deprecation.
* [Source code](https://github.com/clojure/core.memoize)
* [Ticket system](http://dev.clojure.org/jira/browse/CMEMOIZE)
Changes from Unk
-------------------
The v0.5.1 version of core.memoize is based almost wholly on the final
version of Unk, with the following changes:
* All cache factory functions have been moved to core.cache
* The `SoftCache` backed implementation was buggy and removed for now
Plans
-----
The following capabilities are under design, development, or
consideration for future versions of core.memoize:
* LIRS backed memoization
* A [defn-memo](https://github.com/richhickey/clojure-contrib/blob/
1c805bd0e515ea57028721ea54e6db4b0c791e20/src/main/clojure/clojure/
contrib/def.clj#L143) macro
* A [MapMaker](http://google-collections.googlecode.com/svn/trunk/
javadoc/com/google/common/collect/MapMaker.html) style ctor interface
* Reimplementation of a cache based on soft references
* test.generative usage
* Deprecation of Unk
* Documentation and examples
More planning is needed around capabilities not listed nor thought of.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@googlegroups.com
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
clojure+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en