💾 Archived View for gemini.bortzmeyer.org › fosdem › event-11334.gmi captured on 2023-03-21 at 01:03:04. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2021-12-17)
-=-=-=-=-=-=-
Peter Munch-Ellingsen
Type devroom
Nim meta-programming for 0-cost abstraction on microcontrollers
Starts on day 2 (2021-02-07) at 17:30 (Brussels time, UTC+1) in room Declarative minimalistic (duration 00:30)
Matrix room #declarative minimalistic:fosdem.org
Nim is a statically typed language with a comprehensive meta-programming system. This makes it a really nice fit for micro-controllers, or otherwise hardware constrained environments (or to just use less resources in general). Based on my experiences with Nim and micro-controllers I'll dive into how meta-programming, DSLs, and Nims rich type system can be used to make nice readable code for micro-controllers without any added overhead compared to C. Both in terms of code-size, but also in terms of speed, in fact the code executed on the controller is pretty much the exact same thing, but with vastly improved ergonomics.