ra’s avatarra’s Twitter Archive—№ 45,088

    1. oof, after a few days struggling i finally landed an initial implementation of proxy in MAGIC. implementing the self-referential 'this was a real pickle but i think i have it. images are: sample code, resulting compilation, and speed comparison between MAGIC and stock ClojureCLR.
      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
    MAGIC *does not* support the update-proxy family of functions that let you change the method bodies of a proxy by providing it with a hashmap. we can't find an example of it ever being used in the wild, and implementing it would make it very hard to make proxy fast.
    1. …in reply to @ra
      if it becomes an issue, we can address it down the line. for now we generate a very tight type that is indistinguishable from a C# interop type. note that we're also fixing minor inconveniences along the way, like the need to cast to an int in the count method.