3 ms·
You can easily hot-swap classes in a running program as long as their interface doesn't change. I.e., you can tune your algorithm w/o restarting the server. I
by zvrba 10y ago
You can easily hot-swap classes in a running program as long as their interface doesn't change. I.e., you can tune your algorithm w/o restarting the server.
I went wow the first time I edited a program during a debugging session and Eclipse just recompiled the class and reloaded it into the program.
Yes, there details of getting this right (transferring the state), but nevertheless.. It'd be one heck of a job implementing this _correctly_ in a MT scenario for C and C++. JVM just does "magic" here.
- ktRolster 10y agoIt'd be one heck of a job implementing this _correctly_ in a MT scenario for C and C++. I think every major debugger can do this for C and C++ now
- peterashford 10y agoDoes that mean you can do it with live production code?
- dalailambda 10y agoDoing this with dynamic libs in C/C++ is done frequently in some areas.
- sievebrain 10y agoYeah but your program has to be written to do it that way from the start, with a plugin boundary and so on. The JVM can do it for any code, with limitations, but there's a "DCE VM" that is a patched HotSpot. It can do far more kinds of hotswapping.