Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: A "Perl-7" that I could actually USE right now

by derby (Abbot)
on Jun 23, 2013 at 11:58 UTC ( #1040322=note: print w/ replies, xml ) Need Help??


in reply to A "Perl-7" that I could actually USE right now

I think the Moose (and Moo and Mouse) devs are doing a brilliant job of wringing out performance and if I was one of those devs, I would find a general requirement like "25% more efficient" kinda insulting. If you want to dig, find bottlenecks and post them so that they can make their projects better, I'm sure they'd appreciate the hell out of that.

Ovid had a nice blog piece along the same lines -- renumbering 5.20.0 to 7.0.0 -- I think the general consensus was no. In that blog piece, there is talk about project Moe which may be what your after.

-derby


Comment on Re: A "Perl-7" that I could actually USE right now
Re^2: A "Perl-7" that I could actually USE right now
by Jenda (Abbot) on Jun 23, 2013 at 12:48 UTC

    I must have missed that blog post. I'd be one more vote in favour of the proposal. A rewrite that turned into a totally different thing and is ten years overdue, but that blocks the next version number has caused enough damage already. Let's skip the number and force rename of the rewrite!

    I love what "themoniker" wrote in the comments to that blog post. It's spot on.

    Update: In a fairly strongly worded response to my recent comment to that post Aristotle suggested that I look at the git repositories of the various Perl6 related projects. OK, so let's have a look how live is that.

    Rakudo contributors - jnthn 4,178 commits; moritz 2,590 commits; pmichaud 2,363 commits; then a steep fall to colomon at 607 commits (very active in 2010, almost disappeared after that); going down to masak at 295 commits and particle at 226 commits (masak commits now and then for years, particle disappeared in early 2009); then we have coke (205) and tadzik (204) - both active mainly in 2011 but still committing now and then. The rest is under 100 and most of the charts show a spike somewhere and nothing before or after. By the time we get to the 30th name we are down to 12 commits.

    NQP contributors - jnthn 2,400 commits; pmichaud 850 commits; moritz 298 commits (haven't I seen those names somewhere?); then down to arnsholt at 97 commits, sorear 78 commits, bacek 59 commits; masak 46 commits. After that we see the familiar pattern of a spike and disappearance with an occasional exception. By the time we get to the 30th person we are down to 4 commits.

    MoarVM contributors - jnthn 943 commits; diakopter 637 commits; japhb 58 commits; zhuomingliang 20 commits; the rest looks strangely familiar. A small spike somewhere on the axis.

    Now there are recent commits in those projects, there just doesn't seem to be many people involved and the "employee" retention would get the HR manager fired.

    Jenda
    Enoch was right!
    Enjoy the last years of Rome.

      ++, nice points
      I was disappointed somewhat by verdict on p5p on this - "we're just not discussing it, please stop, the idea is stupid, dixi..."

      have a nice day :)

      Update: Realized I was giving JimmyZ and Arnsholt, much as I love 'em, a little too much credit. ;)

      You seemed to have assumed that you've picked three key repos and that if some folk slowed commits to the main branches of these 3, then P6 dev was slowing and the missing contributors had slowed their contribution to P6. These assumptions are incorrect, as are others such as all commits and contributors being equal. Line count isn't going to be a better metric either. I recommend you visit the IRC channel #perl6 on freenode and ask questions; you'll get a much better picture of what's really going on.

      At least 13 of the 14 folk you named remain active P6 contributors. (I'm excepting particle; he joined #moarvm a few weeks ago, but afaik he hasn't committed anything in a long while.) 11 of the 14 folk you named are highly active, currently contributing somehow near every day, 5 or more days a week, most for years. (The additional three exceptions are pmichaud, the P6 and Rakudo manager, who is occasionally committing and otherwise contributing but can't be said to be doing so most days; bacek, who contributes in fits and starts but hasn't done so for a few months afaik).

      Of the top 50 contributors to the rakudo\rakudo repo, about 20 speak up on #perl6 pretty much every day and have landed commits to some P6 project repo (not just a personal P6 project) in 2013.

      Of the bottom 50 rakudo\rakudo contributors, I recognize 15 of them as #perl 6 regulars in 2013, some making commits. (The numbers may well be higher than I recognize.)

      The NQP repo includes several Parrot contributors (partly because NQP had a strong overlap with Parrot a few years ago) and Parrot dev has slowed tremendously. Even so, 26 of the 44 committers to the NQP repo since 2009 have NQP repo commits in 2013.

      Ignoring whose contributing to what and how, Rakudo and NQP are both advancing rapidly, imo faster than in any previous period.

      The main action in Rakudo/NQP land right now is getting the port to the JVM to the next level (ready for experiments with parallel processing, running on Android, etc.). I expect that to remain the focus in July, possibly August too. If you're trying to see where this Rakudo action is, follow branches in the Rakudo and NQP repos, or in forks folk have created, related to Rakudo/JVM. Note that since YAPC::NA, sorear, the creator of Niecza, has joined forces with jnthn on this port so now both of these two extraordinary hackers are working on Rakudo.

      Others continue to work on the compiler ignoring the backend stuff. Watch the likes of timotimo, FROGGS, and newcomer ssutch.

      Talking of timotimo and ssutch, note that these are both long time pythonistas that seems to have fallen in love with P6. It's interesting that the P6 project seems to be attracting contributors from outside the Perl world as much as from within. It's also interesting that ssutch was able to jump in to the compiler's guts and produce a working non-trivial patch in his first week of exposure to Perl 6.

      Finally, MoarVM. The MoarVM repo was secret until 4 weeks ago. It has tripled the number of committers it has in 4 weeks, with several new contributors being well known uber hackers. (Chip Salzenberg has joined the channel!)

      Here are the contributor graphs over time for the three repos you looked at: rakudo/rakudo, perl6/NQP, MoarVM/MoarVM. I agree they don't show a significant ramp up, but they don't show a significant ramp down either. The team is getting these pieces done, with or without help from others in the Perl community.

      The above is focused on the three repos you picked. But there's lots more to P6 than those three repos. The module installer and ecosystem, key modules, testing components (including testsuite and japhb's workbench), rakudo debugger, Zavolaj FFI, documentation and so on are all important pieces. Check out the commits reported on #perl6; these are a good first approximation of the key P6 repos.

      In summary, there have long been about 20-30 regulars, 50-70 occasionally returning irregulars, and a trickle of new folk, that are steadily building out Larry's vision.

      Right now the vibe on #perl6 is very positive. The outlook for the rest of this year and 2014 is a joy to contemplate.

      One last thing. Consider P5. I've heard that there are only 3 people in the world who deeply understand the guts of #p5p Perl 5: Nicholas Clark, Dave Mitchell, and Father Chrysostomos, and that they consider it a tough situation. Indeed, one of these three, Nicholas Clark, is now a regular on #perl6, and my understanding is that he sees P6 as being poised to deliver a technically excellent strategic way forward for P5 that sidesteps the deep problems of #p5p P5 without abandoning P5 (Pumpkin or otherwise). Talk of 25% improvement in the speed of the current p5 or Moose is easy; but just you wait until you dig in to the details...

      Really, the best way to understand P6 is to visit the IRC channel #perl6 on freenode and hangout. Try it. I bet you'll like the folk even if you don't like the language!

        What is your fetish for name dropping, are you the celebrity tell-all rag of the Perl-6 cult? How about everyone in your cult stop telling us how good it's going to be and actually SHIP SOMETHING.

        I hadn't assumed a thing. I was pointed to those three repositories. A little earlier I was pointed to the repositories linked from the Perl6 module list. Both were supposed to prove that Perl6 is being actively developed (I never doubted that) and that there is a sizable community around it (which they did not). In summary, as you write, there had been 20-30 regulars, 50-70 occasionally returning irregulars (here I think you are exaggerating a little, yes occasionally they return) and (and here's the main disconnect) "a trickle of new folk". No. There's a trickle of people that come, stay for a week and go.

        I don't doubt there are a few people that work their asses off. I just don't see people flocking to tear the results out of their busy hands. I don't see people waiting eagerly for Perl6 to get into a (for them) useful state.

        Within the echo chamber of #perl6 it certainly looks like there's a lot going on, like there's a lot of life in the project. Outside, strange noises are heard from time to time. Perl Incorporated built a shiny new hall, right next to the main gate, built a highway to ship the planned project, made press releases and superbowl ads ... and failed to deliver anything. The hall is no longer shiny, the highway was partly reused and partly fell into pieces, but in the furthest corner of the huge building, there are three offices and a kitchen still inhabited and from time to time a bunch of school kids comes for an excursion.

        Yep, the groundwork may end up being useful (though the choice of JVM will probably never cease to surprise me). Hopefully.

        Jenda
        Enoch was right!
        Enjoy the last years of Rome.

Re^2: A "Perl-7" that I could actually USE right now
by tobyink (Abbot) on Jun 23, 2013 at 14:40 UTC

    For what it's worth, Mouse is much more than 25% faster than Moose (at least it is on machines where it's been compiled with XS; Mouse::PurePerl is very slightly slower than Moose). While it appears to offer good compatibility with Moose; this is on the surface only. Things start to break if you try to consume a Mouse role in Moose, or extend a Moose class with Mouse.

    Moo has far less of a start-up penalty than Moose, but when it comes to running speed, isn't quite as fast. On the surface it appears less Moose-compatible (but see MooX::late) but it's designed to be able to interact nicely with Moose. You can extend Moo classes with Moose, consume Moose roles in Moo, etc.

    The only places I can see big scope for Moose optimization are:

    • Allow inlining for things like defaults, triggers and coercions. This would slow down the speed at which your class loads, but improve the speed at which it runs.
    • Rewrite large parts of the internals in XS. This would likely improve the speed of Moose itself, but not alter the speed of your class. (It would also make maintenance of Moose more annoying, and thus turn away developers.)

    I've published a couple of modules on CPAN that might be of use if you're trying to eke a little more speed out of a lumbering Moose...

    • Type::Tiny - a type constraint system that's a little faster than Moose's built-in ones. (I have benchmarked it.)
    • MooseX::XSAccessor - which replaces some of your accessor methods with faster XS-based ones, but only when it detects that it can do so without breaking any functionality. (Again, I have benchmarked it.)
    package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name
Re^2: A "Perl-7" that I could actually USE right now
by Ralesk (Pilgrim) on Jun 26, 2013 at 12:12 UTC

    Moe is interesting, but in a recent interview I saw, it wouldn’t become “Perl that is less messy than Perl”, although that had been my first impression when it was first announced.

    It would indeed be a really interesting experiment to create something that’s compatible with most non-abusive uses of p5, but is better defined and cleaner on the inside.

        I’m afraid that anything that’s part of p6 doesn’t fall under the “I could actually USE right now” category :)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2014-08-01 04:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (256 votes), past polls