• Lightfire228@pawb.social
    link
    fedilink
    arrow-up
    19
    arrow-down
    1
    ·
    1 day ago

    I was reading Crafting Interpreters. After adding function calls and stack frames, i tested my implementation with the Fibonacci script at the end of the chapter

    I spent about 2 hours debugging my call stack, and even tested the script in Python

    Only to realize that Fib(3) is indeed 2

    • AnarchistArtificer@slrpnk.net
      link
      fedilink
      English
      arrow-up
      4
      ·
      23 hours ago

      Oh, I love this one, it’s very silly. I find it oddly grounding when I discover that the cause of a problem was me being silly, because I’m already aware that I am prone to foolish errors (as all humans are); when I discover that an unfathomable computer error is actually my fault, it feels like everything is right with the world