Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Perl and Linguistics

by Withigo (Friar)
on Jul 05, 2008 at 09:28 UTC ( [id://695675]=note: print w/replies, xml ) Need Help??


in reply to Perl and Linguistics

I haven't seen any links other than the one you gave, and in other programming language camps I haven't seen the connection to linguistics comes up at all in discussions. It's just not on anyone's radar(sure there are theoreticians thinking about it, but not your average business developer). I like to think the linguistic aspect is a novel feature of Perl and damned clever of Larry to pin point.

The entire field of computational linguistics is in its infancy and we just don't currently posses the technology to formulate the deep questions about how exactly the brain functions with respect to language. CS is in its infancy too, so there's going to be a long wait until these two fields can build a bridge and connect in a deep way. Hopefully future language creators will steal the linguistic idea from Perl and contribute to experimentation in the field.

And there are a few really interesting ideas which I hope will be on that bridge, such as:
1) the validity of the Sapir-Whorf hypothesis and its application to programming languages. It's true that perl hackers see the world a certain way due to their language, as do lispniks, rubyists, etc (and we all know those in the java camp see a medieval world, I kid!)

2) Can we reach the point where we can create "deep AI" and what will the language involved be? (Don't say Lisp!)

And if you end up with any particularly good links, please post them here so others can find them and read them.

Good luck!

Replies are listed 'Best First'.
Re^2: Perl and Linguistics
by Erez (Priest) on Jul 05, 2008 at 10:50 UTC

    I like to think the linguistic aspect is a novel feature of Perl and damned clever of Larry to pin point.

    Then I submit that you miss the whole idea about Perl

    Perl was designed as a programming language that is constructed as a spoken language.
    Everything about it, TIMTOWDI, DWIM, different features, design ideas, all the in-language features, etc. are derived from this idea, not the other way. All the verbosity, non-orthogonality, the sigils, the context-interpretation of variables, you name it. It's all ideas that come from spoken language, and implemented in Perl.

    Only that unlike COBOL, or VB, or the likes, it doesn't use English-like keywords thinking it will make the language "easier to read", but use concepts that are used in spoken language. This way, when you speak fluent Perl, you can express yourself better, and not just "do more".

    Stop saying 'script'. Stop saying 'line-noise'.
    We have nothing to lose but our metaphors.

      Only that unlike COBOL, or VB, or the likes, it doesn't use English-like keywords thinking it will make the language "easier to read", but use concepts that are used in spoken language. This way, when you speak fluent Perl, you can express yourself better, and not just "do more".

      I wish I'd said that.

      No. Ireally mean it! I really wish that I had had the language skills or insight to have constructed those two sentences.

      It bugs me intensely when I see the posts around here that condemn, eschew, and deprecate the power of Perl's notation in favour of some hamstrung subset of lowest denominator commonality or CS-theoretically correct formality.

      For all the hype about CPAN, this is Perl's strength. So much of CPAN wastes space, time and cycles re-implementing Perl's built-in power, to 'correct' its non-orthogonality, or to 'make it OO-compliant'. And in the process, completely miss the reasons that make Perl uniquely powerful for expressing solutions to complex problems in productively concise and intuatively simple terms.

      Java and its libraries are extremely complete and powerful. Java's problem is that it takes so long to express the high level concepts that denote the algorithm you are trying to code, that you loose your way in all the low-level detail that it forces you to state explicitely and verbosely

      The beauty of Perl is that it allows you to say: "He'll process all the data", not "My assistant, John, 34, from Popocatepetl, married with 3 children, will go through all the data, starting from record one, and working his (John's) way through sequentially, record by record, until he has processed all the records!".


      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.
      Saying I miss the whole idea about Perl is a rather strong thing to say. I didn't say the linguistic design was a happy accident after Perl was designed--what I did mean to say is that it was clever of Larry to start with the linguistic approach and derive the language from that. Which is basically what you said, so we agree. :)

      Although, however nice these linguistic features can be in the small, I do think the linguistic approach ultimately breaks down since natural languages cannot be represented by a Turing machine. What we can represent on hardware as being computable is an infinitesimal subset of what we can represent in our minds with non-context-free(and context-sensitive) grammars, so I would argue that the real benefits and optimizations of the linguistic approach cannot even be realized in a programming language. (That is until some genius invents a non-recursive hyptercomputer.) And please don't take this as a hard opinion--I do recognize it's a fuzzy field in which I have no expertise, just interest.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://695675]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (10)
As of 2024-04-18 08:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found