~/talk

A Classfile API for the JDK

slides:none on file

Claims a new standard JDK Class-File API (JEP 8280389) that parses, generates and transforms class files with a model-driven element stream core, immutability and lazy parsing. Builds a concrete API: element models + builders + composable transforms, uses java.lang.constant descriptors instead of raw strings, and optimizes with constant pool sharing to bulk-copy unchanged bytes. Results: nicer ergonomics than ASM, do-nothing transforms often faster, full-featured but pay-as-you-go parsing when you inspect or modify content.

AI-written summary · about

  1. 0:00Intro
  2. 1:43Processing classfiles
  3. 3:04Why another classfile API?
  4. 6:15A classfile library for the JDK
  5. 8:05Design goals
  6. 11:17Pruning the design space
  7. 12:56Inspirational prototype: generation
  8. 21:14Finding the primitive
  9. 23:01Modeling the classfile
  10. 24:50Turning the model into an API
  11. 26:54How it all fits together
  12. 28:22Example: reading classfiles
  13. 29:24Shoring up builders
  14. 30:19Design principles and goals
  15. 33:32Example: Transformation
  16. 39:22The big trick Constant pool sharing
  17. 41:06Other performance tricks
  18. 45:39Summary
~/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.