Re: [cider-emacs] [ANN] CIDER 0.7 is out!

2014-08-07 Thread Bastien
Bozhidar Batsov bozhi...@batsov.com writes: CIDER 0.7.0 is finally out! I wrote a short blog post about it, as the release is quite massive and important: http://batsov.com/articles/2014/08/05/cider-0-dot-7/ Well done! And thanks again, -- Bastien -- You received this message because

Re: Transducers are Coming

2014-08-07 Thread Thomas Heller
Looks nice, although I still need to wrap my head arround it. I don't believe in micro-benchmarks but I did one anyways cause I was curious how transduce would stack up against reduce (not reducers). https://github.com/thheller/transduce-bench transduce Evaluation count : 2220 in 60 samples

Re: Transducers are Coming

2014-08-07 Thread Herwig Hochleitner
Thanks Rich! Transducers, like all of your releases, are an eye opener. I've always felt slightly hesitant to use core.async's version of sequence functions, because of the overhead of intermediate channels. Then there was the strictness tradeoff with reducers. All of that complexity, gone from

Re: Transducers are Coming

2014-08-07 Thread Niels van Klaveren
Will the new transducer abstraction also (partly) replace / incorporate the reducer library ? So we could do something like (def xform (comp (fold +) (map inc) (filter even?))) to leverage parallelism ? On Wednesday, August 6, 2014 8:01:24 PM UTC+2, Rich Hickey wrote: I pushed today the

Re: Cannot get Friend to work (login or unauthorized handler)

2014-08-07 Thread Jonathon McKitrick
So here's what I discovered: If I wrap ONLY the www-routes in Friend and remove api-routes entirely, it works. So far, I've tried several combinations of route, handler/api, handler/site and friend and I get incorrect results, most often a null page. Any ideas on how to wrap both handler/api

Re: Cannot get Friend to work (login or unauthorized handler)

2014-08-07 Thread Jonathon McKitrick
I think it's sequencing. I'm going to try swapping the routes for api and site. On Thursday, August 7, 2014 7:19:33 AM UTC-4, Jonathon McKitrick wrote: So here's what I discovered: If I wrap ONLY the www-routes in Friend and remove api-routes entirely, it works. So far, I've tried

Re: Transducers are Coming

2014-08-07 Thread Rich Hickey
The integration with reducers is still todo. On Aug 7, 2014, at 7:03 AM, Niels van Klaveren niels.vanklave...@gmail.com wrote: Will the new transducer abstraction also (partly) replace / incorporate the reducer library ? So we could do something like (def xform (comp (fold +) (map inc)

Compojure routing of www and api content

2014-08-07 Thread Jonathon McKitrick
I'm serving up some html and js content, and using handler/site for that. I have a separate handler/api group of routes under the /api context. If I include the api routes before the site routes, the site works fine. If the www routes come first, the api calls fail, probably because the

Write/reading java maps and lists using fressian/transit

2014-08-07 Thread Islon Scherer
Hi, I have a program I wrote who needs to serialize java HashMaps and ArrayLists to and from disk but AFAIK (and after some simple tests) it seems fressian writes those maps/lists correctly but read them back as clojure maps and lists (persistent). Is there a way to tell fressian (could be

Re: Transducers are Coming

2014-08-07 Thread Phillip Lord
Oh dear, I still haven't understood the blogpost on reducers yet, and now there is this one as well. Phil Rich Hickey richhic...@gmail.com writes: I pushed today the initial work on transducers. I describe transducers briefly in this blog post:

Re: Transducers are Coming

2014-08-07 Thread vvedee
Hello, what is the reason for comp to produce two different orderings depending on whether it composes partials or transducers? (comp (partial filter even?) (partial map (partial + 1))) (comp (filter even?) (map (partial + 1))) Wouldn't it be more intuitive for upcoming clojurians to have both

Re: [ANN] Silk, an isomorphic routing library for Clojure and ClojureScript

2014-08-07 Thread Dylan Butman
I agree with Joel that I've found that secretary works very well with Om, especially with a few abstractions built over it to built the corresponding state. The opposite direction is tricky though, and the biggest problem I've run into is that matching order is based on runtime route

Re: Write/reading java maps and lists using fressian/transit

2014-08-07 Thread Thomas Heller
Both Transit and fressian take a Handler map as arguments to the reader/writer functions/constructors. So its pretty straightforward to replace the default handlers with handlers that do what you want. I have no example handy but it should be documented in both libraries. Transit has

Re: Compojure routing of www and api content

2014-08-07 Thread James Reeves
Compojure routes are checked in order until one matches. You've set up your www-routes to match all possible routes, as you have a catch-all not-found route at the bottom. - James On 7 August 2014 13:17, Jonathon McKitrick jmckitr...@gmail.com wrote: I'm serving up some html and js content,

Re: Compojure routing of www and api content

2014-08-07 Thread Jonathon McKitrick
Right, I tried removing that as well, and Friend still fails, and the api routes fail as well. -- Jonathon McKitrick On Thu, Aug 7, 2014 at 2:54 PM, James Reeves ja...@booleanknot.com wrote: Compojure routes are checked in order until one matches. You've set up your www-routes to match all

Re: Compojure routing of www and api content

2014-08-07 Thread Jonathon McKitrick
Let me clarify. I removed the 'not-found' route and the api calls all return an empty response. -- Jonathon McKitrick On Thu, Aug 7, 2014 at 3:14 PM, Jonathon McKitrick jmckitr...@gmail.com wrote: Right, I tried removing that as well, and Friend still fails, and the api routes fail as

Re: Write/reading java maps and lists using fressian/transit

2014-08-07 Thread Islon Scherer
Ok, I got it. Instead of using transit-clj I can user the java library directly. The reader automatically returns ArrayList and HashMap. Great! On Thursday, August 7, 2014 8:11:50 PM UTC+2, Thomas Heller wrote: Both Transit and fressian take a Handler map as arguments to the reader/writer

Re: Transducers are Coming

2014-08-07 Thread David Nolen
Just wanted to add that all of the current transducers work in Clojure is now available in ClojureScript master. David On Wed, Aug 6, 2014 at 2:01 PM, Rich Hickey richhic...@gmail.com wrote: I pushed today the initial work on transducers. I describe transducers briefly in this blog post:

ANN: ClojureScript 0.0-2301, Transducers!

2014-08-07 Thread David Nolen
ClojureScript, the Clojure compiler that emits JavaScript source code. README and source code: https://github.com/clojure/clojurescript New release version: 0.0-2301 Leiningen dependency information: [org.clojure/clojurescript 0.0-2301] The primary reason for this release is the inclusion

Re: [ANN] Silk, an isomorphic routing library for Clojure and ClojureScript

2014-08-07 Thread Joel Holdbrooks
I'm in agreement that Silk is a step in the right direction. I've reached out to Dom and I think we can learn a lot from each other and work together to improve the routing story in Clojure overall. There are some really good things in secretary. What do you think about them? Splat, regex,

Re: ANN: ClojureScript 0.0-2301, Transducers!

2014-08-07 Thread David Nolen
I just cut 0.0-2307, the only change is that the compiler now optimizes anonymous multi-arity fns which results in a big performance boost to transducer code. David On Thu, Aug 7, 2014 at 5:08 PM, David Nolen dnolen.li...@gmail.com wrote: ClojureScript, the Clojure compiler that emits

Re: Transducers are Coming

2014-08-07 Thread Mark Engelberg
I'm also curious to understand how the underlying implementation of transducers leads function composition to behave in the reverse order of ordinary function composition. On Thu, Aug 7, 2014 at 8:07 AM, vve...@gmail.com wrote: Hello, what is the reason for comp to produce two different

Re: Transducers are Coming

2014-08-07 Thread Scott Thoman
I doubt I can answer this as clearly as Rich or others but... I think the answer to this lies in the fact that composing transducers is composing reducer-transformers not reducer functions themselves. When composing reducer-transformers, the result is another transformer. When this new

Re: [ClojureScript] Re: [ANN] Silk, an isomorphic routing library for Clojure and ClojureScript

2014-08-07 Thread Dom Kiva-Meyer
Thanks for your feedback, Dylan! If you define routes with :path and :query, will the route match/unmatch with undefined query keys? If so, how are they handled? If not, I'd suggest making query matching optional, where nils are substituted. I'm not entirely sure what you mean, but I'll give