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

Re^4: sourcefilter with complete parser?

by raiph (Deacon)
on Dec 16, 2013 at 19:15 UTC ( [id://1067361]=note: print w/replies, xml ) Need Help??


in reply to Re^3: sourcefilter with complete parser?
in thread sourcefilter with complete parser?

My theory is that it's pretty feasible to create a new language which is a subset of Perl5 or Perl6 and creates acceptable JS.

Have you considered helping Pawel Murias, Jimmy Zhuo, Reini Urban, Zaki Mughal, Tokuhiro Matsuno et al progress the JS backend for NQP? Note that while that project's main goal is to compile Rakudo Perl 6 to JS (which is why the repo is called rakudo-js), the interim goal is to compile the much simpler NQP to JS and (based on comments by pmurias) the project is quite close to achieving this lesser goal.

Achieving this lesser goal would mean a few things potentially relevant to your quest:

  • There'd be a Perlish lang (NQP -- not quite a small subset of P6) that targets JS (in addition to PIR/Parrot, Java/JVM, and MoarVM).
  • There'd be a Perlish toolkit (also called NQP) for easily creating langs, dialects, and compilers that automatically target JS (and NQP's other backends).
  • Anything you did to improve JS codegen would be leveraged by all langs/compilers in the NQP ecosystem (NQP itself, P6, phpish, rubyish, yourlang, et al).

Replies are listed 'Best First'.
Re^5: sourcefilter with complete parser?
by LanX (Saint) on Dec 16, 2013 at 21:45 UTC
    I'm was considering now...

    But B::Deparse has my priority and each time I looked into perlito it resulted into mail dialogs with Flavio.

    I need a projects which keep me entertained and B::Deparse is fun ... and last time I talked to Reini in Kiev he wasn't too fond about porting to JS.

    But you might help me with your expertise:

    Do you know any Perl6 on Perl5 implementation?

    Or at least a P6-parser in P5 and/or a consistent language specification?

    UPDATE

    Or s/Perl6/NQP/ for last three questions.

    Cheers Rolf

    ( addicted to the Perl Programming Language)

      last time I talked to Reini in Kiev he wasn't too fond about porting to JS.

      Was he specifically talking of the JS backend work for NQP or just the notion of (targeting) JS in general?

      Anyhoo, I suggest you speak to Pawel Murias. He's playing in the same space as you (perlish langs, parsing, compiling, generating JS). You can leave a message for him on the IRC freenode channel #perl6 with something like "preflex: tell pmurias Perl 6 rules".

      Do you know any Perl6 on Perl5 implementation? Or at least a P6-parser in P5?

      Larry Wall's viv?

      a consistent language specification?

      There's specs aka "Perl 6 specification documents". These specs are the most up to date, complete, and self-consistent human language documents we have that are part of specifying Perl 6.

      The executable "roast" test suite for testing any P6 implementation, and Rakudo's executable P6 Grammar and Actions, can also be considered effective specification.

      Or s/Perl6/NQP/ for last three questions.

      In the same way that a P6 is effectively specified by code such as its grammar/actions and test suite, so NQP is effectively specified by its code such as its test suite and Grammar and Actions.

      HTAAOF :)

        Thanks for the links!

        > Was he specifically talking of the JS backend work for NQP

        We didn't talk about NQP. :)

        Cheers Rolf

        ( addicted to the Perl Programming Language)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2024-03-28 18:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found