Posts

  • Pacific++ 2017 Trip Report

    The first Pacific++ conference was held in Christchurch, New Zealand on October 26th and 27th 2017. I was lucky enough to attend as a speaker so I got the full conference experience.

  • Coroutines and Reference Parameters

    Traditionally, C++ functions that take parameters by reference have been able to rely on the objects bound to such references outliving the execution of the function. However, things are not so simple when your function is a coroutine; such functions can be suspended and resumed, returning to their caller before they have finished executing. In this article I show how this violation of long-standing expectations can lead to subtle bugs in coroutine code and describe some approaches for avoiding them.

  • Auckland C++ Meetup 2016-11-08

    The Auckland C++ Meetup on 2016-11-08 was hosted at WhereScape, as have been the previous meetups. This meetup featured two talks: one by myself and one by Nick Sarten.

  • Free Monads in C++

    I present a way to use modern C++ metaprogramming techniques to represent Functors and Monads in a way that is analogous to the way it is done in Haskell. I show how a generic free monad can be written such that any Functor has a corresponding free monad.

subscribe via RSS