Re: [ANN] Clojure 1.7.0-RC1 now available

2015-05-22 Thread Jason Wolfe
We haven't shipped it to production yet, but I just verified that our full test suite at Prismatic passes on RC1 after fixing a few tests that were erroneously depending on hash ordering. Thanks everyone for all the hard work on this release! On Thursday, May 21, 2015 at 9:31:08 AM UTC-7, A

Re: are there any real examples on Github of how to use reducers?

2015-05-22 Thread Marshall Bockrath-Vandegrift
piastkra...@gmail.com writes: > Can anyone point me to a project on Github that is using Clojure 1.5 > reducerers? The Parkour project provides an interface to Hadoop MapReduce primarily in terms of tasks as functions over task input chunks as clojure.core.reducers reducible collections: https:/

Re: a simple question about Arrays.asList

2015-05-22 Thread webber
Hi Aaron, Thank you for your reply. I was able to understand. > Why are you trying to use Arrays#asList btw? There are probably better ways to do what you're trying to do. I just wanted to test reify to implement java.util.Comarator as follows: (java.util.Collections/sort x (reify java.util

Re: a simple question about Arrays.asList

2015-05-22 Thread webber
Hi Mauricio, The into-array worked fine ! Thanks, MH > There are many things that need to be understood in a call like this. > > First of all, that method receives an array as its argument: > https://docs.oracle.com/javase/7/docs/api/java/util/Arrays.html#asList(T...) > > From your first exa

Re: a simple question about Arrays.asList

2015-05-22 Thread Rafal Lewczuk
Hi, Try this: (java.util.Arrays/asList (to-array [1 2 3 4])) Regards, rle On 21.05.2015 23:08, webber wrote: I am trying to use java.util.Arrays/asList in Clojure. (java.util.Arrays/asList 1 2 3) CompilerException java.lang.IllegalArgumentException: No matching method: asList, compiling:

Re: One more argument for cyclic dependencies

2015-05-22 Thread Mars0i
I've now tried implementing the Student class (see previous posts) using reify, deftype, defrecord, and proxy, in each case specifying that they implement an interface (SteppableStudent) that extends the MASON Java interface Steppable. (The extended interface adds one method.) The reify and de

Re: [ANN] Demo of the Holy Grail workflow

2015-05-22 Thread Albin Stjerna
I can't play it in Sweden either. :( On 22 May 2015 04:58, "Shaun Mahood" wrote: > Can't play it in Canada from my mobile. > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note t

Re: [ANN] Demo of the Holy Grail workflow

2015-05-22 Thread Daniel Szmulewicz
Sorry about that. Some countries are prevented from watching this video on Youtube. I've uploaded the video on Vimeo to offer an alternative. Please try it out. It seems that on Vimeo you need to turn HD on manually to benefit from the maximum resolution. https://vimeo.com/128624743 Best of l

Re: [ANN] Clojure 1.7.0-RC1 now available

2015-05-22 Thread Jason Wolfe
Just deployed to our staging environment and ran into an unexpected stack overflow error. Here's a reduced test case: user> (->> (range 1) (mapcat (fn [_] (java.util.ArrayList. (range 10 (reduce (constantly nil))) java.lang.StackOverflowError: RT.java:509 clojure.lang.RT.s

Re: One more argument for cyclic dependencies

2015-05-22 Thread Tassilo Horn
Mars0i writes: > However, in all versions (gen-class, reify, deftype, defrecord, > proxy), I can only get maximum speed by the same awkward trick that I > used with gen-class: I remove a type hint in Student.clj, compile all > of the files, then I add back the type hint in Student.clj and > recom

Re: [ANN] Clojure 1.7.0-RC1 now available

2015-05-22 Thread Daniel Compton
One of the most significant features of 1.7 are Reader Conditionals. I'm pretty confident after all the discussion that has gone on that we have a good design. However I haven't seen many or any libraries which have gone through the porting process to use Reader Conditionals. I've worked on portin

Re: [ANN] Clojure 1.7.0-RC1 now available

2015-05-22 Thread Alex Miller
That is interesting Jason - please file a ticket. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. T

Re: [ANN] Clojure 1.7.0-RC1 now available

2015-05-22 Thread Alex Miller
Daniel, I have seen a number of reports from people successfully porting to use reader conditionals. A few issues have been reported and fixed. This rc period is when people should try it and report what they see. -- You received this message because you are subscribed to the Google Groups "Cl

Re: [ANN] Clojure 1.7.0-RC1 now available

2015-05-22 Thread Ghadi Shayban
This commit [1] for CLJ-1589 changed dispatch for InternalReduce, causing a bug similar to CLJ-1237 [2]. [1] https://github.com/clojure/clojure/commit/1242c4878f3d4ef30535a22f6c74144637504fbe [2] http://dev.clojure.org/jira/browse/CLJ-1237 On Friday, May 22, 2015 at 5:01:25 PM UTC-4, Jason Wolf

Re: [ANN] Clojure 1.7.0-RC1 now available

2015-05-22 Thread Jason Wolfe
Thanks for the context. It looks like this is actually the same as CLJ-1237, the scope of the issue is just broader now with that commit. I left a comment there rather than creating a new ticket. On Friday, May 22, 2015 at 3:02:02 PM UTC-7, Ghadi Shayban wrote: > > This commit [1] for CLJ-

Re: One more argument for cyclic dependencies

2015-05-22 Thread Mars0i
Problem solved. I finally got rid of the problem that required me to delete a type hint, compile, add it back, and recompile, by moving the gen-interface and deftype calls that I used to define the Student class into the same namespace I used to define the Students class. (I think that's what