~/talk

Live Coding Kotlin/Native Snake

Talkat Voxxed Days Zurich 2019 · on Tuesday, 2019-03-19· [kotlin]
slides:none on file

Live codes a playable Snake written in Kotlin/Native that compiles to a terminal binary using Gradle, pregenerated POSIX bindings and ncurses for UI; implements unit tests, immutable game state (snake, apples, score), and apple spawning, and shows memory management with memScoped/defer and explains Kotlin/Native’s reference counting. The result is a working terminal game (~1.3 MB binary) that moves and grows correctly. Caveats: Beta tooling, slow compilation and rough IDE support, but native interop and runtime behavior demonstrably work.

AI-written summary · about

  1. 0:00Introduction
  2. 0:30What is Kotlin Native
  3. 4:52Why Kotlin Native
  4. 5:45Live Coding
  5. 8:48Snake
  6. 13:15Tests
  7. 14:15Screen
  8. 15:03Window
  9. 16:08Running from normal terminal
  10. 16:49Print to screen
  11. 18:32Bridge code
  12. 20:28Input
  13. 20:58Dont Move
  14. 21:16Move
  15. 23:04HalfDelay
  16. 24:12Snake Changes Direction
  17. 27:00Snake Direction
  18. 27:54Memory Management
  19. 32:11Game refactoring
  20. 34:15Game is over
  21. 35:57Apples
  22. 37:37Draw function
  23. 38:20Snake function
  24. 40:09Snake growth
~/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.