~/talk

From Scala to ByteCode...

links:none on file
slides:none on file

Shows exactly what scalac and javap produce: scalac phases: 25 steps culminating in a JVM generation phase, class files hold a constant pool, field/method tables and bytecode instructions (there are about 200 JVM opcodes). Demonstrates concrete artifacts: Scala objects create companion classes like Config and Config$, traits become interfaces plus a $class with static impls, lazy vals use a bitmap plus monitor enter/exit for thread-safe init (about 30 lazies per int bitmask), and @specialized spawns many primitive-specialized class permutations.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 1:23Bytecode basics and JVM
  3. 3:39Scala compilation phases
  4. 6:36Class file structure
  5. 9:06Constant pool explained
  6. 12:30Method bytecode details
  7. 14:16Demo of bytecode execution
  8. 16:05Scala features in bytecode
  9. 16:50Scala objects vs Java static
  10. 17:53Scala case classes
  11. 19:41Scala traits implementation
  12. 21:28Multiple trait inheritance
  13. 22:34Method references in Scala
  14. 25:44Lazy values implementation
  15. 27:54String and function specialization
  16. 30:08Specialized function types
  17. 31:15Function currying in bytecode
  18. 34:21Q&A and closing
~/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.