Day 2: Haskell

Nov 03, 2011 06:01

Day 2 language: Haskell!

Commentary! )

Leave a comment

Comments 7

aleffert November 3 2011, 18:13:07 UTC
Obviously you're free to do to his however you want, but in some sense the point of haskell (at least as far the things it will do to your brain goes) is grokking monads. So like, maybe just doing one of these a day is hard enough, but I encourage you to try to be idiomatic.

Reply

nalintmo November 4 2011, 20:52:19 UTC
I think one of these a day is more than hard enough. :-P

Reply


vatine November 3 2011, 20:44:57 UTC
As long as you don't use the lisp interpreter embedded in Pike, it ought to be a pretty decent language to try out. Or, I should say, there was a lisp interpreter in there when I was playing around with Pike 10 years ago.

Reply

nalintmo November 4 2011, 20:53:15 UTC
Well, my Day 1 language was Common Lisp. So there's no rule against using a Lisp to make a Lisp -- but no, I won't use it as my entire entry. :-) I used to program in LPC, the LPMUD scripting language, which I understand was the predecessor of Pike. It had some Lisp in it then, too.

Reply

vatine November 5 2011, 08:29:40 UTC
It did indeed use to be LPC, before it got sliced, diced and repurposed as the core of a (well, two, these days) web server(s) engine, in Roxen (and Caudium).

Reply


wjl November 3 2011, 22:28:35 UTC
monads aren't actually that scary, if you just think of them as a handy ADT for routine plumbing :)

favorite part:

-- Here we are doing a clever haskellism defining evn' recursively in terms of
-- itself. I have no idea whether that works.
:D

Reply

nalintmo November 4 2011, 20:53:37 UTC
Apparently it works! ;-)

Reply


Leave a comment

Up