Re:It's 2023, so of course I'm learning Common Lisp
by em-bee on Wednesday July 26, 2023 @10:35PM
(#36888205)
examples please, because so far i have only seen this from common lisp and smalltalk. there is also pike where i can reload classes or objects at runtime, thus avoiding a full restart, but it's not as closely integrated as in smalltalk and you actually have to build your app in a way that allows you to do that.
[ Parent
| on HN ]
Re:It's 2023, so of course I'm learning Common Lisp
by lenkite on Thursday July 27, 2023 @12:37AM
(#36888975)
Java supports live debugging and profiling.
Re:It's 2023, so of course I'm learning Common Lisp
by db48x on Thursday July 27, 2023 @01:31AM
(#36889313)
But that’s not the same thing at all. If you’re debugging an exception in Java, you cannot continue execution as if the exception had not been thrown at all. With Common Lisp’s condition system you can.
Re:It's 2023, so of course I'm learning Common Lisp
by lenkite on Thursday July 27, 2023 @06:17AM
(#36891416)
Umm.. you can throw an exception, you can return to previous call frame, you can reload modified classes. If you want unlimited code modification, you can use dcevm https://github.com/dcevm/dcevm
https://www.jetbrains.com/help/idea/altering-the-program-s-e...
Re:It's 2023, so of course I'm learning Common Lisp
by regularfry on Thursday July 27, 2023 @11:37AM
(#36895179)
The question was whether you can debug a live service while it's handling live traffic. Not whether you can fix it. Java can definitely do the former, and definitely can't do the latter.
Re:It's 2023, so of course I'm learning Common Lisp
by em-bee on Thursday July 27, 2023 @09:19PM
(#36902126)
my question specifically was which languages/runtimes allow you to actually make changes to the code in a live process without restarting it.
Re:It's 2023, so of course I'm learning Common Lisp
by regularfry on Friday July 28, 2023 @07:33AM
(#36905406)
Your question moved the goalposts. Making change to a running system wasn't part of db48x's claim to which dleslie responded. It was explicitly excluded, in fact.
Re:It's 2023, so of course I'm learning Common Lisp
by em-bee on Friday July 28, 2023 @08:23PM
(#36915310)
ok, fair, but what i am asking about is a feature of common lisp (and smalltalk or pike), so i didn't pay attention to the exclusion. that was not deliberate. my bad. (maybe you could say i moved the goalpost back to the original topic)
Re:It's 2023, so of course I'm learning Common Lisp
by dleslie on Thursday July 27, 2023 @02:29AM
(#36889719)
JavaScript immediately comes to mind.
Re:It's 2023, so of course I'm learning Common Lisp
by em-bee on Thursday July 27, 2023 @08:17AM
(#36892333)
how do you do it? in the browsers debugger? maybe, but that is not integrated with your actual source files, so you have to be careful to track your changes and copy them to your source. that may help in some cases but isn't really practical.