15. May 2015

An interesting example of using a closure for memoization

Long ago I wrote about the benefits of memoization. It’s a simple idea: a time vs. space trade off. Trade time in CPU for space in memory. A pretty classic example is the massive speed benefit you can get while calculating the Fibonacci sequence by saving values you have already found. (The naive recursive approach recalculates values an exponential number of times.) It’s a toy example but it definitely exhibits the power of the technique.

more

03. May 2015

Playing with my espruino pico

About a year ago I had a little fun using an espruino. I recently “kick-started” their more recent product the espruino pico. This one did really well on kickstarter and I got some great “boost” rewards like an LCD screen and some relays. It should be fun to see what this thing can do.

more