Erlang Memoize

September 27th 2008

This is a small module that shows how to memoize function calls and arguments. There are some obvious holes in this design, mainly in how errors and exceptions are handled, but it was a fun learning project from when I was first getting into Erlang. Again, gb_trees are used but a more effecient data structure could probably be used. There are no tests…

Creating string slugs

February 12th 2010

In #erlang on irc.freenode.net someone one was asking how to optomize a small function that would create a ascii string slug. I’ve seen both how different Ruby and Python frameworks do this and decided to give it a shot. This is what I came up with…