Re: where is defalias in the new contrib github repositories

2012-02-03 Thread Alex Baranosky
defalias will transfer the metadata of the righthand side's var to the new alias on the left. On Feb 3, 2012 1:25 AM, Sean Corfield seancorfi...@gmail.com wrote: On Wed, Feb 1, 2012 at 10:23 PM, R Daneel maspo...@gmail.com wrote: it says that some of the old contrib.def moved to

Creating parsers in clojure

2012-02-03 Thread Anna
I'm new to clojure and I'm looking for code examples for building parsers in clojure on the fly using a grammar. I'm supposed to write a little SQL parser to experience with sql parse tree normalization's. Any recommendations? -- You received this message because you are subscribed to the Google

Re: Multiple expressions in LET and exceptions

2012-02-03 Thread karpiu
Now that you said it, it all makes perfect sense. I'm in the process of switching from Scheme to Clojure and these are some bad habits. This case makes me also realise that dealing with lazy sequences can be a delicate matter in cases where you want eager evaluation, since you really have to call

ClojureScript: Unexpected token in generated JavaScript when using destructuring in deftype

2012-02-03 Thread Benjamin Klüglein
Hi folks, I wrote a small piece of Clojure code of which I thought it would use the ClojureScript subset of Clojure, so that it could be compiled to JavaScript. But when I compile it (successfully) I get invalid JavaScript and I get an exception when running it in the browser. This seems to

Re: Leiningen Local Repositories

2012-02-03 Thread R Daneel
I can't get this to work using lein 1.6.2. I tried using the exact ~/.lein/init.clj in the example, but 'lein new foo' just creates a standard stub project.clj, without the additional elements. Is there anything I'm missing? Thanks! -- You received this message because you are subscribed

Re: Creating parsers in clojure

2012-02-03 Thread Richard Lyman
The little information you've provided leaves the field pretty open... ... but when I'm 'toying' around with ASTs I like Amotoen ('course I'm probably biased. ;-)). https://github.com/richard-lyman/amotoen -Rich On Fri, Feb 3, 2012 at 6:21 AM, Anna spiegl...@list.ru wrote: I'm new to clojure

Re: where is defalias in the new contrib github repositories

2012-02-03 Thread Stuart Sierra
defalias was always broken. It does not create an alias, it creates a new Var and copies the root binding. This is broken because if you rebind or alter one Var it does not affect the other. -S -- You received this message because you are subscribed to the Google Groups Clojure group. To post

Re: Creating parsers in clojure

2012-02-03 Thread Meikel Brandmeyer (kotarak)
Hi, Christophe Grand's parsley is another option: http://github.com/cgrand/parsley Sincerely Meikel -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are

Re: ClojureScript: Unexpected token in generated JavaScript when using destructuring in deftype

2012-02-03 Thread David Nolen
On Thu, Feb 2, 2012 at 5:02 PM, Benjamin Klüglein scheibenk...@googlemail.com wrote: Hi folks, I wrote a small piece of Clojure code of which I thought it would use the ClojureScript subset of Clojure, so that it could be compiled to JavaScript. But when I compile it (successfully) I get

Re: ClojureScript: Unexpected token in generated JavaScript when using destructuring in deftype

2012-02-03 Thread Meikel Brandmeyer (kotarak)
Hi, it is: Clojure 1.3.0 user= (defprotocol Test (foo [this data])) Test user= (deftype Foo [] Test (foo [this {:keys [bar a b c] :as d}] (println bar))) user.Foo user= (foo (Foo.) {:bar 123}) 123 nil Meikel -- You received this message because you are subscribed to the Google Groups

Re: Creating parsers in clojure

2012-02-03 Thread Chris Perkins
There is an example of parser for a very small subset of SQL in one of the unit tests for imparsonate, here: https://github.com/grammati/imparsonate/blob/master/test/imparsonate/test/core.clj - Chris -- You received this message because you are subscribed to the Google Groups Clojure group.

Re: ClojureScript: Unexpected token in generated JavaScript when using destructuring in deftype

2012-02-03 Thread David Nolen
On Fri, Feb 3, 2012 at 10:29 AM, Meikel Brandmeyer (kotarak) m...@kotka.dewrote: Hi, it is: Clojure 1.3.0 user= (defprotocol Test (foo [this data])) Test user= (deftype Foo [] Test (foo [this {:keys [bar a b c] :as d}] (println bar))) user.Foo user= (foo (Foo.) {:bar 123})

ANN: Clojure 1.4.0-beta1

2012-02-03 Thread Stuart Sierra
Clojure 1.4 goes beta! This release is essentially the same as 1.4.0-alpha5. It will hit the Maven Central repository in a few hours. No new features in the 1.4 line after this point. Bug fixes are still allowed. Also, if somebody wants to compile a list on the wiki of all the bug fixes and

Re: WebSockets with Clojure

2012-02-03 Thread Cedric Greevey
On Thu, Feb 2, 2012 at 8:30 PM, Takahiro Hozumi fat...@googlemail.com wrote: 1. Resolve a server name which client should be connected to. If a client need to be connected to specific resource (chat room etc) consistent hashing is useful.

Re: where is defalias in the new contrib github repositories

2012-02-03 Thread Alex Baranosky
Broken, in the sense that its name shouldn't be defalias. If it was called, defcopypmeta or somethingperhaps On Friday, February 3, 2012, Stuart Sierra the.stuart.sie...@gmail.com wrote: defalias was always broken. It does not create an alias, it creates a new Var and copies the root

Re: ANN: Clojure 1.4.0-beta1

2012-02-03 Thread Tassilo Horn
Stuart Sierra the.stuart.sie...@gmail.com writes: Hi Stu, Clojure 1.4 goes beta! This release is essentially the same as 1.4.0-alpha5. It will hit the Maven Central repository in a few hours. Great news, I'd very much like to test-drive it before the 1.4.0 release. Is there anything better

Re: ANN: Clojure 1.4.0-beta1

2012-02-03 Thread Praki Prakash
I use mvn -X to diagnose such issues. mvn can also produce detailed reports on dependency and much more (mvn site -- I think). HTH On Fri, Feb 3, 2012 at 9:19 AM, Tassilo Horn tass...@member.fsf.org wrote: Stuart Sierra the.stuart.sie...@gmail.com writes: Hi Stu, Clojure 1.4 goes beta! This

Re: ANN: Clojure 1.4.0-beta1

2012-02-03 Thread Stuart Sierra
Both Maven and Leiningen can exclude transitive dependencies. In lein, it looks like this: https://github.com/technomancy/leiningen/blob/8baf33ec80bae1d3509590215262351aa2d72fbe/sample.project.clj#L35 -S -- You received this message because you are subscribed to the Google Groups Clojure

Re: Creating parsers in clojure

2012-02-03 Thread Roman Perepelitsa
2012/2/3 Anna spiegl...@list.ru I'm new to clojure and I'm looking for code examples for building parsers in clojure on the fly using a grammar. I'm supposed to write a little SQL parser to experience with sql parse tree normalization's. Any recommendations? Check out this recent thread:

Re: ANN: Clojure 1.4.0-beta1

2012-02-03 Thread Sam Aaron
On 3 Feb 2012, at 15:47, Stuart Sierra wrote: Also, if somebody wants to compile a list on the wiki of all the bug fixes and changes since 1.3, that would be very helpful. Thanks! That would be wonderful (particularly if someone could post a link to that list on this mailing list). Not being

Re: ANN: Clojure 1.4.0-beta1

2012-02-03 Thread Cedric Greevey
On Fri, Feb 3, 2012 at 2:09 PM, Sam Aaron samaa...@gmail.com wrote: On 3 Feb 2012, at 15:47, Stuart Sierra wrote: Also, if somebody wants to compile a list on the wiki of all the bug fixes and changes since 1.3, that would be very helpful. Thanks! That would be wonderful (particularly if

Re: ANN: Clojure 1.4.0-beta1

2012-02-03 Thread Tassilo Horn
Praki Prakash praki.prak...@gmail.com writes: Hi Praki, I use mvn -X to diagnose such issues. mvn can also produce detailed reports on dependency and much more (mvn site -- I think). I operate maven thru leiningen only, but probably I should get some understanding of maven, too. Right now, I

Re: ANN: Clojure 1.4.0-beta1

2012-02-03 Thread Cedric Greevey
On Fri, Feb 3, 2012 at 2:11 PM, Stuart Sierra the.stuart.sie...@gmail.com wrote: Starting with 1.3 there is a changes.md file in the Clojure source. I'm fairly sure the OP wants a human-readable, user-centric file he can view by clicking a link or pasting a URL into his browser, not a .md file

Re: ANN: Clojure 1.4.0-beta1

2012-02-03 Thread Tassilo Horn
Stuart Sierra the.stuart.sie...@gmail.com writes: Hi Stuart, Both Maven and Leiningen can exclude transitive dependencies. In lein, it looks like this: https://github.com/technomancy/leiningen/blob/8baf33ec80bae1d3509590215262351aa2d72fbe/sample.project.clj#L35 Yes, Phil already pointed

Re: ANN: Clojure 1.4.0-beta1

2012-02-03 Thread Sam Aaron
On 3 Feb 2012, at 19:26, Cedric Greevey wrote: On Fri, Feb 3, 2012 at 2:11 PM, Stuart Sierra the.stuart.sie...@gmail.com wrote: Starting with 1.3 there is a changes.md file in the Clojure source. I'm fairly sure the OP wants a human-readable, user-centric file he can view by clicking a

Re: ANN: Clojure 1.4.0-beta1

2012-02-03 Thread Tassilo Horn
Cedric Greevey cgree...@gmail.com writes: On Fri, Feb 3, 2012 at 2:11 PM, Stuart Sierra the.stuart.sie...@gmail.com wrote: Starting with 1.3 there is a changes.md file in the Clojure source. I'm fairly sure the OP wants a human-readable, user-centric file he can view by clicking a link or

Re: ANN: Clojure 1.4.0-beta1

2012-02-03 Thread Cedric Greevey
On Fri, Feb 3, 2012 at 2:40 PM, Tassilo Horn tass...@member.fsf.org wrote: Cedric Greevey cgree...@gmail.com writes: On Fri, Feb 3, 2012 at 2:11 PM, Stuart Sierra the.stuart.sie...@gmail.com wrote: Starting with 1.3 there is a changes.md file in the Clojure source. I'm fairly sure the OP

Re: ANN: Clojure 1.4.0-beta1

2012-02-03 Thread Sam Aaron
On 3 Feb 2012, at 20:00, Cedric Greevey wrote: FWIW, the file seems to act like perfectly readable HTML in the browser (surprisingly -- I was expecting something more like trying to read raw HTML, with tags cluttering up everything, and no working outbound links, since I didn't expect

Re: ANN: Clojure 1.4.0-beta1

2012-02-03 Thread Jim Crossley
Tassilo Horn tass...@member.fsf.org writes: [...] I operate maven thru leiningen only, but probably I should get some understanding of maven, too. Right now, I even cannot determine the maven command for fetching deps (after generating a maven pom.xml using lein pom). ;-) mvn install

why is assert-args private?

2012-02-03 Thread Andrew
In clojure's core.clj, assert-args is marked with ^{:private true}. Why? Seems like something that would be useful in any macro definition, not just the ones in core.clj... -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send

Re: ANN: Clojure 1.4.0-beta1

2012-02-03 Thread Tassilo Horn
Jim Crossley jcrossl...@gmail.com writes: I operate maven thru leiningen only, but probably I should get some understanding of maven, too. Right now, I even cannot determine the maven command for fetching deps (after generating a maven pom.xml using lein pom). ;-) mvn install Ah, ok,

Re: ANN: Clojure 1.4.0-beta1

2012-02-03 Thread Jim Crossley
Tassilo Horn tass...@member.fsf.org writes: [...] Ah, ok, seems to work. Except that it doesn't copy the deps into my project but only to ~/.m2/, but that's probably the maven way. Correct. Though this plugin may be of interest:

Re: ANN: Clojure 1.4.0-beta1

2012-02-03 Thread Alasdair MacLeod
That's because Github kicks ass :-) It automatically renders markdown files as html when you view them in the browser. I've downloaded the jar but don't see any changes.md file in there https://github.com/clojure/clojure/blob/master/changes.md lists 1.3 changes I don't see a 1.4 branch on

Ann [clj-disruptor 0.0.1] - wrapper for LMax Disruptor

2012-02-03 Thread Dave Sann
I have started looking at the LMAX disruptor for event processing. It is an interesting model. Take a look if you are interested. clojars [clj-disruptor 0.0.1] github https://github.com/davesann/clj-disruptor There are some links to doco in the description on github An interesting aspect

Re: ANN: Clojure 1.4.0-beta1

2012-02-03 Thread AndyK
On Feb 3, 10:47 am, Stuart Sierra the.stuart.sie...@gmail.com wrote: Clojure 1.4 goes beta! This release is essentially the same as 1.4.0-alpha5. It will hit the Maven Central repository in a few hours. No new features in the 1.4 line after this point. Bug fixes are still allowed. Also, if

Re: ANN: Clojure 1.4.0-beta1

2012-02-03 Thread Sean Corfield
On Fri, Feb 3, 2012 at 7:06 PM, AndyK andy.kri...@gmail.com wrote: Is 1.4 supposed to be compatible with 1.3 and libraries written to 1.3? The changes between 1.3 and 1.4 are a lot smaller than between 1.2 and 1.3, fortunately :) For example, I've found some 1.2 libraries don't play nicely