ra’s avatarra’s Twitter Archive—№ 32,845

    1. this is a terrible idea right
      oh my god twitter doesn’t include alt text from images in their API
  1. …in reply to @ra
    maybe less terrible?
    oh my god twitter doesn’t include alt text from images in their API
    1. …in reply to @ra
      the more i think about it the better i feel about this
      oh my god twitter doesn’t include alt text from images in their API
      1. …in reply to @ra
        you associate a bytecode inlining function with an existing var. the function takes the AST of the original invoke expression + symbolizers
        1. …in reply to @ra
          the inlining fn returns typehinted bytecode to replace the default invoke bytecode. typehint specifies the expected type of that expression.
          1. …in reply to @ra
            if the inlining function returns nil, the compiler backs out and emits invoke bytecode as usual, respecting clojure's :inline metadata
            1. …in reply to @ra
              this allows for control of type flow and bytecode emission from outside the compiler. combined with macros this could be really powerful.