PERsistent MEmoisation.
This is a damn naive implementation, so do not ever trust, please.
Please tell me if exists.
If you want in-memory memoization the libraries below may help you.
* (perme:memoise your-function-name)
* (perme:forget your-function-name)
PERME depends on cl-store to store object. And cl-store says
not all yet
So the objects that cl-store can not serialize are can not memoized by perme too.
PERME uses sxhash to make pathname that holds the memoized results.
CLHS says
(let ((r (make-random-state))) (= (sxhash r) (sxhash (make-random-state r)))) => implementation-dependent
So conflict may occur.
MIT