Hacker News new | past | comments | ask | show | jobs | submit login
Programming is Hard, Let's Go Scripting... (perl.com)
46 points by r11t on Jan 5, 2010 | hide | past | favorite | 23 comments



In this article Larry Wall (inventor of Perl) says that Wycliffe Bible Translators taught him that all human languages are Turing complete. See http://news.ycombinator.com/item?id=1033741 (Pirahã: a non-Turing-complete human language) for a counterexample. Fascinating article.


I think that's the first time I've heard someone specifically use the concept of Huffman coding in evaluating language design. It makes a ton of sense, and maybe it's a more well known viewpoint than I realize.


Larry Wall has been using it for quite a while. His essay about the problems with regular expressions as they’re known and used today is insightful and carefully argued: http://dev.perl.org/perl6/doc/design/apo/A05.html (from 2002)


I recently submitted this article about Ruby design : http://www.scribd.com/full/24764060?access_key=key-bmp10h1nw... which also uses the idea of Huffman coding in the context of evaluating language design.


Requires flash to read an article? Fail.


Thanks for the link. He even references this Larry Wall article in the footnotes.


Maybe it's just the charisma of people like Wall and Conway speaking, but everything said about Perl 6 makes it sound like God's gift to humanity. And yet nobody seems to be interested. Am I going to have to learn this language just to form an opinion about it?


I'm interested enough to have spent part of my free time over the past few years working on it. There was also a fairly large response to the Perl 6 Advent Calendar during December.


Don't you normally learn about things before forming opinions?


I'm interested. Very much interested. I just can't right anything substantial in it yet. Can't wait for Rakudo's 1.0 release though.


> And yet nobody seems to be interested.

Plenty of people have formed strong opinions about Perl without learning it. So far, Perl 6 appears little different.


Personally I've always found Larry's talks very poor. They seem to wander all over the place, full of buzzwords and much of what he claims doesn't seem to have any connection to what he actually did.

Huffman encoding? Then why are so many of the defaults wrong? Nearly any perl programmer would tell you that your programs should start with "use strict", so wouldn't Huffman encoding dictate that "strict" would need to be turned off if you didn't want it? And choosing "special return value" to signal failure can't possibly be shorter than using exceptions, it can only be as good if you don't handle any errors.

He's always reminded me of someone trying to be "deep" after smoking a joint.


Well, he notes in the linked talk that "use strict;" and "use warnings;" will be the default in Perl 6. The fact that your goal is to Huffman encode the language design doesn't mean you'll always succeed. Things change over time. Initially, 15 or so years ago when Perl 5 came out, use strict was a new idea and rarely used. Over time the culture encouraged people to use it pretty much always. The Huffman encoding was right at first, but usage has changed. Changing the language to reflect currently usage is hard if you want to preserve backward compatibility, though.


Fine, but what about error handling? It's been known for quite some time that C-style return code checking is a fail. And it certainly makings coding a lot more verbose. There are lots and lots of situations where doing something in perl is just a lot more wordy than other languages that are better about "Huffman encoding".


Don't use C-style return code checking in Perl then; use autodie.


Ok, but it's still more work than if throwing an exception were simply the default.

And this is just one example. I programmed perl for the better part of a decade and every day I felt the pain of how "anti-Huffman encoded" it is unless you're making 3 line scripts. If perl people wish to concede that this is all perl is good for then I'll happily concede that perl does indeed have good Huffman encoding. :)


I agree that Perl 5 has some of the wrong defaults. It's a sore point for some people.

For what it's worth, Perl 6 has much, much better default behavior.


Nice, a perl fan saw this post and actually appears to have gone through all of my posts and voted them down (bringing some to 0). Welcome to reddit!


You're either trolling or you haven't paid any real attention to the perl community. Your comments are simply inaccurate, which is probably why they were downvoted (not out of some weird fanboyism).


I'm certainly not trolling and I've paid more than enough attention to the perl community. Please point out where my comments are inaccurate?

I most definitely was voted down due to "some weird fanboyism" since when I go to the thread page I saw that all comments got a down vote even though at that time only this comment had anything to do with perl. I've also seen this exact same behavior on reddit and other sites.

Anyway, I would expect and admin can check this pretty easily.


There should be a "Larry Wall" tag so I can avoid his meaningless rants


Apples are hard, let's go oranges. Edit: That was a terrible analogy. Scripting is programming, they are both apples.


Reading the entire article before posting is hard, let's go ranting.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: