Slashdot Mirror


Ponie: Perl On New Internal Engine

caseywest writes "Today at his State of the Onion speech during the 2003 O'Reilly Open Source Convention, Larry Wall announced the Ponie project (somewhere within his legendary humorous presentation). Ponie involves rewriting central parts of the Perl 5 interpreter to run on Parrot, the Perl 6 virtual machine, including a C API emulation layer to make existing XS code work. Arthur 'sky' Bergman is sponsored by his employer Fotango to develop Ponie. Currently, a press release and a FAQ are available. More details will be available in due time."

11 of 47 comments (clear)

  1. Pony??? I blame London.pm by babbage · · Score: 4, Funny
    The proof is in the CPAN:

    David Cantrell > Acme-Pony-1.1.2 > Acme::Pony
    Module Version: 1.1.2 Source

    NAME
    SYNOPSIS
    DESCRIPTION
    DIAGNOSTICS
    AUTHOR
    COPYRIGHT

    NAME
    Acme::Pony - An encoding scheme for Silly People

    SYNOPSIS
    use Acme::Pony;

    print "Hello world";

    DESCRIPTION
    The first time you run a program under use Acme::Pony, the module removes all that nasty text stuff from your source file, turning it into a lovely ASCII-art rendition of a pony. In the spirit of other london.pm modules, the ASCII-art will consist entirely of the characters matching /[buffy]+/i, thus fulfilling Greg, Leon and Dave's fantasy of seeing Buffy riding a Pony.

    DIAGNOSTICS

    Can't pony '%s'
    Acme::Pony couldn't access the source file for modification.

    Can't unpony '%s'
    Acme::Pony couldn't access the source file for execution.

    AUTHOR
    David Cantrell

    This is based on Leon Brocard's 'Buffy' module and inspired by Damian Conway's brief talk on his Bleach module.

    Leon contributed the code for scaling a vector Pony and filling it, replacing the bitmap Pony from the previous versions.

    COPYRIGHT
    Copyright (c) 2001, David Cantrell. The Artistic Licence applies.

    I don't think I need to mention that Leon Brocard works for Fotango, and that Fotango owns up to adding their share of silly libraries to CPAN.

    And now they've gotten to Larry Wall himself.... :-)

    So, is there a URL for the State of the Onion talk this year then?

    1. Re:Pony??? I blame London.pm by chromatic · · Score: 2, Informative

      Good detective work! You're exactly right; the name was chosen (in part) to please London.pm.

      I'll try to get the State of the Onion talk up on Perl.com or the O'Reilly Network tomorrow.

  2. Scheme by Skeme · · Score: 2, Interesting

    Last I heard, Dan Sugalowski said they planned to design Parrot so it could run Scheme code, as well as Python and Ruby, except it wouldn't be able to do continuations (which you need for Scheme). Anyone know more about this?

    Also Dan said that Parrot is more suitable for dynamically typed languages like those, while Mono and dot net are better for statically typed, like C# and Java. Anyone know more about that?

    1. Re:Scheme by baka_boy · · Score: 3, Informative

      Last I heard, Parrot was definitely intended to support continuations, as a low-level primitive for microthreading, generators, and coroutines. At least that's what Dan told me at LL1, and what the Parrot dev list summaries seem to keep indicating. That's not to say that all languages compiling to Parrot will use continuations, of course, but it will be there for those (Scheme, Ruby, and perhaps some day Smalltalk?) that do.

      Parrot is indeed designed to be a more dynamic runtime environment than Java, C#, etc., but that's really more of a compiler-level issue than a VM one -- i.e., compile-time type checking isn't something you implement at the VM level. And since Parrot supports a number of primitive types within the VM core, you could quite conceivably compile a low-level, C-like language to very efficient Parrot code.

    2. Re:Scheme by toomuchPerl · · Score: 3, Interesting

      Parrot is more dynamically typed, yes, but they also made the wrong choice when choosing a VM. They wanted to support dynamic languages, so they should've chosen a Scheme VM and modified it from there. Consider that Scheme and Perl have very similar semantics in many cases, and that a modified Scheme VM could easily run Perl programs, matching the Perl semantic model.
      A system that combined some of the semantics of Lua with Scheme would actually be the most suited to this type of task. If you don't know what Lua is, well, it has hooks that allow you to specify events which occur when certain things happen. Like, when a hash table is accessed, you can overload that behavior (which Perl has with TIE), or when an undefined subroutine might be called, you can override that behavior. (which Perl has with AUTOLOAD). Lua 5 just got coroutines, lexical closures, and tail calls - sounds an *awful* lot like Scheme, no? :)
      -toomuchPerl

    3. Re:Scheme by makapuf · · Score: 2, Interesting

      this blog seems to be very interesting about how and why continuations, coroutines, closures, and the usual suspects (microthreads, ..) will be implemented in Parrot, by one of the main contributor of Parrot (he wrote the book about perl6)

      So ... RTFB

    4. Re:Scheme by Elian · · Score: 2, Interesting

      Choosing a Scheme VM would've meant we'd have chosen a VM written for a language that nobody in the perl internals development community is fluent in, and use it to implement a language that most of the folks I know of in the Scheme community view with a (at best) barely disguised loathing. Rolling our own was the least bad of the options available.

    5. Re:Scheme by Elian · · Score: 3, Informative

      Yup, we're doing continuations. We've actually switched to a full continuation-passing calling scheme, as it makes a number of things rather easier.

      We have, however, hidden that in most cases, so you generally don't need to fiddle with, or even care about, continuations if you don't want to. They're certainly not exposed by default at the language level so the python folks, for example, will never have to deal with them. (Nor will the perl or ruby folks if they don't want to) It's only if you're writing assembly directly, and even then it's pretty darned easy to not have to think about them.

    6. Re:Scheme by toomuchPerl · · Score: 2, Interesting
      What are these social, political, technical, and engineering reasons? Has this ever been discussed anywhere prior?

      Whether or not my perspective is wrong, my view is this:

      • Social and political reasons are really one and the same. Social reasons *are* political reasons, and vice versa.
      • The same ties in with technical and engineering problems.
      • What exactly do politics have to do with programming languages?
      • There are no engineering reasons to back down from anything, if everything you do is a kludge upon the old system. (flame coat on) See Perl 5 for example. :)

      Also, to reiterate, I'm not saying a pure Scheme interpreter. But the semantic model of Scheme matches all these languages very closely, and there are a good number of Scheme bytecode-based interpreters available. It makes sense to not only support Scheme, but to also seriously consider it from a design standpoint.

      Why is Scheme viewed as the ugly cousin, with Perl, Ruby, and Python ganging up? And more importantly, why do Ruby and Python communities look down so snobbishly upon Perl?

  3. Re:$perl %syntax @sucks by ichimunki · · Score: 4, Interesting

    Um. There are scads of Perl web development books written by people who DO NOT know what they're doing. And thousands more actual web developers working in Perl who don't know what they're doing as a result. I know. I used to be one of them. Language wars are a waste of time. The original post was probably off-topic, since this is not a general "criticize Perl" thread. Indeed, the sigil change issue has been answered for Perl 6. The sigils will no longer change. However, there are many of us who find the character indicates type characteristic of Perl to be distracting. In a truly OO language, this can only lead to pain and suffering. If Perl OO is to be more than a hack, the sigils have got to go.

    In any case, the concerns about context are completely baseless. So what? It's not like context is subjective in Perl. It's just a factor to deal with when programming. It makes the code more expressive with less effort. That's one of the stated goals of Perl: laziness. In this case, it's a great idea. Not one that is perfectly implemented in Perl, necessarily, but nonetheless a fantastic notion.

    --
    I do not have a signature
  4. Could anyone please explain why? by Deagol · · Score: 2, Insightful
    Don't get me wrong -- I fell in love with perl ten years ago. I bought myself a handful of O'Reilly books that began my journey as a competant unix admin: Learning Sed and Awk, Learning Vi, and Learning Perl. Each book seemed to naturally lead to the other. While the first two have each had one update since then, the perl book had three (I think).

    I use sed, awk, vi, and perl the same way I did back then -- as the best damned text processing tools on the planet. Sed, awk, & perl haven't really changed at all.

    Sure, there's no reason that I can't continue to use perl the same way I always did. And I don't berate people for using perl's vast capabilities.

    But why does this once-elegant and simple tool continue to mutate and grow into the monstrosity it is? Why didn't Larry just start a totally new project? Why didn't perl (at around, say, version 4) just stop growing and simply go into maintenance mode (for example, adapting to larger capacity since memory and disk have grown by leaps and bounds since then)?

    I ask an honest question from soneone who's only sat on the fringes of programming. I used (and still use) perl only for basic text massaging. What need does the now-huge perl fill? Do these new-fangled languages like ruby and python fit the same need, just different approaches?