Cpp implementation of Go engine