~/talk

MethodHandles Everywhere

Talkat Jfokus 2018 · 2018-02-05..02-07· [java, compilers-and-language-design]
slides:none on file

MethodHandles are shown as fast, composable function pointers that the JVM can inline: method handle trees combine direct calls, adapters like guardWithTest and catchException, and low-level ops such as varhandle compareAndSet and volatile reads. Java 9 adds loop combinators and VarHandle views (e.g., treating byte[] as longs) and a simpler try/finally. An experimental JRuby AST-to-MethodHandle compiler runs natively after raising the JIT threshold from 10,000 to 100,000, proving practical but with longer warmup.

AI-written summary · about

  1. 0:00Intro
  2. 0:48Method Handles
  3. 1:50What Did We Need?
  4. 3:09JSR-292
  5. 3:54MethodHandle API
  6. 5:22Like Reflection?
  7. 8:52Invoking a Handle
  8. 10:10Hello, Handles!
  9. 11:18Combining Multiple Handles
  10. 14:05try/catch
  11. 14:52More Adaptations
  12. 17:44Missing Features
  13. 18:58try/finally
  14. 20:25Loops
  15. 21:31VarHandle
  16. 25:04InvokeBinder
  17. 26:11Basic Use
  18. 28:31Turing Complete?
  19. 29:04Ruby "Compiler"
  20. 34:16Results
  21. 35:40Better Streams
  22. 37:22Wrapping Up
~/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.