Re:Clojure all the way down
by amelius on Thursday October 22, 2015 @11:14AM
(#10432676)
Here is (imho) a good test to see if a language is sufficiently capable and worth considering for bigger projects: try to implement a memoization library in the language. By memoization library I mean a library that enables you to cache function calls. So calling f(x) twice with the same f and the same x should not trigger recomputation the second time. It is also a good way to quickly get to know the intricacies of the language.
[ Parent
| on HN ]
So the early versions of javascript were great for you?
Well, Clojure has a memoize function built in.
That is considered cheating :) In that case, the requirement can be extended to storing the memoization cache on disk. Bonus points for using a mmapped file, for fast access after the program is restarted from scratch.