Re: :gen-class method signature help

2017-08-07 Thread Sir Robert Burbridge
Success! I've included the final solution here for completeness and community contribution. 1. Thanks, Didier-- your last bit got me on the right path. 2. Thanks, Gregg-- it turns out gen-class does recognize that syntax, if quoted, like so: #^{:static true} [score ["[Ljava.l

Re: :gen-class method signature help

2017-08-07 Thread Sir Robert Burbridge
Didier, thanks for the reply! 1. I created a wrapper function like this: (defn -score [data context] (score data context)) 2. I tried your suggestion but got an error. Here's the current state: The JS calling code: function genFixture () { return new Array(12).fill(parseFloat(Math

:gen-class method signature help

2017-08-05 Thread Sir Robert Burbridge
Hi all, I've got a very small Clojure task I need to get done. If needed, I am willing to pay someone for it. I expect would be less than an hour's work, but am not stuck on that =) *Simple Summary* I have a small, proprietary clojure library I am trying to embed in NodeJS via the node-java