Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Runtime introspection: What good is it?

by Pic (Scribe)
on Jul 06, 2008 at 18:21 UTC ( [id://695851]=note: print w/replies, xml ) Need Help??


in reply to Runtime introspection: What good is it?

Premise: There's nothing that can be done with run-time introspection that cannot be done (better) by compile-time decision taking.

I believe that JIT is a counter-argument to your premise. It's not strictly relevant to the kind of code you're interested in, but the kind of optimizations JIT does (which are a great performance boon) simply cannot be done compile-time.

  • Comment on Re: Runtime introspection: What good is it?

Replies are listed 'Best First'.
Re^2: Runtime introspection: What good is it?
by chromatic (Archbishop) on Jul 07, 2008 at 05:59 UTC

    Sure they can -- just not as well.

    Okay, you can't use the polymorphic inline cache strategy at compile-time, but you can predict which variant will get called the most and emit instructions to redispatch if necessary. (I don't know of any JITs which recompile the dispatch when the call characteristics change, but I can imagine that it's possible. Factor may; I think I read something about that.)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-25 16:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found