Bloody hell! I just wrote a blog post and WordPress lost it. Grrrr … The short resume was : – yes, I’m late (Feb) continuing my “Welcome to 2015” blog posts. – last year I got the functional programming bug. Haskell is pretty damned good, but I’ve fallen for Clojure because a) dynamic types, b) […]
My Quora answer to the question “Is it still reasonable to say mainstream languages are generally trending towards Lisp, or is that no longer true?“ Based on my recent experiments with Haskell and Clojure. Lisp is close to a pure mathematical description of function application and composition. As such, it offers one of the most […]
Asking questions on StackOverflow : Haskell : Using defined data types in other data types. Haskell : Attaching Optional Attributes
I’m on the Making Our Own Types and Typeclasses chapter. With prompting from the tutorial, knocked up the classic binary tree : data Tree a = EmptyTree | Node a (Tree a) (Tree a) deriving (Show, Read, Eq) root x = Node x EmptyTree EmptyTree tInsert x EmptyTree = root x tInsert x (Node val […]
Yes … I’m getting the picture. Laziness is pretty damned useful. You can basically just not worry about the end conditions for all those infinite series and lists you’re searching in.
So I decided to actually sit down and Learn Me a Haskell. Worked through the first few sections. Kind of what I knew already except I think I’m getting a glimmer of why Currying / Partial Application is a good idea, at least in that it’s a very concise way of making higher-order functions on […]
Dustin Getz provides one of the best “Monads for idiot Python programmers” explanations I’ve seen. Excellent! I think I almost do understand this one.
Prediction I made : I predict that in five years time, the hot language will either be a version of Python which has adopted ideas (Pattern matching arguments, Monads, immutability etc.) from Haskell; or a Haskell-like language which has borrowed some syntactic sugar from Python. Don’t know if I entirely believe that, but it’s a […]
Fascinating functional languages and silver bullets.