Introduction to the pygo virtual machine
In the last episode, I have showed a rather important limitation of the tiny-interp interpreter:
def cond(): x = 3 if x < 5: return "yes" else: return "no" Control flow and function calls were not handled, as a result tiny-interp could not interpret the above code fragment.
In the following, I’ll ditch tiny-interp and switch to the “real” pygo interpreter.
Real Python bytecode People having read the AOSA article know that the structure of the bytecode of the tiny-interp interpreter instruction set is in fact very similar to the one of the real python bytecode.
[Read More]