Hands-on Scala-Native
summary
Scala Native compiles Scala to native binaries via ScalaC → LLVM and claims fast startup, C interoperability and garbage collection; setup is an sbt plugin. The demo ports a C bandwidth monitor: uses getifaddrs and gettimeofday, maps C structs to Scala with cstruct/implicit accessors, renders with enurse, and accumulates deltas in a bounded queue to draw histograms; it runs and shows spikes up to 1 MB/s observed. Notes include a 22-field limit on struct mappings, upcoming GC and Windows work, and an automatic binding goal.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 5:39Bandwidth Monitor
- 11:28Interfaces
- 15:54Extract bitrate
- 19:26Draw graphs
- 26:52Whats next
- 29:20Conclusion
- 30:00Question
- 35:09Outro
related talks
29mA brief introduction to systems programming, with Scala Native
27mScala and C – tight as brothers
35mA Deep Dive into Scala Native Internals
30mExploring JVM Innovations Through the Lens of Scala Native
48mFast, Simple Concurrency with Scala Native
41mBootstrapping the Web with Scala Native
32mCyfra: Scala on GPU
06mInterview
