Comment on Show HN: Change Python code while it's running using a reloading loopparentComments−ianai6yHow would that be possible without having to essentially keep track of two files? Nice idea though.−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
How would that be possible without having to essentially keep track of two files? Nice idea though.
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