~/talk

Dissecting HelloWorld: Kotlin & Java

Talkat Devoxx Belgium 2019 · 2019-11-04..11-08· [java, compilers-and-language-design]
links:none on file
slides:none on file

Uses javap on JDK class files to show concrete differences: Java HelloWorld bytecode shows major version 55 vs 52, a constant pool of ~30 entries, a default constructor and an explicit object.<init>, while Kotlin-generated class files have constant pool: ~30 vs >50 entries with a giant runtime-visible kotlin.Metadata annotation, no constructor, and an aload_0 that loads the String[] (not this) plus Kotlin intrinsics for null-checks; also a mysterious ldc 0 appearing before println.

AI-written summary · about

  1. 0:00Start
  2. 1:44Bytecode
  3. 3:00Output
  4. 3:42Java Example
  5. 5:35Method Ref
  6. 6:41Kotlin
  7. 11:02Second Example
~/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.