5 ms·
Note the date. In 2000, Perl was, by far, the leading scripting language (and language for the web). I'm certain that if this rant were written today, it woul
by SwellJoe 19y ago
Note the date. In 2000, Perl was, by far, the leading scripting language (and language for the web). I'm certain that if this rant were written today, it would target PHP, and possibly even Ruby and Python. Ironically, perhaps, modern Perl is more lisp-like than any other mainstream language (aside from JavaScript, in some ways), and so this article merely says, "Mainstream languages that come pretty close to Lisp are brain-damaged and you'd have to be a particular breed of crazy to use it for anything."
- shiro 19y agoI love his rant. There are so many colorful expressions in it that even if you don't agree with what he says, you can enjoy how he says it. Here's another my favorite, Erik on C++, from 1998: http://groups.google.com/group/comp.lang.lisp/msg/917737b7cc8510e3 http://groups.google.com/group/comp.lang.lisp/msg/917737b7cc...
- SwellJoe 19y agoAwesome. He's convinced that using a language (C++ or Perl, depending on the rant in question) can cause damage to ones cognitive processes! He is a colorful one. I'm pretty sure I'd feel dumber after having worked in PHP for the past six months on our new website, if that were true.
- brlewis 19y agoNo, if you were succumbing to the trap he described about Perl, then you would feel smarter for having solved so many immediate problems.
- sandoh 19y ago"I actually think C++ is ideal only for programmers without any ethics." This guy is a little bit extreme.
- omouse 19y agoand so this article merely says, "Mainstream languages that come pretty close to Lisp are brain-damaged and you'd have to be a particular breed of crazy to use it for anything." Wrong. This reddit comment nailed it: http://programming.reddit.com/info/2mm0n/comments/c2mo30 http://programming.reddit.com/info/2mm0n/comments/c2mo30 Erik's argument is that Perl incentivizes The Wrong Way, and disincentivizes The Right Way. It's not about coercion, it's about incentives. "it's not that perl programmers are idiots, it's that the language rewards idiotic behavior in a way that no other language or tool has ever done." --jemfinch
- SwellJoe 19y ago"Wrong." Very concise. And it's always good to back it up with the assertions of some random dude on Reddit.
- omouse 19y agoThe assertation is backed up by a quote from the original post by Naggum. I said "wrong" because you somehow missed that part of his post. He was not saying that Perl is wrong because it has some of Lisp's features. He was saying that it is wrong because it allows shitty work. In fact, it encourages it by making it harder to write good solutions. Someone (Perl) can be beautiful (Lisp features), but that doesn't change the fact that they wear dirty clothing (ugly syntax) and they smell kind of funny (ugly solutions).
- SwellJoe 19y ago"The assertation is backed up by a quote from the original post by Naggum." An ill-informed rant from a crank is not the same as "backed up". "Someone (Perl) can be beautiful (Lisp features), but that doesn't change the fact that they wear dirty clothing (ugly syntax) and they smell kind of funny (ugly solutions)." We all have our preferences. While you can quote your favorite usenet crank from years ago, I can quote one of my favorites about Lisp (doesn't mean Lisp isn't a great language for many tasks...this quote just makes me laugh every time I read it): "Lisp has all the visual appeal of oatmeal with fingernail clippings mixed in." --Larry Wall (larry@wall.org) Smart people can disagree on many things. Programming languages are no different.
- lupin_sansei 19y ago> In 2000, Perl was, by far, the leading scripting language (and language for the web). It still is (excepting PHP) http://www.tiobe.com/tpci.htm http://www.tiobe.com/tpci.htm
- Goladus 19y agoIn what ways is Perl Lisp-like? The more I learn Lisp, the less it seems like Perl at all.
- SwellJoe 19y agoPerhaps learning more Perl would solve that problem.
- Goladus 19y agoPerhaps you could give me a brief summary (a few sentences) about what you mean regarding Perl's similarly to Lisp. I may simply be paying attention to different things.
- Goladus 19y agoIn the meantime, here are a few of the differences I've observed: Perl flattens lists by default. All subroutine parameters are passed via @_, resulting in an imperative-style parsing of variables at the beginning of every sub. A perl program is a file of perl statements, a lisp program is a lisp list of expressions. Perl has contexts. (edit) Also, Lisp reserves almost no characters. I can use square-bracket as a symbol name if I want.
- SwellJoe 19y ago"Perl flattens lists by default." Perl has several data types. You can get all the unflattened goodness you want by passing array refs. We do it all the time in our code. It's merely syntax. "All subroutine parameters are passed via @_, resulting in an imperative-style parsing of variables at the beginning of every sub." Likewise, pass an array ref, and you don't fiddle with parsing @_. TMTOWTDI. (Note that I'm not suggesting passing array refs for everyone or all subroutines...it's just a somewhat lispy way of thinking. In OO development, a more "imperative-style" is appropriate, and we use that too.) "A perl program is a file of perl statements, a lisp program is a lisp list of expressions." OK. Wonderful. Nonetheless, you have first-class functions in Perl. Currying is possible (and not terribly ugly) in Perl. Closures exist in Perl. Macros do not, yet, exist in Perl 5. But they exist in Perl 6. That's the only significant gap I'm aware of (where "significant" means, "a concept that cannot be replicated in the language without huge, long-winded, hacks"). Syntax is arbitrary, and smart people can disagree on what good syntax looks like. Power is a bit more tangible, and on the power continuum Perl holds up just fine. "Perl has contexts." So? Merely syntax. "Also, Lisp reserves almost no characters. I can use square-bracket as a symbol name if I want." Again, so? I'm talking about power, you're talking about implementation and syntax preferences. You may feel that the beauty of Lisp is in the details, and that's wonderful. I think Lisp is nifty, too. But, there is also beauty in speed of development, and nothing is faster to develop than already written code. Perl has the largest collection of free pre-written functionality of any modern language in CPAN. It also happens that for my problem domain (system administration automation) Perl is effectively already a nearly ideal DSL. For me, built-in grep and map and file tests and operations and regular expressions and taint mode and efficient hash tables and native Unicode and cheap enough concurrency and lots and lots of libraries are all killer features and Perl has all of them. Sure, Lisp has a better map, by some definition of better, and I can pull in a regex library and probably a POSIX file library. Erlang has better concurrency by all definitions. Other languages are strong in other areas. But nothing has them all...except Perl. The nice thing is that we can both use our favorite languages for anything we want. I will never come over to your house and force you to write (or read!) Perl code. I promise. I do think folks are missing out on some interesting ideas by closing their eyes and going "neener neener neener neener" with fingers in their ears every time someone mentions Perl, but that's no business of mine.