Syver Enstad·Feb 4, 2015apt-file is your friendHave you ever tried run a command and gotten error messages about files not being present? For example a program that complains about…
Syver Enstad·Jan 7, 2015Patterns in functional programming: Stateful, Polymorphic, Late bound ObjectsShow how we can implement a polymorphic late bound object with erlang processes storing the object state on the stack and use receive to…
Syver Enstad·Dec 7, 2014Unfolding the foldI always thought that inject/reduce/fold was a bit opaque. Thinking of it as generalized summation helped, but I suddenly got an epiphany…
Syver Enstad·Dec 6, 2014Haskell, Music, Programming and EuterpeaIn my previous post I shared a bit of frustration with the Haskell type system. After venting that I found that working further with The…
Syver Enstad·Dec 6, 2014The day Haskell’s type system deserted meI am learning Haskell these days and I was pleased that the type system didn’t seem to be too imposing (which I feared it would be). But…
Syver Enstad·Nov 24, 2014Patterns for functional programming: LoopI you are like me you have heard many times that you no longer need software patterns when you are programming with a functional…
Syver Enstad·Nov 24, 2014Implementing Natural numbers in HaskellMy son Ulrik is teaching me mathematics these days, and the experience has made want to look at Haskell programming again. Haskell is a…
Syver Enstad·Nov 22, 2014C headers are not a valuable thingIt is funny how we are liable to perceive useless stuff we are forced to do as beneficial. My friend Marius and I was talking the other day…