Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
ext
 
 
lib
 
 
t
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Live

About

This is perl without CPAN/POSIX/XS/Bundled Modules, aka just perl and none of the fluff. It is derived from the microperl and miniperl build files of the perl-5.16.3 code.

Installation

  • Linux
make
make plutest
./plu -e "print 'hello world'"
  • Emscripten (Console)
make -f Makefile_emcc CONSOLE=1
cat entry_point.js plu.js > plu.run.js
node plu.run.js virtual_file.pl
  • Emscripten (for Web)
make -f Makefile_emcc
cp plu.js to web_repl/js/microperl.js
Open web_repl/repl.html in a browser !

There is also a CONSOLE=1 make option which generates plu.console.js, for debugging.

Shoutout

TODO

  • Unit test emscripten code.
  • Write limitations.
  • Select a few CPAN modules for bundling.
  • REPL (Read-Eval-Print Loop) oriented towards beginners.
  • s/js/perl/ ? (Don't think so, but a possibility).
  • Experiment with the perl source code for fun and profit !

License

Artistic License 1 + GPLv1-or-above

About

perl5 for JS via Emscripten.

Resources

License

Releases

No releases published

Packages

No packages published