libprocess – an Actor-based inter-process communication library

Introduction to libprocess In Apache Mesos we make heavy use of the Actor model implemented in the libprocess library: the most recent implementation can be found under the 3rdparty folder in the Mesos repository (here). libprocess was created originally at Berkley by Benjamin Hindman who is also the original creator of Mesos and implements “an … More libprocess – an Actor-based inter-process communication library

Using Stout to parse command-line options

A new post of mine has just been published on Mesosphere Blog: Almost every program needs to parse some form of command-line argument. Often, this is a pretty large set of possible options, and the management of the various options is usually pretty tedious while adding virtually no value to the program’s functionality. Google’s gflags … More Using Stout to parse command-line options

HOW-TO Build Mesos on Mac OSX – Eclipse

Update – El Capitan upgrade If you have recently upgraded to El Capitan (OSX 10.11.1) your Mesos build may be broken, due to “missing libapr-1 headers”: ../configure will cause the following error: libapr-1 is required for mesos to build. To resolve, install `apr` using `brew` and then add the `–with-apr` flag to `../configure`: brew install … More HOW-TO Build Mesos on Mac OSX – Eclipse

Creating a C++ callback function from a class instance method

I have been playing around with the Boost library and, in particular, the boost::thread multithreading library.There a thread is simply created by constructing an object of type boost::thread, and passing in to the constructor a pointer to the function to be executed in the newly spawned thread.There is much more to it, and I encourage … More Creating a C++ callback function from a class instance method