~/talk

Live Coding Kotlin/Native Snake

Talkat KotlinConf 2018 · 2018-10-03..10-05· [kotlin]
slides:none on file

Live codes a playable Snake implemented with Kotlin/Native, building and running a standalone ~700 KB single-threaded binary, using pregenerated C bindings to ncurses for terminal UI, unit tests for movement and turning, and a functional immutable snake model. Shows memory management patterns: manual C allocation, arenas and memScoped with defer for cleanup, apple spawning, growth logic, collision and game-over detection, and pushes code to GitHub where it can be inspected.

AI-written summary · about

  1. 0:00Kotlin Native introduction
  2. 5:13Project setup and tools
  3. 8:31Developing game logic
  4. 12:55Ncurses terminal UI
  5. 18:13Game loop and input
  6. 22:21Memory management
  7. 25:09Game mechanics and rules
  8. 30:58Adding apples and growth
  9. 37:53Conclusion and takeaways
~/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.