News for hackers. Stuff that matters.
Re:Kill hashtables, get shorter code. by jimbokun on Monday July 19, 2010 @06:17PM (#1530394)
"That sort of sucks. Further, it makes some functions, like euclidean, hopelessly non-general, since euclidean now has to know what function to call to get a frequency [3]."

No. You can just pass in the appropriate, memoized frequency function to call. In the new code, that just means that "freq" would be an additional argument to euclidean, instead of a globally defined function.

Re:Kill hashtables, get shorter code. by herdrick on Monday July 19, 2010 @06:24PM (#1530420)
Right. That's what I said in the footnote, [3].