News for hackers. Stuff that matters.
Re:Show HN: Change Python code while it's running using a re... by throwaway66920 on Friday October 18, 2019 @10:16AM (#21291544)
When I first read this I couldn’t think of a good use case. Then the example shown seemed like something I deal with all the time and wish I could do. But then I realized I would need to remember to add reloading to the range before I commit to the long loop I wish to change. Pretty damn cool though.

If it doesn’t add much overhead this would be amusing for something like game dev, swapping out how the game works while running it.

Re:Show HN: Change Python code while it's running using a re... by ken on Friday October 18, 2019 @06:45PM (#21295665)
This is how Lisp developers have worked for decades. It's been used for games before, too, e.g., https://en.wikipedia.org/wiki/Game_Oriented_Assembly_Lisp