~/talk

Java vs. Kotlin: The Ultimate Showdown of Virtual Threads & Coroutines

Talkat Android Worldwide January 2024 · on Tuesday, 2024-01-30· [java, android]
links:none on file
slides:none on file

Compares Kotlin coroutines and Java virtual threads with concrete code and a working Android demo that fetches Simpsons quotes via Retrofit Simpson API; uses suspend functions and ViewModelScope.launch to run network calls off the main thread and manage loading/success/error states with try/catch. Java examples use Thread.ofVirtual().start and Executors.newVirtualThreadPerTask with future.get. Coroutines run many lightweight tasks on a single thread and integrate with Jetpack; virtual threads map to fewer OS threads and excel at high‑throughput blocking I/O.

AI-written summary · about

  1. 0:00Java vs Kotlin concurrency
  2. 3:58Understanding concurrency and asynchronous programming
  3. 5:42Kotlin coroutines overview
  4. 9:59Coroutine benefits
  5. 13:50Live coroutine demo
  6. 18:54Coroutines vs threading
  7. 19:16Java virtual threads
  8. 22:04Java virtual threads demo
  9. 26:45Virtual threads advantages
  10. 28:10Virtual threads features
  11. 29:37Coroutines vs virtual threads
  12. 32:28Q&A
~/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.