Learning me a Haskell

Dec 23 2011 Published by 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 [...]

7 responses so far

Functional isn’t always better

Oct 07 2011 Published by 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 [...]

41 responses so far

Implementing a weighed random choice in Clojure

May 26 2011 Published by 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 [...]

Comments Off

Using prime numbers to generate pretty trees

May 11 2011 Published by 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 [...]

Comments Off

Checking for primes? Dumber algorithm is faster algorithm

Mar 21 2011 Published by under Coding,Project Euler

It’s been a busy few weeks since I last posted about my toying around with project euler, but never you mind. I did do some progress nontheless! HA! Just so I won’t bore you with the details, the most interesting thing I discovered is that the way I was calculating prime numbers was totally wrong. [...]

5 responses so far

Project euler is a fun way to become a better geek

Mar 08 2011 Published by 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 [...]

Comments Off

Processing as-you-read in clojure

Apr 12 2010 Published by 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 [...]

2 responses so far

« How long is your coding schlong? A little bit of burn out? Perhaps »