Perl5 in the browser update

Perlito5 is an ongoing implementation of perl5, with a javascript backend. The compiler is written in perl5. It compiles itself to javascript, so it can run in a browser.

The test suite can be run with node.js. It now passes 288 tests. About a hundred of these tests are from the official perl5 test suite.

$ prove -r -e 'node perlito5.js -Bjs' t
t/base/cond.t ...................................... ok
t/base/if.t ........................................ ok
t/base/lex.t ....................................... Failed 37/57 subtests
t/base/num.t ....................................... ok
t/base/pat.t ....................................... ok
t/base/rs.t ........................................ No subtests run
t/base/term.t ...................................... No subtests run
...

2 Comments

Interesting thanks.
Can I ask, what's your motivation for having Perl in the browser?

Leave a comment

About Flávio S. Glock

user-pic I blog about Perl.