~/talk

Live Coding Kotlin - Native Snake

Talkat Øredev 2019 · 2019-11-06..11-08· [kotlin]
slides:none on file

Live-codes a playable Snake written in Kotlin/Native that uses ncurses for terminal UI, Gradle for builds and Kotlin/Native C interop via LLVM, with tiny unit tests for movement and turning. Builds a 1.6MB standalone binary, implements apples, growth (growthSpeed = 3), and halfDelay 200ms input; memory uses reference counting plus memScoped/defer for C allocations. The game runs, grows when eating apples, and dies on wall or self collision.

AI-written summary · about

  1. 0:00Start
  2. 3:29Runtime Implementation
  3. 5:42Source Code
  4. 14:25Init Screen
  5. 21:15Half Delay
  6. 22:13Tail of the Snake
  7. 23:33Moving Snake Around
  8. 25:39Navigation
  9. 27:33Reference Counting
  10. 29:19Zoned Memory Allocation
  11. 29:46Mem Scope
  12. 43:28What You Can Do Next
~/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.