Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re^5: Perl 5 Optimizing Compiler

by eyepopslikeamosquito (Chancellor)
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 article (2001), which explains why making Perl as fast as C is problematic.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (12)
As of 2016-10-25 16:30 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (323 votes). Check out past polls.