Hacker News new | ask | show | jobs
by mdaniel 993 days ago
A winning combination with control-shift-f9 to recompile the function body and then drop-frame to retry with the new code

I have lost hope for DCEVM being upstreamed to allow structural changes to the class :-(

1 comments

Dcevm is regularly released from JetBrains as part of their JDK. https://github.com/JetBrains/JetBrainsRuntime

Also with 'Java on Truffle' on GraalVM you can use enhanced class reloading https://www.graalvm.org/latest/reference-manual/java-on-truf...

I think hot code reloading did not look that good in a very long time.

Apologies, I didn't mean to imply DCEVM went poof, just that I was sad it didn't make it into OpenJDK so one need not do JDK silliness between the production one and the "debugging one" since my experience is that's an absolutely stellar way to produce Heisenbugs

And I'll be straight: Graal scares me 'cause Oracle but I just checked and it looks to the casual observer that it's straight-up GPLv2 now so maybe my fears need revisiting: https://github.com/oracle/graal/blob/vm-23.1.0/LICENSE