Hacker News new | ask | show | jobs
by iLemming 25 days ago
"[It's better to] learn type theory, category theory, lambda calculus, logic, etc." I have heard a similar notion for years. And I tried. Oh boy, I tried. Grokking Haskell felt like a Sisyphean grind. And then I tried Lisp. I dunno what happened to my brain, but the sheer pragmatism and plain simplicity of it suddenly made all the things that before felt so difficult to grok clearer than Lego-set instructions. Recursion, with its small intricacies that confused me for years, made me realize how simple it actually was, I just wasn't seeing it the way it actually is. Y Combinators, Folds, Monads, Applicatives, Laziness, and many other things.

I wish I had found Lisp many years sooner. That simplified Haskell, Rust and Idris for me. The downside is that it turned out to be vastly pragmatic, and for personal stuff I'm on Lisp. Even though most things at work are not.

So, maybe you should honestly self-reflect: had that book not happened in your life before, would you even consider understanding LC today, unadulterated by "gimmicks"?

1 comments

I think you're making a good point, perhaps it was necessary in my path (which was roughly C++ -> Python -> Common Lisp -> Forth -> Haskell -> soon Lean).

But perhaps we're teaching lambda calculus wrong. Let and lambda are essential building blocks of it, and Lisp is a sort of special case.

I don't think it has to be hard - To Mock a Mockingbird is just as enjoyable as LoL. It's just difficult to see significance of LC for programming, I think, because people do not think of lambda calculi as programming languages.