Debugging Lisp: fix and resume a program from any point in the stack - how Common Lisp stands out.

Channel:vindarel · Length:4:46 · Published:2022-12-05 · Views:5348

Watch on YouTube

Summary

A five-minute demo of the Common Lisp debugger fixing a bug, recompiling a single function, and resuming execution from the failed stack frame. It shows how to avoid re-running long computations.

Why HN recommends it

HN Lisp fans repeatedly link it as a short, concrete demonstration of Common Lisp's interactive debugging advantage.

my demo to show how to resume execution of a long running program, from the stack frame right before the bug — HN, 2023

Functional programming · Testing, debugging & developer tools

Subtitles (excerpt)

foreign [Music] foreign [Music] [Music] foreign [Music] [Music] [Music] foreign [Music] [Music] [Music] foreign [Music] [Music] [Music] foreign [Music] [Applause] [Music] thank you [Music] [Applause] [Music] thank you [Music]

On Hacker News

To really discover what interactive, image-based CL development is about, my pointers: - [VIDEO] (5min) my demo to show how to resume execution of a long running program, from the stack frame right before the bug, after having fixed and recompiled the function, without quitting the debugger hence without stopping the program, thus without restarting everything from zero. - [LINK] (20min)showing w… — vindarel, 2023-11
false premises, false conclusions, and bad good ideas in-between. > I was surprised by the absence of a quickstart page to help me set up a simple server what about [LINK] ? Also I think that the READMEs of Mito (ORM) and Djula (templating) and easy-routes (routing) are very good. Heck, Djula's documentation is excellent. Double heck, even Caveman's README, which the author uses, has a good and s… — vindarel, 2025-05
> all the other languages have kept picking up nearly everything once-cutting-edge about Lisp not all of them have CL's set of features: excellent long-live REPL, image-based development, compiling to binaries, the condition system, the interactive debugger and excellent developper tools (resumable stack frames, never re-run a long operation from zero [1]), the whole language at compile-time, sta… — vindarel, 2024-06
When you redefine a function in CL, every function that use this function is notified of the change and pickup the new version. And because it's functional and you're not supposed to modify the state outside your function, everything will keep churning. The issue with emacs is the sheer number of variables. And the fact they're global. That leads you to do stuff you shouldn't do. But the principl… — skydhash, 2024-06
> the code that is currently executing can be manipulated live Typically when people say this about Lisp, they mean that they can redefine functions and objects live, having all the code adapt to use the new definitions, or when their code hits an error, they can not only redefine functions and objects live, but also examine the state of the call stack and change the values of variables live, and… — trealira, 2024-06

Related videos