5 ms·
Or just transpiling into C...
by jlarocco 8y ago
Or just transpiling into C...
- make3 8y agoyou can't do this without type information
- ninkendo 8y agoNor could you with Perl to Rust...
- hardwaresofton 8y agoTrue -- I thought rust just because it's what I write in lately (and some of it's benefits over raw C) but this would be equally true, C/C++ would make just as much sense. BTW over in the land of things-that-maybe-shouldn't-be-things: https://metacpan.org/pod/App::perl2js https://metacpan.org/pod/App::perl2js
- tyingq 8y agoI don't think you can transpile Perl. Maybe a subset. https://www.perlmonks.org/index.pl?node_id=663393 https://www.perlmonks.org/index.pl?node_id=663393
- willthechill 8y agoRPerl is a Perl 5 transpiler. We started with a low-magic subset of Perl 5, and are now slowly moving into the medium-magic parts of Perl 5 like regular expressions and Moo(se) and databases etc.
- rurban 8y agoSee B::C and B::CC, the compilers to static C. Also called the perl-compiler. B::C just jumps into the libperl run-time, but B::CC even tries to optimize away many slow run-time functions, because it knows much more about the code and data. perlcc compiles your perl code into native code and runs it. It's very stable, because I'm maintaining it, and it's used in production.