ra’s avatarra’s Twitter Archive—№ 38,472

  1. baby's first tail call optimization! i added a recur special form to jn and patched the compiler to emit a CLR tail instruction when possible and it totally works! i implemented the recursive 99 bottles of beer algorithm to test. source, c# disassembly, msil disassembly.
    oh my god twitter doesn’t include alt text from images in their APIoh my god twitter doesn’t include alt text from images in their APIoh my god twitter doesn’t include alt text from images in their API
    1. …in reply to @ra
      past a certain point the stack totally blows up without TCO. this is also the first real-ish program i've written in jn! i need to get command line arguments to work next, and that requires syntax to talk about complex types (arrays of strings in this case)
      1. …in reply to @ra
        the patches to the compiler are totally hacky, and i am not committed to this syntax. i mostly just wanted to play around and see how TCO might work.