Re: Offline Clojure docs

2013-11-23 Thread Lan Rogers
Zeal is a Dash clone for linux/windows, and is api compatible with Dash docsets, hence would include the clojure docset. It's a little rough around the edges UI-wise but it gets the job done. On Sunday, June 30, 2013 11:43:19 PM UTC-7, Erik Bakstad wrote: > > If you are a

[ANN] java.jdbc DSLs moved to jdbc-java/dsl

2013-11-23 Thread Sean Corfield
Based on feedback from the community, and in preparation for java.jdbc 0.3.0-beta2, the DSLs, introduced in 0.3.0-alpha1, have been made available in another project: [java-jdbc/dsl "0.1.0"] via the namespaces java-jdbc.sql java-jdbc.ddl Anyone currently using the org.clojure/java.jdbc.sql or or

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

2013-11-23 Thread Sean Corfield
On Sat, Nov 23, 2013 at 8:27 PM, Keith Irwin wrote: > Personally, the DSL doesn’t bother me at all. (Just a data point.) I get > where you’re going with it, and support the idea, FWIW, but if it were gone, > I wouldn’t notice. My needs are 1) so simple, strings work, or 2) so > complicated, a (

Spit seems to use incorrect line terminator on Windoze

2013-11-23 Thread Cedric Greevey
(spit "C:\\foo.txt" "test1\n") (spit "C:\\foo.txt" "test2\n" :append true) open file in notepad => "test1test2" (spit "C:\\foo.txt" "test1\r\n") (spit "C:\\foo.txt" "test2\r\n" :append true) open file in notepad => "test1 test2" So a newline in the string passed to spit

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

2013-11-23 Thread Paul Samways
> Parallel (and conjoined) API docs would solve ALL my (admittedly shallow) problems, actually, but I wonder if it would remove some confusion for others new to the lib and Clojure? Definitely. I have only just started using Clojure and the java.jdbc library and have found this a (minor) pain poin

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

2013-11-23 Thread Keith Irwin
Sean— Personally, the DSL doesn’t bother me at all. (Just a data point.) I get where you’re going with it, and support the idea, FWIW, but if it were gone, I wouldn’t notice. My needs are 1) so simple, strings work, or 2) so complicated, a (or any) DSL is just extra headache. (Reading them out

Re: [ANN] Reaction

2013-11-23 Thread Kelker Ryan
Thanks. I just added some documentation and two more macros.API Docs user> (use '[reaction.core]) nil reaction.core> (def-reactive! my-int 1) #'reaction.core/my-int reaction.core> (push! my-int inc inc) nil reaction.core> @my-int 3 reaction.core> (pop! my-int) nil reaction.core> @my-int 2 reaction.

Re: Clojure CLR versioning and binary downloads

2013-11-23 Thread dmiller
1.5.0 of Clojure CLR includes the one fix in 1.5.1. I got excited and went one too far. Normally, the version numbers match exactly. I tagged 1.5.0 a little prematurely. We had some troubles on the NuGet release and on the mono build. I wasn't really ready for an official 1.5.0 release, so I

Re: [ANN] Clojure 1.6.0-alpha3

2013-11-23 Thread Sean Corfield
On Sat, Nov 23, 2013 at 12:47 PM, Colin Fleming wrote: > BTW (and I may be a little late here) - is there a plan to add keyword > creation to the API? Keywords are a pretty common part of many Clojure APIs, > it would be good to allow their creation without forcing people to use > Keyword.intern()

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

2013-11-23 Thread Sean Corfield
On Sat, Nov 23, 2013 at 3:06 PM, Alexander Hudek wrote: > As Dave said, we can move to honeysql without too much trouble. However, it > would be extremely useful to move the sql namespace to a separate library as > an interim solution. OK, I'll get that done soon. > Out of curiosity, what exactl

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

2013-11-23 Thread Alexander Hudek
As Dave said, we can move to honeysql without too much trouble. However, it would be extremely useful to move the sql namespace to a separate library as an interim solution. Out of curiosity, what exactly does entities do? It isn't immediately obvious from the document string. On Friday, Novem

Re: [ANN] Clojure 1.6.0-alpha3

2013-11-23 Thread Colin Fleming
BTW (and I may be a little late here) - is there a plan to add keyword creation to the API? Keywords are a pretty common part of many Clojure APIs, it would be good to allow their creation without forcing people to use Keyword.intern(). On November 23, 2013 at 8:16:48 PM, a...@puredanger.com (a.

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

2013-11-23 Thread Karsten Schmidt
No prob, you might also want to check Jay Fields' blog post (one of the most often cited resources) for more destructuring options: http://blog.jayfields.com/2010/07/clojure-destructuring.html On 23 November 2013 18:19, David James wrote: > Thanks Karsten! I updated the Github example based on y

Re: gemacl: Scientific computing application written in Clojure

2013-11-23 Thread Jose M. Perez Sanchez
Yes, the step extract function encodes the total number of steps and any intermediate steps whose values are to be saved. I did the following changes to the code: 1 - Store results locally in the threads and return them when the thread function exits, instead of using global vector. This does n

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

2013-11-23 Thread David James
Thanks Karsten! I updated the Github example based on your recommendation. On Friday, November 22, 2013 4:30:19 PM UTC-5, Karsten Schmidt wrote: > > 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

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

2013-11-23 Thread Stefan Kamphausen
On Saturday, November 23, 2013 3:17:07 PM UTC+1, Justin Smith wrote: > > Of course in a real app the key should be serialized to a persistent, > consistent, and shared data store. > > Which of course depends on the app in question. The code above was taken from a 'real app', if 'an app that is

Re: [ClojureScript] ANN: ClojureScript 0.0-2075

2013-11-23 Thread Mimmo Cosenza
unrestrainable :-) thanks! On Nov 23, 2013, at 4:04 PM, David Nolen wrote: > Just pushed out 0.0-2080, fixes a regression around inference and adds > unsigned-bit-shift-right to keep in sync with the Clojure 1.6 alphas. > > David > > > On Fri, Nov 22, 2013 at 7:44 PM, David Nolen wrote: > F

Re: ANN: ClojureScript 0.0-2075

2013-11-23 Thread David Nolen
Just pushed out 0.0-2080, fixes a regression around inference and adds unsigned-bit-shift-right to keep in sync with the Clojure 1.6 alphas. David On Fri, Nov 22, 2013 at 7:44 PM, David Nolen wrote: > Following the last announcement, the only significant changes are CLJS-681 > which is Windows

Re: Releasing Caribou today: Open Source Clojure Web Ecosystem

2013-11-23 Thread Justin Smith
I have successfully run a fresh caribou site on Windows 8, with the latest default 64 bit jdk from sun. You may need to explicitly supply a -Xmx argument to your jvm (I don't know how predictable the default maximums are). You are welcome to post issues on our github pages. If we made a forum

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

2013-11-23 Thread Justin Smith
you may want to make that (defonce generate-keys (get-key-generator)) and even better, add a "start" argument to get-key-generator so you can persist across restarts of the vm. Of course in a real app the key should be serialized to a persistent, consistent, and shared data store. On Friday, N

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

2013-11-23 Thread John Szakmeister
On Fri, Nov 22, 2013 at 8:30 PM, guns wrote: > 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 famil

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

2013-11-23 Thread John D. Hume
On Nov 22, 2013 4:09 PM, "Sean Corfield" wrote: > > Perhaps a solution here is for me to > put it in a library, on Clojars, under a different name and let folks > migrate to that as an interim solution (i.e., identical API so folks > would just update project.clj and update some ns declarations)?

[ANN] Amazon Kinesis support in Amazonica

2013-11-23 Thread Michael Cohen
We're starting to play around with Kinesis[1] to get a sense of performance, reliability, and cost. The Clojure api provides access to all functionality[2] and handles most of the plumbing details[3] associated with the client lib. Note: You will need the client library to test drive it. https://g

Re: Releasing Caribou today: Open Source Clojure Web Ecosystem

2013-11-23 Thread Roman Yakovlev
Great stuff Some suggestions and questions - forum is needed to disquss features and bugs. Something like http://www.discourse.org/ would be super awesome ( no google groups plz ! ) - documentation with user comments, Disquss would be enough for now but it would be great if it can be users driv

Re: Releasing Caribou today: Open Source Clojure Web Ecosystem

2013-11-23 Thread Roman Yakovlev
Great stuff Some suggestions and questions - forum is needed to disquss features and bugs. Something like http://www.discourse.org/ would be super awesome ( no google groups plz ! ) - documentation with user comments, Disquss would be enough for now but it would be great if it can be users driv