http://www.perlmonks.org?node_id=991497


in reply to Re: Perl 5 Optimizing Compiler, Part 5: A Vague Outline Emerges
in thread Perl 5 Optimizing Compiler, Part 5: A Vague Outline Emerges

Could Perlito function something like PyPy does for Python? If Perlito can make an AST, would it be possible to use RPython as a target for that AST?

Replies are listed 'Best First'.
Re^3: Perl 5 Optimizing Compiler, Part 5: A Vague Outline Emerges
by fglock (Vicar) on Sep 04, 2012 at 08:56 UTC

    Yes, Perlito creates an AST. I've been considering RPython as a possible backend.

    $ node perlito5.js -Cast-perl5 -e ' print "hello, World!" ' [ bless({ 'body' => [ bless({ 'arguments' => [ bless({ 'buf' => 'hello, World!', }, 'Perlito5::AST::Val::Buf'), ], 'code' => 'print', 'namespace' => '', }, 'Perlito5::AST::Apply'), ], 'name' => 'main', }, 'Perlito5::AST::CompUnit'), ]