Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Update, Oct 2014: Concurrency in P6 has developed a long way since I wrote this post. This video briefly runs through the Functional Programming paradigm features that have been implemented, including Promises, before discussing the latest Object Oriented paradigm work, including Monitors, Actors, and Evject.


Thread and Promise prototypes in Perl 6.

Some background:

Evidently the time has come to fully develop concurrency and parallelism features in Perl 6.

The Perl 6 language design team led by Larry Wall has discussed concurrency and parallelism for over a decade. So every element of the P6 language has been considered in the light of concurrency and parallelism, from variable assignment on up. But that's just design.

There's also been implementation work done. However, Rakudo (the leading P6 compiler) has surfaced very little of this work (gather/take is about it) and while Niecza (another compiler) has long exposed continuations, coroutines, and threads, Niecza's author Stefan O'Rear basically stopped working on Niecza a year ago. (Imo this is good news; read on.)

Until recently the Rakudo compiler only worked on one backend, the Parrot VM. While it supports concurrency, Parrot's support has never been considered reliable enough by the Rakudo team for them to develop more of the concurrency features in Rakudo.

Recently the Rakudo team began porting it to work on the JVM. One of the primary motivations claimed was to unblock development of concurrency and parallelism features.

Starting at YAPC::NA 2013, at the start of June, Stefan O'Rear began working on the JVM port. In the last week or so he made JVM concurrency primitives available to NQP, which is what's needed to implement them in Rakudo. And thus, in the last few days, jnthn published an initial prototype. It already looks promising...


In reply to Thread and Promise prototypes in Rakudo by raiph

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2024-04-24 09:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found