understanding a clojuredocs merge example

2016-05-11 Thread hiskennyness
I do not understand something this example: https://clojuredocs.org/clojure.core/merge#example-54c7b859e4b0e2ac61831cdf Specifically: (defn baz [& options] >(let [options (merge {:opt1 "default-1" :opt2 "default-2"} > (first options))] > options)) > (baz {:o

[ANN] org.clojure/java.jdbc 0.6.0 "gold" release -- BREAKING CHANGES

2016-05-11 Thread Sean Corfield
What? Clojure contrib wrapper for JDBC org.clojure/java.jdbc 0.6.0 “gold” release https://github.com/clojure/java.jdbc#change-log The “gold” release of java.jdbc is now available after several alpha / RC builds over the past month. This release provides a cleaned up API tha

Ghosts in the machine

2016-05-11 Thread Daniel Szmulewicz
Hi all, The next version of system 0.3.0 is ready and it is a matter of days before the official announcement. In the meantime, here is a summary of the research that has been carried around the Clojure runtime and code reloading. http://danielsz.github.io/2016/05/06/Ghosts-in-the-machine E

Re: Porting Clojure to Native Platforms

2016-05-11 Thread John Gabriele
On Monday, April 25, 2016 at 4:12:13 PM UTC-4, JvJ wrote: > > > > The main motivation would be performance gains. > Sounds like competing performance-wise with the JVM is extremely difficult. My best guess is that a successful new Clojure implemention will have these qualities: * be interpret

Re: into-array without the extra seq

2016-05-11 Thread Alex Miller
I do not think we will extend into to support array sources. If your source is a vector, then vector seqs are actually really fast and into-array is probably not as bad as you think, however it won't apply the xf. into is just doing transduce internally though and transducers are agnostic to h

Unsure if Protocol Design is Good

2016-05-11 Thread JvJ
I've been working on a custom implementation of a map called a hist-map, which keeps a history of additions and removals in its metadata, so that full diffs are not necessary. I want to make persistent and transient versions of this map. Both versions should support certain common operations,

Re: Transducers improve performance more than expected

2016-05-11 Thread JvJ
That is very good to know. On Tuesday, 10 May 2016 20:30:41 UTC-7, Alex Miller wrote: > > range is reducible and boils down to just a local loop in most cases, so > shouldn't create any heap garbage (well, other than whatever your reducing > function does). > > See: > > https://github.com/cloju

into-array without the extra seq

2016-05-11 Thread László Török
Hi, The other day I was trying to do an (into (long-array 0) xform some-vec) which doesn't work, then I realized there is *into-array* for that, however, it turns everything into a *seq* first. Is there any plans for extending *into* to hand primitive array, or rewriting *into-array* to do awa