2 ms·
Hot reloading in a compiled language is not that difficult - you just dlclose/dlopen/dlsym the shared library when it changes.
by david2ndaccount 6y ago
Hot reloading in a compiled language is not that difficult - you just dlclose/dlopen/dlsym the shared library when it changes.
- lightgreen 6y agoBut making sure program won't crash after reloading (e. g. because of memory layout or invariants change) is much harder, and I doubt V prevents these failures.
- delian66 6y agoIt does not. The reloaded program can crash. It is very useful for tweaking code, but if you make more substantial changes to your state, currently hot code reload will not help you, and you may be better of just restarting your app.
- tlb 6y agoHah! You have to deal somehow with objects created by the old code, and pointers to static data or functions that move. Various systems solve that in various ways, but it's definitely complex and difficult.
- gavinray 6y agoI guess I'm just easy to impress then, because lower-level code might as well be magic to me haha.