NCBI-Hackathons / seqr

Creative Commons Zero v1.0 Universal
12 stars 2 forks source link

Contributions in other JVM languages #39

Open averagehat opened 9 years ago

averagehat commented 9 years ago

It is possible to add support for clojure/scala/groovy by adding a simple jar dependency. I am considering contributing in one of these languages. I think development would be a bit faster for me and it might help keep the size of the project down. There are a lot of features planned to keep up with blast and Java is quite verbose.

Of course I want everyone interested to feel comfortable contributing/reviewing code.

Thoughts?

lianyi commented 9 years ago

@averagehat Interesting idea! I have tried with Groovy before and it worked ( but I somehow accidentally lost most code in b-------t ! Fortunately I think I still have the pom.) The first time configuration might take some time as the dependencies also need to add to webapp/WEB-INF/lib

Not yet get a chance to use scala for Solr but I suspect it will work too. Not sure about Clojure though.

averagehat commented 9 years ago

I did an experimental partial re-write in clojure at www.github.com/averagehat/seqr-clojure The Seqr, SeqrController and DNAStreamMap classes are more or less replaced by src/clojure/hello.clj. That repo is also ahead in functionality (handles multiple files as input, output includes query).

averagehat commented 9 years ago

Any thoughts on working from the clojure code or merging it? I just got the build working--same functionality with about half as much code. People could still contribute in Java of course.

crashfrog commented 9 years ago

Do you recommend a good resource for picking up Clojure? I've been looking into Scala, as well.

Justin

On Wed, Sep 23, 2015 at 4:42 PM, Mike Panciera notifications@github.com wrote:

Any thoughts on working from the clojure code or merging it? I just got the build working--same functionality with about half as much code. People could still contribute in Java of course.

— Reply to this email directly or view it on GitHub https://github.com/NCBI-Hackathons/seqr/issues/39#issuecomment-142722459 .

averagehat commented 9 years ago

Hey Justin! I actually learned mostly by doing the re-write. Some people like 4clojure. The clojure docs are an excellent learning resource, for example, the entry for map