Common Lisp Debugging: Essential Tips and Techniques

Sdílet
Vložit
  • čas přidán 27. 08. 2024
  • You are in front of some software written in Common Lisp that doesn't behave as expected... How can you understand what is wrong?

Komentáře • 17

  • @FlickeringBytes
    @FlickeringBytes Před 28 dny

    Excellent, thanks for a short and effective presentation 😊

  • @vindarel
    @vindarel Před rokem +8

    Cool! To compile the function with max debug settings, there is also a handy Slime shortcut: C-u C-c C-c.

    • @the-lisper
      @the-lisper  Před rokem +1

      Thanks for sharing!

    • @hem1t0x01
      @hem1t0x01 Před měsícem

      And what is that command? how do I enable that in sly?

    • @vindarel
      @vindarel Před 16 dny

      @@hem1t0x01 It's "M-x slime-compile-defun" with a prefix argument, and I bet it's the same shortcut in Sly.

  • @kensan73
    @kensan73 Před 11 měsíci +3

    Wow I needed this 10+ years ago when I was taking a common lisp class. (I don't know how I got any of the programs working with just printing!)

    • @the-lisper
      @the-lisper  Před 11 měsíci

      I had been using print for a long time, and it works. But yes, the right setup really shows you what lisp can offer! Maybe, nowadays, it is easier, there are more tutorial/books and pre-configured environments (like portacle).

  • @jacekjacenty
    @jacekjacenty Před rokem +1

    Thank you for the nice explanation.

  • @freddief939
    @freddief939 Před 8 měsíci

    Looks like Slime doesn't work with Emacs 29 without manually adding some legacy functions to your init.el

    • @the-lisper
      @the-lisper  Před 8 měsíci +1

      I am still on Emacs 28, so I haven't dealt with it. If it doesn't get fixed, I may do a video about it in the future, like a fresh install using a VM!

    • @freddief939
      @freddief939 Před 8 měsíci

      @@the-lisper sly is also available. :)

    • @the-lisper
      @the-lisper  Před 8 měsíci +1

      Yes, it has become my go to choice (as you can see in more recent videos)! :^)
      The idea of the first videos was to show the usage of portacle!

    • @SynchronizedRandomness
      @SynchronizedRandomness Před 3 měsíci +2

      Sly worked out of the box for me, and had the same features.

  • @raba2d723
    @raba2d723 Před 10 měsíci

    awesome, can this be used with elisp?

    • @the-lisper
      @the-lisper  Před 10 měsíci +2

      No, you cannot directly, those features are quite specific to common lisp.

    • @raba2d723
      @raba2d723 Před 10 měsíci

      great thanks!