3 ms·
What startup delay and RAM usage do you think is just too large to be acceptable for a small script, no matter how good a language/compiler is in other respects
by raiph 12y ago
What startup delay and RAM usage do you think is just too large to be acceptable for a small script, no matter how good a language/compiler is in other respects?
- Roboprog 12y agoGood question, and I'm not even sure. Perl 5 on my Mac is about 1.2 MB resident to run a one-liner, though, and I'm pretty sure I can't load the JVM in 1 or 2 MB. Need to follow up on that to find smallest practical Java program (as a contrast) Similarly (same laptop), I can get perl to print its version (5.16.2) in about 0.01 secs (2nd time), but java (1.8.0_11-b12) takes about 0.11 secs (2nd time). Most of my work is in Java, but it gets to be a tyrannical hammer that must be used for everything in some minds :-( Again: Parrot having to compete with the JVM makes me sad.
- raiph 12y agoFwiw most Rakudo devs now prefer MoarVM for most things because it's generally the fastest, leanest, least buggy and most specification compliant of the currently available backends (MoarVM, JVM, Parrot). MoarVM is definitely the right pick for folk who want the leanest startup P6 can deliver. http://moarvm.org/ http://moarvm.org/ Even with the MoarVM backend, Rakudo takes a lot more time and RAM to startup than the compiler for most mainstream languages. It handily beats the JVMs devs use but that's not saying much. On the third hand, a few devs have said they are regularly using Rakudo at $work, including for one-liners. If anyone wants to try P6 I recommend RakudoBrew: https://github.com/tadzik/rakudobrew https://github.com/tadzik/rakudobrew