Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Last time I watched his stream, he had a cool setup where he could edit the Java methods on the fly without restarting the game.


Yeah, that's hotswap in practical use. When using debug mode in Eclipse, you're able hotswap - which basically means that you can change the content of a method while the program is running. When the method is called again, the new content will be executed.


Just a point of information: he can't do that here because the Java/OpenGL interface is all static Java methods (which only get loaded when the class loads the first time).


I might be missing something, but how is that relevant? Surely there's no need to hot-swap any OpenGL API methods, right?

EDIT: Also, I googled a bit and I can find no indication that HotSwap doesn't work for static methods. Are you sure you're not spreading misinformation here? See for instance http://stackoverflow.com/a/9466778


He was doing it here though.


you can also do it with jrebel, which can reload alot more then debug mode.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: