Nim Metaprogramming in the real world
- Track: Nim Programming Language devroom
- Room: D.nim
- Day: Saturday
- Start: 17:00
- End: 17:40
- Video with Q&A: D.nim
- Video only: D.nim
- Chat: Join the conversation!
Metaprogramming in Nim is very powerful. But why would you use it? How is it used in the real world? We will explore the "power levels": starting from generics, continuing to templates and finally arriving at macros.
We will first look at generics usage in VMath (Vector Math Library) and Jsony (JSON Parsing Library). Then we will continue on to templates and how they are used in VMath and Windy. Finally we will look macros, the top of the "power levels", and how they are used in Shady (a Nim to GLSL compiler) and Genny (Generates bindings for Nim libraries).
Speakers
Andre von Houck |