Some thoughts on code generation for simple robots