Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8371719
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T14:13:53+00:00 2026-06-09T14:13:53+00:00

When it comes to script interpreters, like Rhino, Google V8, Python, etc. – is

  • 0

When it comes to script interpreters, like Rhino, Google V8, Python, etc. – is there any general approach to determining the underlying native methods, given only a string of scripting language?

At some point, do these interpreters use hash maps with strings for keys? Or is there a lot of string equality testing and branches?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T14:13:54+00:00Added an answer on June 9, 2026 at 2:13 pm

    They typically use hash maps with string keys, but the result of a function lookup is typically cached, to avoid having to do the exact same lookup again a few nanoseconds later.

    Of course the cache must be cleared if something crazy happens, like the program assigns to or deletes the function.

    JIT compilers can use inline caching to make predictable function calls run very fast once the cache is populated.

    The compiler can even just spit out machine code that directly calls the underlying function. Again, if the program replaces or deletes that function, the compiled code would then become invalid; so the interpreter must have a way to detect that situation and update or discard the invalid JIT code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My background is C and C++. I like Python a lot, but there's one
I am a bit of a noob when it comes to JAVA script, I
I'm clueless when it comes to PHP and have a script that emails the
Fortunately, I know the script works. The problems comes about that $('input[value=Log Out]').click(); Logout
I've recently come across something like: <form method=get action=/somewebdir/script.php> <input type=radio name=param0 value=foo />
I currently have a script being executed by a program that comes with its
I have a php script that comes down to the following: while ($arr =
I use the Python-mode (not the default one comes with emacs 23). I could
Are there any software packages available for hosting Mercurial repositories on my own server
I'm not a script writer so I'm a bit handicapped when it comes to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.