Re: Following type annotations across call sites to eliminate reflection?

2016-05-21 Thread Reid McKenzie
You should be able to do this: (defn f [a ^bytes b ^bytes c] (if (instance? ByteBuffer a) (.f binding ^ByteBuffer a b c) (.f binding ^bytes a b c))) You have a bimorphic function and yes there isn't a way to express that with Clojure's calling convention and consequent hinting supp

[ANN] paren-soup 2.0, a browser-based editor for CLJS

2016-05-21 Thread Zach Oakes
Have you ever had a need for a really good browser-based Clojure(Script) editor? Me neither, but for some reason I've been spending a lot of time building one. It's meant to be a replacement for things like CodeMirror, which is already pretty good and in no need of replacement. Nonetheless, min

Following type annotations across call sites to eliminate reflection?

2016-05-21 Thread lvh
Hi, I’m working on caesium[1], Clojure bindings for libsodium using jnr-ffi. Up until recently, I was able to stick to byte arrays for all APIs; but I’ve started writing new nonce-misuse resistant cryptosystems[2], so I need to have some byte-level layout within a byte array. I’m using java.n