Native Desktop Apps in Roc
summary
Roc is a bleeding‑edge functional language that already builds small native apps: terminal game rocktris, SDL2 fireworks, and a hardware‑accelerated breakout that render straight to the GPU and actually run. Compiles to optimized binaries and cross‑compiles (demo: mac → Linux via surgical linking). Measured memory: rocktris ~2 MB, fireworks ~33 MB, breakout ~68 MB; on‑disk sizes: 2.4 KB/0.1 MB/7.1 MB (hello = 7.1 MB, breakout adds 49 bytes). Platforms (wgpu‑rs, SDL2) carry most overhead; runtime uses reference counting (no GC pauses) and the demos work as claimed.
AI-written summary · about
chapters (17)
- 0:00Introduction to Rock
- 1:10Desktop apps in 1998 vs now
- 3:03The impact of web apps
- 4:26Language choices and culture
- 6:57Designing the Rock language
- 9:11Goals for desktop development
- 10:26Demos: Rocktris and fireworks
- 12:39Cross-compiling demo
- 14:50Demo: Breakout game
- 16:15Rock code structure
- 19:49Deep dive into Breakout code
- 27:25Error messages and debugging
- 29:29Resource usage analysis
- 33:03Performance and architecture
- 36:25How cross-compilation works
- 40:05Future roadmap for Rock
- 44:15Q&A session
