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 »
Posts Tagged: Clojure
Functional isn’t always better
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
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
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 »
Checking for primes? Dumber algorithm is faster algorithm
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…. Read more »
Project euler is a fun way to become a better geek
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
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 »