Comment on Show HN: Change Python code while it's running using a reloading loopparentComments−earenndil6yBasically, you just need a double buffer system:- Always run from the back buffer- Always scan the updated file into the front buffer- If the front buffer is fresh AND the front buffer contains no bugs, bufferswap
Comments
Basically, you just need a double buffer system:
- Always run from the back buffer
- Always scan the updated file into the front buffer
- If the front buffer is fresh AND the front buffer contains no bugs, bufferswap