News for hackers. Stuff that matters.
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.
Re:Clojure all the way down by mrits on Thursday October 22, 2015 @11:17AM (#10432694)
So the early versions of javascript were great for you?
Re:Clojure all the way down by sotojuan on Thursday October 22, 2015 @11:21AM (#10432733)
Well, Clojure has a memoize function built in.
Re:Clojure all the way down by amelius on Thursday October 22, 2015 @11:25AM (#10432755)
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.