Re: [ANN] Clojure 1.4 Released

2012-04-18 Thread Ralph Moritz
clojure.org needs to be updated with a release announcement for 1.4. On Wednesday, April 18, 2012 4:05:15 AM UTC+2, Alan Dipert wrote: > > We are pleased to announce the release of Clojure 1.4: > > http://clojure.org/downloads > > For maven/leiningen users, your settings are now: > > :dependen

Re: Inconsistent refs within an STM transaction.

2012-04-18 Thread Neale Swinnerton
Thanks everyone for taking time on this. I've got it now. My two take-aways: * There was never any inconsistent result (and there never would be) * worrying about transaction re-start is wrong - transactions might re-start and the transactional code MUST always be correct under restart. Neale {t

Re: a convenience idea for test functions

2012-04-18 Thread Dmitri
That is an excellent point, and the macro is actually a very nice approach, thanks for the help. On Apr 18, 1:07 am, Sean Corfield wrote: > On Tue, Apr 17, 2012 at 9:16 PM, Dmitri wrote: > > (map? foo bar baz) would return bar if foo is a map and baz otherwise. > > To elaborate on Alan's respon

Re: Help using parsatron to parse a list

2012-04-18 Thread Nate Young
On Thu, Apr 12, 2012 at 10:10 AM, rahulpilani wrote: > Hi, > I am trying to use the parsatron library > (https://github.com/youngnh/parsatron) to parse a simple list of digits. I > am not able to get it to parse correctly, I was wondering what I was > missing. Hi! Thanks for giving The Parsatron

Re: xml: parse -- edit -- emit

2012-04-18 Thread Andrew
Ah ... After zip/edit comes zip/root ... xml/emit-str ... spit. On Tuesday, April 17, 2012 3:29:01 PM UTC-4, Andrew wrote: > > >1. It seems build.clojure.org now uses Java 6 so clojure.data.xml is >available for use (vs February 20 2012 -- correct me if I'm wrong) >2. Using clojure.zi

Re: xml: parse -- edit -- emit

2012-04-18 Thread Rostislav Svoboda
>> It seems build.clojure.org now uses Java 6 on the top of http://build.clojure.org/ stays: All projects build on Sun/Oracle JDK 1.5. "-test-matrix" jobs test multiple JDKs and Clojure versions. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To po

Re: [ANN] Clojure 1.4 Released

2012-04-18 Thread Sean Corfield
2012/4/18 Ralph Moritz : > clojure.org needs to be updated with a release announcement for 1.4. It has been updated (and points to this thread). -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://worldsingles.com/ "Perfection is the ene

Re: Clojure 1.4 Released

2012-04-18 Thread Jose Figueroa Martinez
Thanks to all of you!! You are doing a great job with Clojure :-D José FM. On Apr 17, 9:05 pm, Alan Dipert wrote: > We are pleased to announce the release of Clojure 1.4: > >  http://clojure.org/downloads > > For maven/leiningen users, your settings are now: > >   :dependencies [[org.clojure/c

a library I'm working on for generating PDFs from Clojure

2012-04-18 Thread Dmitri
I poked around and noticed that there aren't any libraries for creating PDFs, and as I needed to make one for work I decided to open source it. I tried to follow Hiccup syntax as I find it to be nice and flexible. https://github.com/yogthos/clj-pdf The library piggy backs on iText 2.1.7 (the last

Re: ClojureCLR Build Error

2012-04-18 Thread dmiller
We discovered this was due to building on the beta of .Net 4.5. ClojureCLR has not been updated to 4.5 yet. In this case, a new method was introduced in an interface, causing the proxy to have a missing method. 4.5 support coming 'real soon now'. -David On Tuesday, April 17, 2012 10:04:14 A

Re: a library I'm working on for generating PDFs from Clojure

2012-04-18 Thread Vinzent
Thank you, I was looking for something exactly like that! I'll give it a try. четверг, 19 апреля 2012 г., 7:34:10 UTC+6 пользователь Dmitri написал: > > I poked around and noticed that there aren't any libraries for > creating PDFs, and as I needed to make one for work I decided to open > sourc

Getting started with lein-cljsbuild

2012-04-18 Thread Mark Engelberg
I'm getting ready for my first foray into Clojurescript. I managed to get all the tools installed under Windows, and can run the repl and compiler from the command line using the instructions found at: https://github.com/clojure/clojurescript/wiki/Quick-Start So far, so good. Next, I downloaded

Code shared between clj and cljs

2012-04-18 Thread Mark Engelberg
What is an appropriate workflow for building underlying logic code that needs to be incorporated into both clojure code and clojurescript code? If the code is written in such a way that it would work under both Clojure and Clojurescript, what is the right way to name it and organize it in director

Re: Getting started with lein-cljsbuild

2012-04-18 Thread Mark Engelberg
I was able to get the plugin working by typing the following at the command-line (rather than using lein deps): C:\temp\cljstest>lein plugin install lein-cljsbuild 0.1.8 -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email

Re: Code shared between clj and cljs

2012-04-18 Thread Mark Rathwell
The main options for sharing Clojure and ClojureScript code at this point are: 1. Use lein-cljsbuilds crossover feature [1] 2. Kevin Lynagh's cljx [2] 3. Symlink your .clj source as a .cljs file [1] https://github.com/emezeske/lein-cljsbuild/blob/0.1.8/doc/CROSSOVERS.md [2] https://github.com/lyn

inconsistent behavior with destructuring ...

2012-04-18 Thread Sunil S Nandihalli
Hi Everybody, I was just wondering if the following behaviour is the right behaviour.. can somebody comment? user>> (let [{{a :a b :b :as w} :c a1 :a b1 :b :as w} {:a 10 :b 20 :c {:a 30 :b 40}}] {:a a :b b :b1 b1 :a1 a1}) {:a 30, :b 40, :b1 40, :a1 30} user>> (let [{{a :a b :b :as w} :c a1 :a b

Re: inconsistent behavior with destructuring ...

2012-04-18 Thread Sunil S Nandihalli
the behaviour seems to be the same in 1.4.0 Sunil. On Thu, Apr 19, 2012 at 11:31 AM, Sunil S Nandihalli < sunil.nandiha...@gmail.com> wrote: > Hi Everybody, > I was just wondering if the following behaviour is the right behaviour.. > can somebody comment? > > user>> (let [{{a :a b :b :as w} :c

Re: inconsistent behavior with destructuring ...

2012-04-18 Thread Meikel Brandmeyer (kotarak)
Hi, I think this is a bug. This is the expansion without any :as clause: (let* [map__4496 {:a 10, :b 20, :c {:a 30, :b 40}} map__4496 (if (clojure.core/seq? map__4496) (clojure.core/apply clojure.core/hash-map map__4496) map__4496) map__4497 (clojure.core/get map__4496

Re: inconsistent behavior with destructuring ...

2012-04-18 Thread Sunil S Nandihalli
You think I should file a bug-report? Sunil. On Thu, Apr 19, 2012 at 11:53 AM, Meikel Brandmeyer (kotarak) wrote: > Hi, > > I think this is a bug. This is the expansion without any :as clause: > > (let* > [map__4496 >{:a 10, :b 20, :c {:a 30, :b 40}} >map__4496 >(if (clojure.core/se

Re: inconsistent behavior with destructuring ...

2012-04-18 Thread Meikel Brandmeyer (kotarak)
Hi, yes, I think so. The destructuring should not depend on the presence or absence of a (for a given key) unrelated option. So no matter what I do with :as the :a, :b, etc. keys should be correctly destructured, even in nested maps as in your example. Kind regards Meikel -- You received thi