Please help me on submitting the Contributor Agreement

2011-10-16 Thread jingguo
I want to submit the Contributor Agreement. One question is whether the following mail address on http://clojure.org/contributing is still valid: Rich Hickey 514 South Duke Street Durham, NC 27701 The other question is whether the above address is in USA. I live in Beijing. I need to fill the

Re: Please help me on submitting the Contributor Agreement

2011-10-16 Thread Stuart Halloway
I want to submit the Contributor Agreement. One question is whether the following mail address on http://clojure.org/contributing is still valid: Rich Hickey 514 South Duke Street Durham, NC 27701 The other question is whether the above address is in USA. I live in Beijing. I need to

Re: Please help me on submitting the Contributor Agreement

2011-10-16 Thread jingguo
Stu: Thanks a lot. On Oct 16, 7:24 pm, Stuart Halloway stuart.hallo...@gmail.com wrote: I want to submit the Contributor Agreement. One question is whether the following mail address on http://clojure.org/contributingis still valid: Rich Hickey 514 South Duke Street Durham, NC 27701

Re: AMQP

2011-10-16 Thread Michael Klishin
2011/10/16 Matt Hoyt mrho...@yahoo.com I've started work on a library for amqp messaging in clojure: https://github.com/mrh0057/clj-amqp. The library matches pretty close to the rabbitmq java library. I didn't port over the consume and wait functionality from the rabbitmq library because I

Re: Recursively convert Java Map to Clojure Map

2011-10-16 Thread Chouser
On Sun, Oct 16, 2011 at 1:51 AM, Baishampayan Ghose b.gh...@gmail.com wrote: On Sun, Oct 16, 2011 at 11:16 AM, Jestan Nirojan jestanniro...@gmail.com wrote: Your solution worked, about 4x~5x improvement. Thanks a lot BG. Glad that it worked for you, Jestan. Protocols are usually the right

Re: Unexpected behavior with satisfies?

2011-10-16 Thread Eric in San Diego
Update: This appears to have been the product of a funky state. Restarting with a new swank service seems to have removed the problem. - e in sd On Oct 15, 8:04 am, Eric in San Diego eric.sc...@acm.org wrote: Hi all - I'm experiencing some unexpected behavior with protocols. Stripping out

Re: ClojureScript: API documentation

2011-10-16 Thread Curious Fox
I'd like to make sure that we are talking about the same thing. I was asking about run-time discoverability. I.e. if I linked closure, jQuery, etc.., I'd like be able to discover available to me functions at run time (referred as to REPL). I.e. if I have a form where user can type in some

Re: Sum on a list of maps

2011-10-16 Thread der
Thanks BG and all other responses for your help. I have a followup question, could the same approach be extended if I wanted to group-by multiple entries in the map? e.g. assuming the map now had Type and Subtype and I wanted to group-by the pair Type and Subtype, would the same approach work?

Re: SICP sqrt function generates unexpected NullPointerException

2011-10-16 Thread Timo Grodzinski
+1 hangs with Clojure 1.2.1 in Slimes REPL on Java 1.6.0_26 (Ubuntu) -- 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

Re: Sum on a list of maps

2011-10-16 Thread der
Thanks BG and all other responses for your help. I have a followup question, could the same approach be extended if I wanted to group-by multiple entries in the map? e.g. assuming the map now had Type and Subtype and I wanted to group-by the pair Type and Subtype, would the same approach work?

Re: Sum on a list of maps

2011-10-16 Thread Dave Ray
Yes, just change the grouping function passed to group-by: (group-by #(vector (% Type) (% Subtype)) coll) The keys in the resulting map will be two-element vectors (e.g. [TypeA SubTypeA]) so you'll need to adjust the body of the for a bit in BG's example. Cheers, Dave On Sun, Oct 16, 2011

Re: SICP sqrt function generates unexpected NullPointerException

2011-10-16 Thread Alan Malloy
An infinite loop on large inputs is unrelated to his null-pointer problem. As SICP makes clear, the imprecision of floating-point arithmetic means this particular algorithm will not terminate for large inputs. That is, rounding errors stop it from making progress when the numbers are large and the

ClojureScript Mobile BOF at the Clojure/conj?

2011-10-16 Thread Frank Siebenlist
Is there any interest to organize some form of ClojureScript Mobile BOF at the Clojure/conj? (some informal, ad hoc get-together where developers can share experiences and show-off some of their work related to making ClojureScript work on the mobile devices) The only thing we would need is

Re: clojure struct with java

2011-10-16 Thread Diego Pacheco
You Right! BUT still does not work. I tried: Var type = RT.var(clojure.core,type); Object oType = type.invoke(employee); Var struct = RT.var(clojure.core, struct-map); Object oStruct =

Re: Digest for clojure@googlegroups.com - 13 Messages in 5 Topics

2011-10-16 Thread Jay Vyas
Hi guys : Ive posted a question about looking for a DSL in clojure that replaces a good oo solution to an easily understandable, domain oriented problem (like the jpetstore application), on stackoverflow. Still now answers though --- thought maybe one of you would have some thoughts ?

Re: Digest for clojure@googlegroups.com - 13 Messages in 5 Topics

2011-10-16 Thread Sean Corfield
On Sun, Oct 16, 2011 at 9:26 PM, Jay Vyas jayunit...@gmail.com wrote: Hi guys : Ive posted a question about looking for a DSL in clojure that replaces a good oo solution to an easily understandable, domain oriented problem (like the jpetstore application), on stackoverflow.  Still now answers

Re: advantage of dynamic typing

2011-10-16 Thread Javier Neira Sanchez
In the official site of shen language http://www.shenlanguage.org/ the talk about porting shen (which is common lisp based in its default implementation) to others langs like javascript, llvm,scheme and... clojure! (the page http://www.shenlanguage.org/kernel.htm where i did read about clojure

Re: clojure struct with java

2011-10-16 Thread Diego Pacheco
I found the Solution. :-) I hope it help other people with the same issues, this worked out for me. I read clojure code on github and java code as well after some time struggling with the objects and functions I found this solution: package com.github.diegopacheco.sandbox.java.clojure;