3 ms·
Hrm. I don’t think Python’s importlib.reload is used very broadly. Are those being hot-reloaded, or merely re-executed from scratch with no compile time? When
by forrestthewoods 4y ago
Hrm. I don’t think Python’s importlib.reload is used very broadly.
Are those being hot-reloaded, or merely re-executed from scratch with no compile time?
When I think hotreload I think “persist state but update code”. Persisting state safely when you change data layout is almost impossible. Even if the language is dynamic you’ll have stale objects that are missing the new members or didn’t go through the new initialization routine.
I use hot reloading in C++ every day in Unreal Engine. However that only supports changing functions. If you change data layout you have to close the editor, rebuild, and relaunch.
- intelVISA 4y agoLive coding or hot reloading? The latter is deprecated and famous for corrupting data.
- forrestthewoods 4y agoLive coding. I consider it a form of hot reloading. The Live+ website states "Live++ enables hot-reload for C/C++ applications, combining the power of rapid iteration with the speed of a compiled language."
- intelVISA 4y agoWord I wasn't sure as UE has "both", do you find it useful in spite of the limitations?
- forrestthewoods 4y agoCritically useful. But I write a lot of code in C++ rather than blueprints. Turn around time from changing a line of code is under 10 seconds. Closing and relaunching the editor is actually not too bad, but probably 30 seconds?