3 ms·
Ask HN: Lisp, Haskell, and the Blub Paradox
Lisp is the classic "top of the power curve" language for the Blub Paradox. Lisp people look down on basically every other language, and ask "How can you get anything done in those languages? They don't even have macros." (That's Lisp macros, not C-style macros, which are a much different thing.)
But Haskell programmers look down on Lisp (and everything else), and ask "How can you get anything done in those languages? They don't even have a decent type system." (And no, C/C++/Java types are not what a Haskell programmer calls "decent".)
It seems, then, that we have two different languages, each looking down on the other, and sure that it knows why it is looking down, that is, sure that it knows why the other is less powerful.
My question: Is the Blub Paradox wrong?
The Blub Paradox assumes that all languages can be ranked on a one-dimensional axis labeled "power". But power is the power to do something. What if the "something" determines (at least to some degree) what "power" looks like? Maybe a better view is that programming languages look like a tree, and your problem looks like a vector. Pick the language that gets you the furthest in the direction of your problem vector. (This view means that you cannot meaningfully compare the power of different languages without specifying the problem domain, unless the languages are on the same branch of the tree.)
Here's an even stranger question: Is it possible that Haskell's type system and Lisp macros are doing somewhat equivalent things?
Responsible, thoughtful answers are welcome. Flames are firmly discouraged.
- yzzxy 13y agoIIRC "Beating The Averages" made allowances for domain specific languages. However, the core of almost any language can be applied to almost any other, and domain-specific tools layered on top. Lisp's syntax is especially good for this because it is so extendable and simple, I'm not sure about Haskell having not used it myself. As for Haskell types vs. Lisp macros, my impression is that macros are, at least semantically, more correct for the common process of "apply this action with some changes to multiple situations" that I believe you're referring to when you talk about these properties being equivalent. However, I'm not completely familiar with how a "proper" type system actually works and what the capabilities of languages designed around such a system are, so maybe somebody more experienced could shed some light.
- peterashford 13y agoThe Blub concept is completely misguided and arrogant. It assumes that those who use more powerful tools are clever and superiour and those who use simpler tools are idiots too stupid to understand their betters programming away in Lisp. It ignores the fact that an enlightened software engineer can make the decision NOT to use the most powerful language and find value in simplicity, ubiquity or community.