?

Log in

No account? Create an account

Previous Entry | Next Entry

Mar. 3rd, 2008

Last week I wrote my first real Haskell code. For that my matter, it was my first non-trivial purely functional code. Pattern matching is nice. Typing was less annoying than I was expecting, and I suspect there are parts of Haskell that make it even less annoying. I ended up with a simple (unbalanced) binary tree implementation storing key/value pairs. The bit that took longest (apart from beating my head against the wall until I noticed that I'd mispelled the name of one of my datatypes) was the deletion code.

Over the weekend, math_foo and I went up to Toronto to see the Evil Dead musical with eehee , her boyfriend, and sbranzei. It was fun, a lot less serious than the movies it was based on, although the Candarian demons seemed to have a slightly greater obsession with reproductive organs than I recalled.

Comments

( 2 comments — Leave a comment )
svobodo
Mar. 4th, 2008 09:05 am (UTC)
Haskell is an interesting language, and one I'd like to get to know better - which is on my long list of things to do when I have the time and energy. It is a bit of a challenge to learn it though since it is so different from imperative and object oriented languages - we where told that people who have never programmed before often find it easier to learn it than people who are used to, for instance, C or Java.
alfedenzo
Mar. 4th, 2008 01:13 pm (UTC)
The local university has two introductory computer courses for Math/CS majors. One is the standard Java/OOP, while the other (which was introduced after I started, but which math_foo got into the first teaching of) is done in Scheme.

They used to teach some Scheme at the end of a 2nd year CS course, but they've stopped now, so for most people, the only chance they'll get to see a functional language is if they take the 4th year Programming Languages course (where the first assignment is to write a lambda calculus evaluator in Scheme).
( 2 comments — Leave a comment )

Latest Month

December 2008
S M T W T F S
 123456
78910111213
14151617181920
21222324252627
28293031   

Page Summary

Powered by LiveJournal.com
Designed by Ideacodes