[Tutor] Edit program while executing

Julius Hamilton juliushamilton100 at gmail.com
Sat Oct 2 16:22:35 EDT 2021


Hey,

Is there any way to edit a computer program while it is running?

For example, with Python - when the script is executed, what happens next?
Does it get compiled into assembly language and sent to the computer’s
circuits? In that case, if the computer allowed it, if you edited the
program, and the computer knew where in the program it was, it might in
theory be possible to pass the new instructions after the point where the
execution is.

On the other hand, if this is impossible with Python, is there any other
computer language where the computer is reading the program and executing
it step by step immediately, without a step beforehand where the whole
program is compiled? In that case it would surely be possible to change the
program in the middle of execution, I believe?

Thank you,
Julius


More information about the Tutor mailing list