• Lightfire228@pawb.social
    link
    fedilink
    arrow-up
    14
    arrow-down
    1
    ·
    11 hours 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
      3
      ·
      4 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