support registering golang vars, add a game of life demo