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 core.incubator, but
  apparently not defalias.  Can anyone tell me where it is now (or better
 yet:
  how to answer that sort of question generically!)?

 defalias did not get migrated. I don't know why. If someone can
 explain why it didn't get migrated and how to do the equivalent in
 Clojure 1.3 without it, I can update the Where did... page so folks
 know what to do.

 FWIW, when I migrated contrib.sql to java.jdbc I just replaced
 defalias with def because I couldn't see what benefit defalias
 provided (and no one has complained).
 --
 Sean A Corfield -- (904) 302-SEAN
 An Architect's View -- http://corfield.org/
 World Singles, LLC. -- http://worldsingles.com/

 Perfection is the enemy of the good.
 -- Gustave Flaubert, French realist novelist (1821-1880)

 --
 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 moderated - please be patient with
 your first post.
 To unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en

-- 
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 moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

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
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


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 doseq/dorun explicitly to get the elements of
the sequence evaluated instead of merely evaluating the sequence-
generating expression. In the case I was originally considering, I had
a sequence of invocations of a test function that would return a lazy
sequence of calls to another testing function. As a result, each of
such invocations would work when evaluated in REPL but after grouping
a number of them in test case no tests were being performed...

Lesson learned, thanks Tim!
Marcin

On Feb 2, 5:56 pm, Timothy Baldridge tbaldri...@gmail.com wrote:
 Map actually doesn't do anything at all. It simply creates a new lazy
 sequence. Instead of map, use doseq and you'll get the result you
 expect. Since you actually never print the result of the map, the lazy
 sequence is just thrown away, and f is never called, hence never
 evaluates.

 Timothy







  For example, the following program when evaluated (I'm
  running Clojure 1.3) returns wrong.

  (let [f (fn [x] (if (= x 10)
                      (throw (new RuntimeException error!))
                      right))]
      (map f (list 10))
      wrong)

-- 
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 moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


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 occur only when I use object destructuring within deftype. A 
small sample:

(ns test)

(defprotocol Test
  (foo [this data]))

(deftype Foo []
Test
  (foo [this {:keys [bar a b c] :as d}]
(.log js/console bar)))

This compiles down to:

// ... 
/**
* @constructor
*/
test.Foo = (function (){
})
test.Foo.cljs$core$IPrintable$_pr_seq = (function (this__262__auto__){
return cljs.core.list.call(null,test.Foo);
});
test.Foo.prototype.test$Test$ = true;
// The next line isn't valid javascript it still contains the :keys keyword!
test.Foo.prototype.test$Test$foo = (function (this$,{:keys [bar a b c], 
_COLON_as d_RBRACE_){
var this__2633 = this;
return console.log(test.bar);
});
test.Foo;

 I tested destructuring in normal fns, which worked fine.
Is there something wrong with my snippet or could this be a bug?

I'm using the latest version of cljsc from github 
(1028ca12f169322e31d7967d8c385165cf773665)

Best regards
Ben

-- 
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 moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

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 to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

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 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
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


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 to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

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 moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

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 invalid JavaScript
 and I get an exception when running it in the browser.

 This seems to occur only when I use object destructuring within deftype. A
 small sample:


Destructuring is not currently supported on protocol fns. That's not valid
in Clojure either.

David

-- 
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 moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

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 Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

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.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

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})
 123
 nil

 Meikel


Oops! You're right! :) Ticket created:

http://dev.clojure.org/jira/browse/CLJS-141

David

-- 
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 moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

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 changes since 1.3, that would be very helpful. Thanks!

-Stuart Sierra
clojure.com

-- 
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 moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


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.
 http://nakkaya.com/2010/05/05/consistent-hashing-with-clojure/

 (defn sha1 [obj]
   (let [bytes (.getBytes (with-out-str (pr obj)))]
 (apply vector (.digest (MessageDigest/getInstance SHA1) bytes

Ouch. Not simply the Java hash function? That will work for Clojure
objects that don't contain identities, only values. Whereas the above
has issues with sets and maps that are semantically equal but get put
together differently:

user= (def x (array-map :a 1 :b 2))
#'user/x
user= (def y (array-map :b 2 :a 1))
#'user/y
user= (= (sha1 x) (sha1 y))
false

Oopsie.

-- 
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 moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


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 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 to this group, send email to clojure@googlegroups.com
 Note that posts from new members are moderated - please be patient with
your first post.
 To unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en

-- 
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 moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

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 than downloading its JAR and
replacing the clojure-1.3.0.jar in my project with it?

As soon as I change my [org.clojure/clojure 1.3.0] dependency to
1.4.0-alpha5 (beta1 seems not have arrived yet) or [1.3.0,), maven
gets messed up when fetching dependencies...

Right now, my minimized test project deps are

  :dependencies [[org.clojure/clojure 1.3.0]
 [ordered 0.3.0]
 [org.clojure/tools.macro [0.1.1,)]]

which works fine.  Now I've seen that ordered-1.0.0 is out.  That still
works fine.

  :dependencies [[org.clojure/clojure 1.3.0]
 [ordered 1.0.0]
 [org.clojure/tools.macro [0.1.1,)]]

Now trying to get the clojure snapshot breaks maven's dependency
management.

  :dependencies [[org.clojure/clojure 1.4.0-alpha5]
 [ordered 1.0.0]
 [org.clojure/tools.macro [0.1.1,)]]

It errors because it couldn't download
org.clojure:clojure:jar:1.3.0-alpha5.  But why 1.3.0-alpha5?!?

Strangely, when reverting my test project to an older ordered version,
it works fine again.

  :dependencies [[org.clojure/clojure 1.4.0-alpha5]
 [ordered 0.3.0]
 [org.clojure/tools.macro [0.1.1,)]]

Argh, I'll never understand maven.  Is there something option to make it
show the dependency tree?  I mean, tools.macro doesn't seem to have any
dependencies declared and ordered 1.0.0 has clojure [1.2.0,1.3.0] as
dependency.  But why on earth does maven then try to get 1.3.0-alpha5?

And is there a way to influence external deps?  For example, I'm pretty
sure that the ordered library works just fine with 1.4.0.  Currently, it
seems to me that in order to upgrade my own project to 1.4.0, I have to
wait until all my dependencies also added 1.4.0 as a allowed dependency,
which might take ages and hinders early test-driving and adoption of new
clojure releases.

Sorry, that mail was not intended to become a long rant.  But I'm really
interested to know how others deal with the maven hell.

Bye,
Tassilo

-- 
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 moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


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 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 than downloading its JAR and
 replacing the clojure-1.3.0.jar in my project with it?

 As soon as I change my [org.clojure/clojure 1.3.0] dependency to
 1.4.0-alpha5 (beta1 seems not have arrived yet) or [1.3.0,), maven
 gets messed up when fetching dependencies...

 Right now, my minimized test project deps are

  :dependencies [[org.clojure/clojure 1.3.0]
                 [ordered 0.3.0]
                 [org.clojure/tools.macro [0.1.1,)]]

 which works fine.  Now I've seen that ordered-1.0.0 is out.  That still
 works fine.

  :dependencies [[org.clojure/clojure 1.3.0]
                 [ordered 1.0.0]
                 [org.clojure/tools.macro [0.1.1,)]]

 Now trying to get the clojure snapshot breaks maven's dependency
 management.

  :dependencies [[org.clojure/clojure 1.4.0-alpha5]
                 [ordered 1.0.0]
                 [org.clojure/tools.macro [0.1.1,)]]

 It errors because it couldn't download
 org.clojure:clojure:jar:1.3.0-alpha5.  But why 1.3.0-alpha5?!?

 Strangely, when reverting my test project to an older ordered version,
 it works fine again.

  :dependencies [[org.clojure/clojure 1.4.0-alpha5]
                 [ordered 0.3.0]
                 [org.clojure/tools.macro [0.1.1,)]]

 Argh, I'll never understand maven.  Is there something option to make it
 show the dependency tree?  I mean, tools.macro doesn't seem to have any
 dependencies declared and ordered 1.0.0 has clojure [1.2.0,1.3.0] as
 dependency.  But why on earth does maven then try to get 1.3.0-alpha5?

 And is there a way to influence external deps?  For example, I'm pretty
 sure that the ordered library works just fine with 1.4.0.  Currently, it
 seems to me that in order to upgrade my own project to 1.4.0, I have to
 wait until all my dependencies also added 1.4.0 as a allowed dependency,
 which might take ages and hinders early test-driving and adoption of new
 clojure releases.

 Sorry, that mail was not intended to become a long rant.  But I'm really
 interested to know how others deal with the maven hell.

 Bye,
 Tassilo

 --
 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 moderated - please be patient with your 
 first post.
 To unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en



-- 
(praki)

-- 
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 moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


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 group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

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:
https://groups.google.com/d/topic/clojure/2fGNugcdkDo/discussion

Roman Perepelitsa.

-- 
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 moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

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 too steeped in the ways and means of Clojure 
dev workflows and practices I always find it tremendously difficult to get an 
understanding of what's going on with the development. As such, I have 
absolutely no idea what's going into 1.4, what's left to be done and how the 
changes will impact my Clojure software.

I'm sure that as soon as I post this, someone will reply with a link to a page 
with some useful information. However, I'm personally unable to easily find 
anything using google and/or starting here: http://dev.clojure.org/

It would be great (perhaps this already exists?) if there was a page which was 
just a list of version numbers with a CHANGELOG associated with each.

Sam

---
http://sam.aaron.name


-- 
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 moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


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 someone could post a link to that 
 list on this mailing list). Not being too steeped in the ways and means of 
 Clojure dev workflows and practices I always find it tremendously difficult 
 to get an understanding of what's going on with the development. As such, I 
 have absolutely no idea what's going into 1.4, what's left to be done and how 
 the changes will impact my Clojure software.

Last time I looked, we were still waiting for such a list/link to be
posted here for the 1.2-1.3 changes.

-- 
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 moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


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 even cannot determine the
maven command for fetching deps (after generating a maven pom.xml using
lein pom). ;-)

Phil already told me how I can explicitly disable the possibly
conflicting deps of a dep of my dep inside leiningen over at
clojure-dev.

  https://groups.google.com/d/msg/clojure-dev/ceGaYJfLdKE/FExtowIXSxEJ

Thanks,
Tassilo

-- 
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 moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


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 (whatever THAT is) that he has to find, download, and unzip
the source distribution to get at.

-- 
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 moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


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 that out, and it does the trick. :-)

Thanks,
Tassilo (running successfully on 1.4.0-beta1, now)

-- 
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 moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


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 link or pasting a URL into his browser, not a
 .md file (whatever THAT is) that he has to find, download, and unzip
 the source distribution to get at.

The md file (which stands for markdown[1]) is here:

https://github.com/clojure/clojure/blob/master/changes.md

However it only covers 1.3 and nothing w.r.t. 1.4 work

Sam

[1]:http://daringfireball.net/projects/markdown/

---
http://sam.aaron.name 

-- 
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 moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


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 pasting a URL into his browser,

Yeah, do it exactly that way. ;-)

  https://github.com/clojure/clojure/blob/master/changes.md

 not a .md file (whatever THAT is)

MarkDown, the wiki syntax used by github.

 that he has to find, download, and unzip the source distribution to
 get at.

It's 2012, the sources are browsable online!

Bye,
Tassilo

-- 
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 moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


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 wants a human-readable, user-centric file he
 can view by clicking a link or pasting a URL into his browser,

 Yeah, do it exactly that way. ;-)

  https://github.com/clojure/clojure/blob/master/changes.md

 not a .md file (whatever THAT is)

 MarkDown, the wiki syntax used by github.

 that he has to find, download, and unzip the source distribution to
 get at.

 It's 2012, the sources are browsable online!

Not without a link to them they aren't.

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 Firefox to speak .md) but is
fairly terse on details (and, especially, on rationales for some of
the changes) though it links to a much more detailed page about the
numerics changes.

-- 
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 moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


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 Firefox to speak .md)

That's because Github kicks ass :-) It automatically renders markdown files as 
html when you view them in the browser.

Markdown was invented to be readable as raw text and then easily convertible to 
html. 

Sam

---
http://sam.aaron.name

-- 
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 moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


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

[...]

-- 
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 moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


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 email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

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, 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.  And it
fetches much more than the transitive closure of my project's
dependencies, i.e., plexus, surefire, commons-cli, doxia, and what not,
many of them even in various different versions...

Bye,
Tassilo

-- 
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 moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


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:
http://maven.apache.org/plugins/maven-dependency-plugin/copy-dependencies-mojo.html

 And it fetches much more than the transitive closure of my project's
 dependencies, i.e., plexus, surefire, commons-cli, doxia, and what
 not, many of them even in various different versions...

Yeah, probably due to deps of the plugins if you've never built any
maven project locally.

Jim


 Bye,
 Tassilo

-- 
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 moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


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 GitHub and don't know where else to look.

Can someone provide a link to the 1.4 changes.md if it exists?

-- 
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 moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


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 of the disruptor model is that the events in the ring 
buffer are intentionally mutable.
The sequencing of processing and event handlers is controlled to avoid 
conflict without locking.

D

-- 
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 moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

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 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!

 -Stuart Sierra
 clojure.com

Is 1.4 supposed to be compatible with 1.3 and libraries written to
1.3?

For example, I've found some 1.2 libraries don't play nicely with 1.3
because of the clojure-contrib changes and would like to avoid
problems like that while being able to use 1.4 in my code.

-- 
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 moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


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 with 1.3
 because of the clojure-contrib changes and would like to avoid
 problems like that while being able to use 1.4 in my code.

The contrib changes were a one-off, breaking the monolithic 1.2
contrib into smaller, well-maintained pieces, and there is already
automatic testing of those new libraries against 1.4.0 - see the
matrix tests here: http://build.clojure.org/

One thing you can do to help yourself in this is use lein-multi to
automatically run your application's tests against different versions.
At World Singles, we run all our tests against 1.3.0 (what we're using
in production), 1.4.0-master-SNAPSHOT and the latest official build
(currently beta1).
-- 
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/

Perfection is the enemy of the good.
-- Gustave Flaubert, French realist novelist (1821-1880)

-- 
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 moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en