~/talk

Starting from Scratch with Scala Native

Talkat Scala Days New York 2018 · 2018-06-19..06-21· [embedded-and-hardware]
slides:none on file

Introduction to using Scala Native for systems programming with concrete results: implements a max-finder and an in-memory sorter over the Google Ngrams dataset, using qsort + malloc + scanf + fgets and explicit structs, pointers and stack allocation. Benchmarks show native startup and throughput advantages — e.g. 4.7s vs 5.4s on 100MB, native 15s vs JVM 29s at 500MB, native 30s vs JVM 90s at ~1.1GB, native 43s vs JVM 186s on 1.7GB — and the implementations work and scale with far less allocation pressure.

AI-written summary · about

  1. 0:00This talk is about
  2. 0:58Talk Outline
  3. 1:58About Me
  4. 2:48Scala Native is
  5. 5:11The Basics
  6. 8:24Systems Programming
  7. 12:01What's a CString?
  8. 16:53Stack Allocation
  9. 18:28Heap Allocation
  10. 24:09Google NGrams
  11. 25:26Maximum Count (JVM)
  12. 25:58Maximum Count (Native)
  13. 28:02Find Maximum Count
  14. 30:36Performance
  15. 32:05Sorting NGrams
  16. 32:27Sorting: JVM
  17. 33:21What's a CStruct?
  18. 34:02Modeling an NGram
  19. 34:58Sorting: Native
  20. 39:34Aggregation: Native
  21. 40:02Reflections
  22. 43:12Hardware is Changing
~/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.