Interactive REPL test

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 พ.ย. 2024

ความคิดเห็น • 2

  • @VencabotArchive
    @VencabotArchive 7 ปีที่แล้ว +1

    Very interesting. So, this must be that real-time-changes script you've been talking about on social media. Fascinating utility; I hope it ends up being very useful!

    • @PixelOutlaw
      @PixelOutlaw  7 ปีที่แล้ว

      The cool thing is that this is standard behavior for a Lisp program. I'm using Emacs as my text editor here and it has a package called SLIME which hosts and maintains a Common Lisp session. Within SLIME, there are options to recompile individual functions in real time. The next time the function is called, it will be the freshly compiled version.
      Lisp is the second oldest high level language and yet they got enough right the first time to allow this kind of flexibility. (Granted Common Lisp is a much newer dialect that the original LISP)
      That said, this concept of recompiling and rebinding functions allowed patching of a serious bug on Deep Space 1 in real time. (It's hard to fix something when that something is a space craft that has left Earth).