Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^5: Perl 5 Optimizing Compiler

by eyepopslikeamosquito (Canon)
on Aug 13, 2012 at 08:40 UTC ( #987073=note: print w/ replies, xml ) Need Help??


in reply to Re^4: Perl 5 Optimizing Compiler
in thread Perl 5 Optimizing Compiler

From Type system (wikipedia):

Certain languages, for example Clojure, Common Lisp, or Cython, are dynamically typed by default, but allow this behaviour to be overridden through the use of explicit type hints that result in static typing. One reason to use such hints would be to achieve the performance benefits of static typing in performance-sensitive parts of code.

So, to get close to (statically typed) Java in terms of speed, Perl 5 would need to make significant tweaks to its type system and the way it handles polymorphism, as indicated by chromatic's response. See also MJD perl.com article (2001), which explains why making Perl as fast as C is problematic.


Comment on Re^5: Perl 5 Optimizing Compiler

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://987073]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2014-09-03 05:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (35 votes), past polls