News for hackers. Stuff that matters.
Re:A JVM Does That? (2011) [pdf] by zvrba on Friday July 08, 2016 @02:20AM (#12053860)
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.

Re:A JVM Does That? (2011) [pdf] by ktRolster on Friday July 08, 2016 @02:50AM (#12053948)
It'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

Re:A JVM Does That? (2011) [pdf] by peterashford on Friday July 08, 2016 @03:07AM (#12053989)
Does that mean you can do it with live production code?
Re:A JVM Does That? (2011) [pdf] by dalailambda on Friday July 08, 2016 @03:40AM (#12054084)
Doing this with dynamic libs in C/C++ is done frequently in some areas.
Re:A JVM Does That? (2011) [pdf] by sievebrain on Friday July 08, 2016 @08:33AM (#12055002)
Yeah 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.