News for hackers. Stuff that matters.
Re:Why I love Common Lisp and hate Java (2012) by xxs on Saturday November 03, 2018 @10:26PM (#18373725)
>I find a debugger just slows me down

1st you have to add the useless print statements and after decades of programming a debugger is vastly superios in terms of 'debugging' when compared to printing. (Back in time basic had no debugger even)

Also printing is utterly useless for high concurrent code, as printing alters memory visibility, usually adds global sync, etc..

Re:Why I love Common Lisp and hate Java (2012) by a_t48 on Saturday November 03, 2018 @11:15PM (#18373952)
Attaching a debugger will also change the behavior of concurrent code.
Re:Why I love Common Lisp and hate Java (2012) by xxs on Monday November 05, 2018 @01:43AM (#18380356)
This would depend on the language/compiler/linker - take Java (which the article is about). Attaching debugger does nothing prior to adding a breakpoint.

The breakpoint would cause the method to be deoptimized, executed in the interpreter. Removing the breakpoint would allow the method to be optimized again.

Now obviously during stepping in, the thread would be blocked and not highly concurrent. However print statements just bare the concurrency.

Re:Why I love Common Lisp and hate Java (2012) by a_t48 on Monday November 05, 2018 @08:54PM (#18387724)
Let's face it - concurrency sucks to debug in general.
Re:Why I love Common Lisp and hate Java (2012) by shaklee3 on Sunday November 04, 2018 @01:05AM (#18374347)
So does repl, to be fair.