~/talk

Nashorn Under the Hood: Making This Rhinoceros Thunder

Talkat GOTO Chicago 2015 · 2015-05-11..05-14· [javascript]
links:none on file
slides:none on file

Nashorn is a JavaScript runtime in OpenJDK that always compiles to JVM bytecode (no interpreter), using parameter type specialization, static local type inference and optimistic typing to generate tight int/double/object-specialized variants on demand. It uses lazy compilation and on-stack recompile via exception handlers to replace code while running. Practical guidance: reuse a single ScriptEngine, precompile scripts or use single global bindings to cut median latency from hundreds of ms to ~35–60ms; enabling optimistic typing drops median to ~12ms but raises startup from ~3s to ~4.7s (type cache can drop it to ~3.5s).

AI-written summary · about

  1. 0:00Introduction to Nashorn
  2. 4:19Compiler optimizations
  3. 11:16Handling dynamic types
  4. 21:08De-optimization mechanism
  5. 22:05Integrating with web systems
  6. 33:50Advanced tuning and results
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.