Async await in Nim
A demonstration of the flexibility metaprogramming can bring to a language
- Track: Minimalistic, Experimental and Emerging Languages devroom
- Room: AW1.125
- Day: Sunday
- Start: 16:40
- End: 17:00
The most basic API for async IO that is high level uses callbacks, but working with those becomes convoluted very quickly. A great solution is async await, but implementing it in a language is a complex endeavour. That is unless your language is flexible enough with strong enough metaprogramming support to make it possible to implement it without modifications to the compiler. Nim is one such language and its async await implementation is entirely implemented inside the standard library. In this talk I will describe how async await in Nim works, both at the syntax level and the event loop level.
Speakers
Dominik Picheta |