in reply to Re^2: compiling perl scripts aka why is perl not as fast as C
in thread compiling perl scripts aka why is perl not as fast as C
I think what you want could be done is something like a cerl corresponding to cython, such that you can write and embed (statical typed!!!) C but using Perl syntax.
Just for time critical inline snippets.
But while the WP page claims fantastical speed-gains I just read an interview with Guido van Rossum stating that for unpolished general code the speed gain diminishes to only about 50%...
Wow, indeed worth the trouble ... ;-)
And Python is known to have a much slimmer implementation than Perl, so try to figure out where the gain will be here... !
A general solution can be rather found in JIT Just-in-time compilation, just check for the recent speed gains achieved for JS.
But please note: JS is even much slimmer than Python!
Cheers Rolf
|
|---|