Re: [ANN] Clojure 1.6.0-alpha3

2013-11-22 Thread a...@puredanger.com
Please be aware that we expect to make changes to the API package and class name in the next alpha based on a discussion today so you may want to wait for RC for that! On Nov 22, 2013, at 11:06 PM, wrote: > Thank you. > > I’d like to take this opportunity to thank the Clojure/core team for

Re: [ANN] Clojure 1.6.0-alpha3

2013-11-22 Thread seancorfield
Thank you. I’d like to take this opportunity to thank the Clojure/core team for the slow, measured pace of development and stability of Clojure. 1.6 looks like a safe, gentle upgrade from 1.5.1. Ironically the biggest change for me in 1.6 is the new API stuff - I look forward to rewriting m

[ANN] Clojure 1.6.0-alpha3

2013-11-22 Thread Alex Miller
Clojure 1.6.0-alpha3 is now available. Try it via - Download: http://central.maven.org/maven2/org/clojure/clojure/1.6.0-alpha3/ - Leiningen: [org.clojure/clojure "1.6.0-alpha3"] Clojure 1.6.0-alpha3 has the following changes from 1.6.0-alpha2: 1) Reverted: CLJ-1125 (fix for permgen leak) bas

Clojure CLR versioning and binary downloads

2013-11-22 Thread Frank Hale
As far as I can tell the Clojure CLR version number does not track the JVM version number at least for some builds. The latest build 1.5.0 as far as I can tell is at the same patch level as 1.5.1 on the JVM. This numbering seems confusing to me. Are there any plans to streamline the version numbers

Re: [ANN] optparse-clj: Functional GNU-style command line options parsing

2013-11-22 Thread guns
On Fri 22 Nov 2013 at 07:22:20PM -0500, John Szakmeister wrote: > This looks very nice. Have you considered something along the lines > of Python's argparse? > > http://docs.python.org/dev/library/argparse.html Thank you. I am not familiar with Python's argparse. My experience with option pa

Re: [ANN] Yesql 0.2.1 - Clojure & SQL queries rethought.

2013-11-22 Thread Paul Samways
(premature send, sorry) For example: (sql/db-transaction [t (db/connection)] (select-users t)) will cause a NullPointerException as the query doesn't get executed until after the transaction is commited. Adding a (doall), or actually using the result in the form obviously works around this, but

Re: [ANN] Yesql 0.2.1 - Clojure & SQL queries rethought.

2013-11-22 Thread Paul Samways
Great work Kris, provides just enough abstraction over jdbc without getting in the way. One question though, and this may be just because I am relatively new to Clojure, but making the returned query lazy seems to be a bit of a gotch'ya. For example: On Mon, Nov 11, 2013 at 10:10 PM, Kris Jenki

ANN: ClojureScript 0.0-2075

2013-11-22 Thread David Nolen
Following the last announcement, the only significant changes are CLJS-681 which is Windows source map support and improved numeric checks. David -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googleg

Re: java.jdbc DSLs (java.jdbc.sql / java.jdbc.ddl)

2013-11-22 Thread Dave Della Costa
> How much impact would it have on you, Alexander, if the java.jdbc.sql > namespace went away? I work for Alex and I can say that it wouldn't be such a big deal since we are already including honeysql, and I would simply swap the built-in DSL for that where necessary. I can't speak for him but pe

Re: [ANN] optparse-clj: Functional GNU-style command line options parsing

2013-11-22 Thread John Szakmeister
On Wed, Aug 7, 2013 at 11:53 AM, guns wrote: > Hello, > > I'd like to announce optparse-clj, a command line options parser that > supports GNU option parsing conventions: > > https://github.com/guns/optparse-clj > > [guns.cli/optparse "1.0.0"] > > The interface is modelled after clojure.to

Re: java.jdbc DSLs (java.jdbc.sql / java.jdbc.ddl)

2013-11-22 Thread Armando Blancas
Didn't think of that. I can just rewrite those simple select calls with parameterized raw SQL, which is our preferred way of using the API. On Friday, November 22, 2013 2:09:19 PM UTC-8, Sean Corfield wrote: > > On Fri, Nov 22, 2013 at 1:04 PM, Armando Blancas > > > wrote: > > We use select se

Re: java.jdbc DSLs (java.jdbc.sql / java.jdbc.ddl)

2013-11-22 Thread Sean Corfield
On Fri, Nov 22, 2013 at 1:04 PM, Armando Blancas wrote: > We use select several times in one module; it wouldn't be hard to just copy > and paste the function somewhere. Technically, copying it into your code means absorbing some EPL code and copyright © 2013 Sean Corfield stuff so beware of that

Re: Feedback on destructuring code walkthrough? (could not nest :keys inside :keys)

2013-11-22 Thread Karsten Schmidt
The nested `:keys` form for `b1`/`b2` must be moved out from the vector containing `a`... (defn foo [{:keys [a] {:keys [b1 b2] :as b} :b}] [a b1 b2 b]) (foo {:a 1 :b {:b1 2 :b2 3}}) ; => [1 2 3 {:b2 3, :b1 2}] Hth! On 22 November 2013 19:06, David James wrote: > I made a quick destructuring co

Re: java.jdbc DSLs (java.jdbc.sql / java.jdbc.ddl)

2013-11-22 Thread Armando Blancas
We use select several times in one module; it wouldn't be hard to just copy and paste the function somewhere. Now, you could drop DSL and call it optional utility functions not to be used when deemed unhelpful, or whatever. Given your goals stated goals that code isn't bad at all. On Thursday,

Feedback on destructuring code walkthrough? (could not nest :keys inside :keys)

2013-11-22 Thread David James
I made a quick destructuring code walkthrough at https://github.com/xpe/clj-destruct/blob/master/src/destruct/core.clj I was hoping to show how to nest :keys inside of :keys but failed. Did I overlook something? -- -- You received this message because you are subscribed to the Google Groups "

Re: [ANN] SQLingvo 0.5.9 released.

2013-11-22 Thread Sean Corfield
Nice! Another SQL DSL I can point people to for use with clojure.java.jdbc if I completely remove the basic DSL from java.jdbc.sql! Sean On Fri, Nov 22, 2013 at 4:36 AM, r0man wrote: > SQLingvo is a Clojure DSL to generate SQL statements. > > README, source code and examples: > > https://git

Re: [ClojureScript] ANN: ClojureScript 0.0-2067, regressions, type inference & numeric checks

2013-11-22 Thread Chas Emerick
Gah, my bad, was running the tests with an "old" rev. Too many projects in flight at once. :-/ In any case, [lein-cljsbuild "1.0.1-SNAPSHOT"] is available that picks up your local :jvm-opts setting. - Chas On 11/22/2013 12:09 PM, David Nolen wrote: 0.0-2069 released, the only change is not

Re: [ANN] Jig

2013-11-22 Thread Ivan Kozik
On Sat, Nov 2, 2013 at 11:05 PM, Timothy Washington wrote: > C) Now, I run my environment in a Virtual Machine. So when using the browser > to try and go to each of the url end points, I got an HTTP 404, "Not Found" > error for all of these URLs. Ie, Compojure and Pedestal were running, giving > m

Re: [ClojureScript] ANN: ClojureScript 0.0-2067, regressions, type inference & numeric checks

2013-11-22 Thread David Nolen
0.0-2069 released, the only change is not caching AST nodes in the compiler environment. Should address the memory issues people are experiencing. David On Fri, Nov 22, 2013 at 11:59 AM, David Nolen wrote: > Can everyone please try master and verify the memory issue no longer > exists? > > Than

Re: [ClojureScript] ANN: ClojureScript 0.0-2067, regressions, type inference & numeric checks

2013-11-22 Thread David Nolen
Can everyone please try master and verify the memory issue no longer exists? Thanks! David On Fri, Nov 22, 2013 at 11:54 AM, Mimmo Cosenza wrote: > David, > I know you're a super master, but if you're going to use my repo, just > remember to exclude the tools.reader from the > org.clojars.magom

Re: [ClojureScript] ANN: ClojureScript 0.0-2067, regressions, type inference & numeric checks

2013-11-22 Thread Tim Visher
I'm compiling fine with source-maps enabled in both whitespace and advanced mode, with marginal but not awful increases to time. On Fri, Nov 22, 2013 at 10:16 AM, David Nolen wrote: > ClojureScript, the Clojure compiler that emits JavaScript source code. > > README and source code: https://github

ANN: ClojureScript 0.0-2067, regressions, type inference & numeric checks

2013-11-22 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-2067 Leiningen dependency information: [org.clojure/clojurescript "0.0-2067"] This release fixes issues introduced by the source

Re: [ANN] Reaction

2013-11-22 Thread Marc Limotte
Very clever. Thanks for the contribution. On Fri, Nov 22, 2013 at 1:20 AM, Kelker Ryan wrote: > Reaction - https://github.com/runexec/reaction > *A small reactive programming library for Clojure* > > *Usage* > > user> (use '[reaction.core]) > nil > user> (def-reactive! my-int 123) > #'user/my

[ANN] SQLingvo 0.5.9 released.

2013-11-22 Thread r0man
SQLingvo is a Clojure DSL to generate SQL statements. README, source code and examples: https://github.com/r0man/sqlingvo Leiningen dependency information: [sqlingvo "0.5.9"] Enhancements: * Added WITH statements. -- -- You received this message because you are subscribed to t

Re: preferred way to dereference a ref: outside or inside dosync?

2013-11-22 Thread Jim - FooBar();
On 22/11/13 08:18, Stefan Kamphausen wrote: How about (defn get-key-generator [] (let [i (atom 0)] (fn [] (swap! i inc (def generate-keys (get-key-generator)) nice one, much better than mine :) thanks Stefan... Jim -- -- You received this message because you are subscribed to the

Re: ANN: ClojureScript 0.0-2060

2013-11-22 Thread David Nolen
Looks like we're not eliding some new metadata introduced by tools.reader. On Thursday, November 21, 2013, Feng Hou wrote: > On Thursday, November 21, 2013 10:12:55 AM UTC-5, David Nolen wrote: > > ClojureScript, the Clojure compiler that emits JavaScript source code. > > > > > > README and sourc

Bret Victor - The Future of Programming

2013-11-22 Thread juan.facorro
Hi all, I just saw this talk by Bret Victor and found its message very compelling and thought provoking: The Future of Programming . I've sometimes thought (and marveled) about the fact that people were doing all sorts of cool stuff in the 60's and 70's that actually

Re: preferred way to dereference a ref: outside or inside dosync?

2013-11-22 Thread Stefan Kamphausen
On Friday, November 22, 2013 12:29:25 AM UTC+1, Jim foo.bar wrote: > > apart from the generate-keys fn which is intentionally simplistic and > predictable so I can test somehow, I will admit that these are very good > points indeed. > How about (defn get-key-generator [] (let [i (atom 0)