~/talk

Typing in Java, Kotlin and Scala

Talkat Devoxx US 2017 · 2017-03-21..03-23· [java, kotlin]
slides:none on file

Compares Java, Kotlin and Scala on concrete examples: Java requires casts for a generic Layout.rotate and loses type precision after compilation, Kotlin uses Kotlin extension functions plus reified inline generics to return a Layout<Vertical> from a Layout<Horizontal> without casts, Scala uses Scala covariance/contravariance (+/−) to model box relationships and enforces safe render signatures, all three suffer JVM type erasure so solutions use TypeTags/shapeless or compiler tricks; examples and bytecode/benchmarks live in the GitHub repo.

AI-written summary · about

  1. 0:00Intro
  2. 0:27Disclaimers
  3. 1:11Bias
  4. 1:40Kotlin
  5. 5:12Refactor
  6. 5:28Rotate
  7. 8:35Type Parameters
  8. 10:24State
  9. 11:28Type Orientation
  10. 14:55Scala Type Orientation
  11. 17:06Covariance
  12. 18:50Rerender
  13. 21:25Variants
  14. 26:48Type erasure
  15. 26:58Generic parameters
  16. 28:25Type erasure strategies
  17. 30:22Why is this important
  18. 33:10References
  19. 34:32Reified Generics
  20. 37:18Erasure
~/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.