Tag Archives: Functional Programming

High On Lisp

Posted in Comics | Also tagged | Leave a comment

Thunks and Haskell

I’ve been spending a bit of time this weekend playing with Haskell, and I came across an interesting problem while writing a few functions that, overtly, would seem quite simple. Notably, Haskell is a lazy language, storing promises of later evaluation in what are called thunks. Having some reasonable amount of experience in Clojure, lazy evaluation [...]
Posted in Haskell | Also tagged , , | 3 Comments

The Allure of the Asymmetrical

Thoughts on code asymmetry, as inspired by the lowly egg. Although I’ve lived in Charlottesville for quite a while now, I haven’t really taken advantage of the numerous and various local farms. This is perhaps odd, given my health-obsessive nature, and our local prevalence of natural, grass-fed animal products. But whatever the impediment to my action [...]
Posted in C, Clojure, Computer Science | Also tagged , , | 1 Comment

Clojure :pre and :post

Courtesy of Hacker News, this morning I stumbled upon a blog post mentioning :pre and :post assertions, a new feature in version 1.1 of Clojure. Given the rather messy nature of several functions in Gajure (my toy genetic algorithm framework), it seemed to me that I had an ideal opportunity to make use of this [...]
Posted in Clojure | Also tagged , , | 1 Comment

On Parallelism

Recently, I read an article describing someone’s experiments in parallel genetic programming, and so I decided to run my own. As has been mentioned, I am quite fond of functional languages; for me, easy parallelism is simply a pleasant bonus. I do think its worth noting, however, that while functional programming may be generally awesome, throwing [...]
Posted in Clojure | Also tagged , , | 7 Comments

A Genetic Algorithm Framework in Clojure

functional languages. They are wonderfully powerful, and can easily abstract away a basic algorithm that one might apply to many kinds of problems. With this in mind, I decided to build a framework for constructing genetic algorithms in Clojure.
Posted in Clojure | Also tagged , , , | 2 Comments