The Joy programming language has a linrec combinator for performing linear recursion. Some time ago I took a stab at implementing linrec in Factor. Slava also posted his version that was originally a part of Factor. As can be seen from Slava's version, juggling the stack when four quotations are involved can be problematic. I thought I'd revisit linrec using... more →
There have been some interesting papers and talks about approaches to handling i/o using left folds recently. First was the galois tech talk about a safe and efficient i/o interface in Haskell using left fold enumerators. PDF slides are here. The example web server, Hyena, is available on github. Oleg Kiselyov then gave a talk at DEFUN about using left... more →
The Factor web framework was recently redeveloped and my previous post on the topic is out of date. I'm re-learning how to write Factor web applications as I work through a simple app I'm building. At first I was overwhelmed by the large number of features in the new framework, but once I got a bit of an understanding I... more →
The New Zealand Open Source Awards were held in Wellington on Wednesday night. Congratulations to Robert O'Callahan who was nominated as a finalist for the 'Open Source Contributor' category, and won the award on the night! Also winning an award was Radio New Zealand for 'Open Source use in Government'. Radio New Zealand are doing some great work distributing their... more →
Ajaxian recently posted about a fun JavaScript implementation of PacMan. After spending way too much time on it I wondered how well an emulation of the old arcade game hardware would go in JavaScript. I've written a few 8080 arcade game emulations before in different languages so I had a go at implementing it in JavaScript. You can try the... more →