13 ms·
Blub Paradox (2014)
- adontz 8y agoIs this some kind of Dunning-Kruger effect? Anyway, I don't think it's right mental picture, and thus context for paradox. Language power, I believe, cannot be defined with one dimension. What is more powerful, Java or SQL? Will SQL benefit from encapsulation or will Java benefit from window functions?
- nestorD 8y agoThe linked article is not the original Blub paradox essay and does highlight this problem (the first element in the "A few problems with the BlubParadox" list).
- tim333 8y agoIt's kind of interesting in the 2001 essay that invented blub it was suggested as a hypothesis as to >And if Lisp is so great, why doesn't everyone use it? Suggesting programmers in a blub language don't realise it's power. I get the impression in the 18 or so years subsequently that the main reason for the low uptake of Lisp is it's power enables people to write clever code that other programmers have quite a job to understand while languages like Python let you do much the same stuff while being easier to read. So it's not that people don't realise the power so much as they don't want it.
- ainar-g 8y agoI agree and will also add that pg seems to have missed some other ingredients of a language's power, especially libraries and tools. Python and Ruby (and Perl before them) got big not just as “easy” languages, but as languages that get the job done quickly thanks to the massive amount of libraries. And while Java, C, and C++ may not be the most elegant of languages, the amount of tools to inspect the code, find bugs, prove properties about the code, safely refactor the code, and test it from the unit level to the level of an ecosystem is what keeps some programmers interested in those languages.
- zeveb 8y agoLibraries & tools are not aspects of a language's power, but rather of an ecosystem's. A language can make it easier or harder to write libraries & tools, but libraries, properly speaking, postdate the language itself.
- marcosdumay 8y agoThere is a large correlation between some language and ecosystem features, so you can not separate them that easily.
- mcv 8y agoI'd love to know Lisp, just like I'd love to know Python. I have no experience in either (I come mostly from Java, javascript with some Ruby and some ancient C/C++ experience). When I look at Python code, I understand what it does. I don't think I've ever written any Python, but I think I could sit down and be productive within a day. Lisp looks like complete gobbledygook to me. I'd love to be able to understand it and write it, but the syntax doesn't look like it's meant to be human readable. It's almost as much work as reading assembly. I should probably give it another try, though.
- jhbadger 8y agoBut that's because all the languages you know are basically dialects of each other because they all descend from ALGOL, not because they are inherently easier to understand. Similarly, someone trained in Lisp would find things like Scheme and Clojure easier to understand than something like Python because those likewise are dialects of Lisp. I'd strongly recommend studying languages different from ones you know -- they are mind expanding even if you never use them in practice. Not just Lisp, but things like Haskell, OCAML/F#, and Prolog will change the way you think.
- wycy 8y ago> not because they are inherently easier to understand I'm honestly not sure that that's true. I would bet money that someone who primarily works in Lisp would still have an easier time sitting down and reading Python code than someone who works in Python sitting down and reading Lisp, because I think it might truly be inherently easier to understand. There is intrinsic meaning in: x = 5 let x = 5 etc., insofar as these translate character for character, word for word, into human language, whereas this simply doesn't: (let (x 5))
- kazinator 8y agoThere is no such thing as "intrinsic meaning", and I think you might be confusing "human language" and "english-like". There is astonishing variation in human language.
- axilmar 8y agoCode readability and ease of modification are also part of a programming language's power. LISP scores lower on those than Python and so Python is more preferrable than LISP (assuming all other factors balance each other out - in reality it is the tooling).
- lmm 8y agoLisp isn't really a language so much as a language construction toolkit, because macros are like language features (e.g. any macro you're using needs dedicated support from any tools that you want to use on your codebase). Effective lisp organizations will generally use a small handful of general-purpose macros throughout their codebases - but at that point you might as well standardise that handful of macros as a language in its own right and you'd have better tool support, better interoperability between libraries (since you don't end up with different libraries choosing slightly different macros for the same thing) and so on. Also lisp is a blub language compared to a language with a modern static type system. It's not that people don't want lisp-like expressiveness, but it turns out other languages can offer more without compromising on that.
- m00natic 8y agoStatic languages are still complete blubs compared to lisps as far as practical metaprogramming goes. And Common Lisp's type system is much less of a blub in that regard.
- lmm 8y ago> Static languages are still complete blubs compared to lisps as far as practical metaprogramming goes. Not convinced; many modern statically-typed languages offer macros or equivalents (and also offer alternative ways to achieve most or all of the headline use cases). Metaprogramming in those languages is substantially more code-level work than in lisp, certainly, but even lisp users tend to treat macros as something expensive (because even though custom macros are cheap in terms of code cost, they're expensive in terms of reader (and tool) comprehension): the standard advice is not to write a macro unless there is no alternative, and using lots of specific custom macros in each code area is regarded as poor style. So in practice developers in modern static languages use macros in much the same way as lisp users. > And Common Lisp's type system is much less of a blub in that regard. Disagree; if you don't have types that are reliably accurate and enforced at compile-time then you gain very few of the advantages, counterintuitive as it is.
- 8y ago
- crimsonalucard 8y agoI would say more people don't know lisp and find the syntax foreign than people who understand lisp and can't read someone else's code. Golang was designed around the philosophy of blub.
- AnimalMuppet 8y agoI think it's more that Lisp is really great for certain things. Those certain things aren't all of programming, though. People use Lisp for a problem that's a good fit, and it's like a revelation - programming is insanely fun and productive. So they become a convert, and think that Lisp is The One Right Way To Program. But in another problem domain, Lisp is terrible. I wouldn't want to program an embedded system with memory-mapped I/O in Lisp. I wouldn't want to do high-performance computing, where I had to get the memory alignment right to get the best performance. Lisp might be like a Formula 1 racer. If you ever drive one, it will probably revolutionize your idea of what a car can be. Just don't try to drive it on a four-wheel drive road - a Jeep will absolutely dominate it there. For that matter, a Formula 1 car is not even a very good car for commuting to work - not street legal, lousy gas mileage, too high maintenance. And this is what's wrong with the Blub Paradox idea. Power? Power for what? A language has a certain power for a particular kind of problem, and a different power for a different kind of problem. Pick the language that is the most powerful for your problem, not the language that is "the most powerful".
- revskill 8y agoThe only absolute truth in the universe: Everything is relative. There's no only one language to rule them all. Pick the right language for the right job.
- nestorD 8y agoThis article discusses the Blub Paradox essay and some of its shortcomings. The original essay is one of the few texts that stuck with me. I read it not as an affirmation that some languages are strictly superior to others (in particular lisp) but as a push to try new paradigms and ideas even if I cannot see, from my current point of view, how they could improve on my current practice. It is one of the reasons that had me trying Rust this year.
- sandyhatches 8y agoThe general concept becomes much more interesting when applied to spoken languages.
- protomyth 8y agoIf iOS had required Lisp instead of Objective-C, then Lisp would have been popular right now. Ruby really needed Rails to get people to try it. I think the killer use problem is more an explanation then anything else. Java also showed a good marketing, well funded campaign does wonders.
- mamon 8y agoOr, iOS would never took off, because no one would want to write apps for it.
- zzzcpan 8y agoYeah, there is this weird idea on HN that any language can become popular if some big ecosystem adopts it before it becomes big. The reality is more complicated of course. Familiarity, simplicity, learning curve all matter much more, than people want to believe.
- protomyth 8y agoIf Steve Jobs when announcing the iPhone SDK had said that Apple's way forward was Lisp and how great the Meta-Object Protocol[1] was for the future, developers, regardless of their beliefs, would have gone and made Lisp popular. Some things have the killer use. Look at Javascript, it is not a good enough language to have developed without Netscape putting it into the browser. It had the killer application that you were basically forced to use. I love prototype-based inheritance but even NewtonScript was a better language. 1) Steve Job's videos for NeXT explaining objects were pretty amazing
- zzzcpan 8y ago> If iOS had required Lisp instead of Objective-C, then Lisp would have been popular right now. It could have dragged iOS popularity with it. Pushing, promoting or forcing something is not enough for it to become popular and widely used.
- 8y ago
- teekert 8y agoIt's like... When the aliens in "Arrival" (or Ted Chiang's story of your life) speak Python but you only speak R. Different languages make you think differently.
- bjourne 8y agoIsn't anyone but me annoyed by the lack of scientific rigor in arguments like these? PG: - It is more efficient to write software in Lisp. Others: - Nah, it doesn't matter. But no empirical evidence has ever been presented...
- zzzcpan 8y agoThere is some empirical evidence. I can't find it now but I've seen research showing Lisp beating all languages in terms of speed of creating some programs from scratch by both experienced Lisp developers and students new to the language. Obviously no research for large projects, those can only be researched through things like github data, etc.
- Jtsummers 8y agohttp://norvig.com/java-lisp.html http://norvig.com/java-lisp.html Start there, some more links from there to details on the study and follow-ups.
- bjourne 8y agoThanks for the links! Of those, the only one I can find dealing with development speed in Lisp vs other languages is http://www.flownet.com/gat/papers/lisp-java.pdf http://www.flownet.com/gat/papers/lisp-java.pdf and that study is flawed due to the self-selection of test subjects. Given 50 years of http://wiki.c2.com/?SmugLispWeenie http://wiki.c2.com/?SmugLispWeenie the amount of empirical results is very low.
- bmn__ 8y agoUlrich Stärk's empirical research (no Lisp): https://web.archive.org/web/2017/https://www.plat-forms.org/ https://web.archive.org/web/2017/https://www.plat-forms.org/ It is hard enough to get study participants for the common programming languages, I deem it nigh impossible for the obscure ones.
- lisper 8y ago> C++ and Scheme are examples of (near) parity, in Graham's terms, anyway because of C++ templates and Scheme macros doing nearly the same things This one sentence to me is an indication that the author has completely missed the point. Templates and macros do the "same thing" only in the sense that all languages do the "same thing" at some level of abstraction, that is, model Turing machines. What matters is not what languages "do" when they are compiled, but in how they bridge the "impedance mismatch" between TM's and human brains. And in that regard, templates and macros are about as different as two language constructs can possibly be.
- AnimalMuppet 8y agoI really hate these wiki-articles. (Not Wikipedia, articles like this one.) The conversational back-and-forth gets confusing when it goes for a while. And the article goes on long wandering digressions that make it hard to see any actual points that the article had. If you want to actually say something, don't do it like this.