Learning me a Haskell

Posted by & filed under A tech a day.

A couple of days ago I decided that doing my graduation thesis on a topic that, when suggested, brought a sparkle to my mentor’s eye and made him suggest I might want to think about picking a co-mentor just wasn’t hard enough – so I decided to do the whole thing in Haskell. I want… Read more »

Functional isn’t always better

Posted by & filed under A tech a day.

For a long time now I’ve been completely in love with functional programming to the point that I write functional-style code even in run of the mill normal languages. There are many reasons I like functional code, the paper Why functional programming matters, by John Hughes sums up my opinion perfectly. A few days ago… Read more »

Implementing a weighed random choice in Clojure

Posted by & filed under Coding.

A while ago I wrote about my school project that involves generating pretty trees and concluded the post with the idea that I now have to implement some way for the branch lengths to be a bit random to add more variability.   There is an easy and an awesome way to doing this. The… Read more »

Using prime numbers to generate pretty trees

Posted by & filed under Coding.

Have you ever tried to generate a natural-ish looking tree? I did it for a coursework assignment and turns out it’s both incredibly simple while being full of strange little twists.   Generally the assignment was about manipulating 3D objects in OpenGL through user action. Otherwise known as: make a game, if it isn’t a… Read more »

Project euler is a fun way to become a better geek

Posted by & filed under Coding, Project Euler.

Yesterday I was a bit bored at the Theoretical Basis Of Computer Science class and the obvious solution was to try doing a bit of coding on an algorithm I’m trying to develop that aims to learn the proper syllabification for a language by reading it. Because I’m all sorts of cool I want to develop… Read more »

Processing as-you-read in clojure

Posted by & filed under Insanity.

Image via Wikipedia Sometimes we’re given a stupid algorithm or two to implement at this or that course at uni. This time ’round they wanted us to implement something called external matrix transposition … the idea is that you have to transpose a matrix live from the hard drive because it is potentially so bloody… Read more »