Brussels / 1 & 2 February 2020

schedule

Async await in Nim

A demonstration of the flexibility metaprogramming can bring to a language


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

Links