Interop with strange java type: java.lang.String<>

2015-08-20 Thread Andy Dwelly
I'm having to do some interop with a proprietary - and erroneously documented - Java SDK. There's a class C with a method described as 'translate(java.lang.String). Trying to call the method with a Clojure on an object of class C I got a 'no matching method found' error. So I used the following

Re: using core.async results in page getting replaced with empty iframe

2015-08-20 Thread Colin Yates
Daniel, is the UI constructed based on receiving something from a channel? which is incorrectly setup and so the UI is 'blocked' pulling from that channel. Timothy Baldridge writes: > core.async has nothing to do with the DOM, so I don't know how this could > happen. > > On Wed, Aug 19, 2015 at 3

Re: using core.async results in page getting replaced with empty iframe

2015-08-20 Thread Malcolm Sparks
Could you also run lein deps :tree and paste the output to the thread. It could be that one of your dependencies is already depending on core.async transitively, and the explicit inclusion of a different version of core.async causes that to break. This is a long shot but it could help. On 20 Aug

Re: How can find something inside heavily nested data structure ?

2015-08-20 Thread Dave Tenny
I have found the core 'get-in' function to be useful for extracting data from big trees of clojure data structures, perhaps that will help. I'm still in search of tools that let me get a good sense of *what* to navigate when looking at such trees of data structures from API's and/or data source

[ANN] New Clojure Book: Clojure Data Structures and Algorithms Cookbook

2015-08-20 Thread Rafik NACCACHE
Hi Guys, I am proud to let you know that my book dealing about advanced algorithms in Clojure has hit the shelves. Please head over to: https://www.packtpub.com/application-development/clojure-data-structures-and-algorithms-cookbook Rafik -- You received this message because you are subscribed

Re: [ANN] New Clojure Book: Clojure Data Structures and Algorithms Cookbook

2015-08-20 Thread gvim
On 20/08/2015 12:21, Rafik NACCACHE wrote: Hi Guys, I am proud to let you know that my book dealing about advanced algorithms in Clojure has hit the shelves. Please head over to: https://www.packtpub.com/application-development/clojure-data-structures-and-algorithms-cookbook Rafik Congrats,

Re: partition-when?

2015-08-20 Thread Laurens Van Houtven
Gorgeous! Thanks, Moe! (Chris says hi back :)) > On Aug 19, 2015, at 7:51 PM, Moe Aboulkheir wrote: > > Laurens, > > I don't think I've encountered an identical function I can point you to, but > here's an alternative implementation: > > (defn partition-when [pred coll] > (lazy-seq >(wh

Re: Unable to write GPL software with clojure?

2015-08-20 Thread Atamert Ölçgen
On Wed, Aug 19, 2015 at 1:05 AM, Sean Corfield wrote: > On 8/18/15, 2:24 PM, "Kyle Sexton" k...@mocker.org> wrote: > > > >Can anyone weigh in on whether it is possible to write GPL code with > clojure? Seen some recent[1] tweets saying that the EPL on clojure core > prevents writing GPL code wi

Re: Interop with strange java type: java.lang.String<>

2015-08-20 Thread Stephen C. Gilardi
> On Aug 20, 2015, at 3:32 AM, Andy Dwelly wrote: > > Does anyone know how how to create a java.lang.String<> ? Ideally how to > convert a Clojure "some string" which is a java.lang.String to a > java.lang.String<>. > Also, although this is merely idle curiosity on my part, does anyone know >

Re: Unable to write GPL software with clojure?

2015-08-20 Thread Sean Corfield
Atamert Ölçgen said on August 20, 2015 at 8:51 AM: If you modify this Program, or any covered work, by linking or combining it with clojure (or a modified version of that library), containing parts covered by the terms of EPL, the licensors of this Program grant you additional permission to convey

Re: Unable to write GPL software with clojure?

2015-08-20 Thread Atamert Ölçgen
Hi Sean, On Thu, Aug 20, 2015 at 8:20 PM, Sean Corfield wrote: > Atamert Ölçgen said on August 20, 2015 at 8:51 AM: > > If you modify this Program, or any covered work, by linking or > combining it with clojure (or a modified version of that > library), containing parts covered by the terms of E

Re: when the body of the request is HttpInputOverHTTP, how do I get the string representation?

2015-08-20 Thread Jordan Schatz
The Java docs for HttpInputOverHTTP are here: http://download.eclipse.org/jetty/stable-9/apidocs/org/eclipse/jetty/server/HttpInputOverHTTP.html and the source is here: https://github.com/eclipse/jetty.project/blob/master/jetty-server/src/main/java/org/eclipse/jetty/server/HttpInputOverHTTP.java

Re: partition-when?

2015-08-20 Thread Steve Miner
If you’re interested in a transducer version of partition-when, here’s my code from https://github.com/miner/transmuters ;; collection version by Frank on mailing list ;; SEM added transducer version, adapted from partition-by (defn partition-when "Applies f to each value in coll, starting a

Re: Interop with strange java type: java.lang.String<>

2015-08-20 Thread Justin Smith
I suspect this is it. Also, remember that internally a varargs string method will take an Array of String as its last arg. On Thursday, August 20, 2015 at 9:35:19 AM UTC-7, squeegee wrote: > > > On Aug 20, 2015, at 3:32 AM, Andy Dwelly > > wrote: > > Does anyone know how how to create a java.lan

Re: Unable to write GPL software with clojure?

2015-08-20 Thread Fluid Dynamics
On Thursday, August 20, 2015 at 1:40:54 PM UTC-4, Atamert Ölçgen wrote: > > > If it included clecs' source and the game's source it would be enough for > me. I wouldn't want to dictate terms for other people's code. If another > library the game depends on is also GPL, it's source should be inclu