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
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
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
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
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
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
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)
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
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
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:
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
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
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
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,
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
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
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
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:
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
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,
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
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
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
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
24 matches
Mail list logo