Error Handling for Callback API to Blocking API example in Joy of Clojure

2010-12-19 Thread HiHeelHottie
In Joy of Clojure, there is a callback API to blocking API example in the section on promises. Chouser outlines it a briefly in a discussion on Promise/Deliver use cases here -

Re: Dispatch on return type?

2010-12-19 Thread nicolas.o...@gmail.com
On Sun, Dec 19, 2010 at 5:21 AM, Tim Daly d...@axiom-developer.org wrote:  Axiom, a computer algebra system I maintain, can dispatch on return type. I am looking at the things Clojure can do that might support the Spad language (the mathematical language in Axiom). I could not find a way to

Re: Dispatch on return type?

2010-12-19 Thread Meikel Brandmeyer
Hi, Am 19.12.2010 um 11:36 schrieb nicolas.o...@gmail.com: There is no static typing in Clojure. So the notion of return type do not really exists. Yes. The type system of eg. Haskell or OCaml is another layer of information, which you don't have in Clojure. On the other, it's another bad

Re: Dispatch on return type?

2010-12-19 Thread nicolas.o...@gmail.com
On Sun, Dec 19, 2010 at 11:24 AM, Meikel Brandmeyer m...@kotka.de wrote: Hi, Am 19.12.2010 um 11:36 schrieb nicolas.o...@gmail.com: There is no static typing in Clojure. So the notion of return type do not really exists. Yes. The type system of eg. Haskell or OCaml is another layer of

Re: defmethod/defmulti should dispatch on the new arguments when we call the recur..?

2010-12-19 Thread Sunil S Nandihalli
thanks Meikel for your clarification.. I used to think loop recur almost removed the need for TCO .. but here is a case where true TCO could be really helpfull.. Sunil. On Sun, Dec 19, 2010 at 1:33 PM, Meikel Brandmeyer m...@kotka.de wrote: Hi, Am 19.12.2010 um 08:30 schrieb Sunil S

Re: defmethod/defmulti should dispatch on the new arguments when we call the recur..?

2010-12-19 Thread Ken Wesson
On Sun, Dec 19, 2010 at 10:34 AM, Sunil S Nandihalli sunil.nandiha...@gmail.com wrote: thanks Meikel for your clarification.. I used to think loop recur almost removed the need for TCO .. but here is a case where true TCO could be really helpfull.. If we had a (resolve-method multi args) that

Re: defmethod/defmulti should dispatch on the new arguments when we call the recur..?

2010-12-19 Thread Meikel Brandmeyer
Hi, Am 19.12.2010 um 16:46 schrieb Ken Wesson: If we had a (resolve-method multi args) that resolved dispatch and then returned a fn that would call the method with those same args -- so ((resolve-method multi args)) = (multi args) -- then this could be used with trampoline in cases like

classic clojure-contrib 1.3.0-alpha4 released

2010-12-19 Thread Stuart Sierra
Description of current plans for future releases is at http://dev.clojure.org/display/design/Common+Contrib+Build -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

Re: Logos v0.2: or Life w/o Tail Call Optimization

2010-12-19 Thread David Nolen
On Sat, Dec 18, 2010 at 11:06 PM, jim jim.d...@gmail.com wrote: David, I started looking at Logos tonight. Really nice. I like the way its heading. Looking forward to using it. Jim Thanks! Next steps are: - disequality constraints - nominal logic - tabling Once those are in, I think

Re: defmethod/defmulti should dispatch on the new arguments when we call the recur..?

2010-12-19 Thread Robert McIntyre
@Ken Wesson: do you mean something like this: https://gist.github.com/747571 My fists stab at this technique looks kinda ugly though... Is there a way to somehow embed the trampoline inside the recursive definition? Is there a way to get the actual dispatch function other than (.dispatchFn

Re: defmethod/defmulti should dispatch on the new arguments when we call the recur..?

2010-12-19 Thread Meikel Brandmeyer
Hi, Am 19.12.2010 um 19:35 schrieb Robert McIntyre: @Ken Wesson: do you mean something like this: https://gist.github.com/747571 Maybe I'm missing something, but why don't you just call the multimethod itself again in the trampoline fn? Sincerely Meikel -- You received this message

clj-http timeouts

2010-12-19 Thread dsapala
Does anyone know how to set connection or read timeouts for clj-http? -- 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

Ah-hah! Clojure is a Lisp

2010-12-19 Thread Tim Daly
There have been discussions, here and elsewhere, about whether Clojure is a Lisp. Lots of discussion centers around facts like homoiconicity, or the REPL, or the debate of Rich's redefinition of lisp primitives, etc. These are arguments about the paint on the palace. I have struggled with this

Re: Ah-hah! Clojure is a Lisp

2010-12-19 Thread Sean Corfield
On Sun, Dec 19, 2010 at 11:33 AM, Tim Daly d...@axiom-developer.org wrote: The most fundamental thing about Lisp is that there is this universal but personal event when you suddenly get it. This does not seem to happen with other languages. I think it's true to some extent with most languages

Re: clj-http timeouts

2010-12-19 Thread Miki
Does anyone know how to set connection or read timeouts for clj-http? I didn't see anything in the API. clj-apache-http has that option though (setting http.socket.timeout parameter). HTH, -- Miki -- You received this message because you are subscribed to the Google Groups Clojure group.

Re: Ah-hah! Clojure is a Lisp

2010-12-19 Thread javajosh
Can you articulate it any better than ah hah!? On Dec 19, 11:33 am, Tim Daly d...@axiom-developer.org wrote:   There have been discussions, here and elsewhere, about whether Clojure is a Lisp. Lots of discussion centers around facts like homoiconicity, or the REPL, or the debate of Rich's

Re: Ah-hah! Clojure is a Lisp

2010-12-19 Thread gaz jones
sha-wing? :D On Sun, Dec 19, 2010 at 5:41 PM, javajosh javaj...@gmail.com wrote: Can you articulate it any better than ah hah!? On Dec 19, 11:33 am, Tim Daly d...@axiom-developer.org wrote:   There have been discussions, here and elsewhere, about whether Clojure is a Lisp. Lots of discussion

Re: Ah-hah! Clojure is a Lisp

2010-12-19 Thread Vagif Verdi
Haskell has aha moments too. And it is not lisp. The definition of lisp i accept is much simpler and much more obvious: source code of the program is a valid data structure in that language. On Dec 19, 11:33 am, Tim Daly d...@axiom-developer.org wrote:   There have been discussions, here and

Re: Ah-hah! Clojure is a Lisp

2010-12-19 Thread Ken Wesson
On Sun, Dec 19, 2010 at 7:31 PM, Vagif Verdi vagif.ve...@gmail.com wrote: Haskell has aha moments too. And it is not lisp. The definition of lisp i accept is much simpler and much more obvious: source code of the program is a valid data  structure in that language. Access to the parse tree.

Re: Ah-hah! Clojure is a Lisp

2010-12-19 Thread Tim Daly
On 12/19/2010 6:41 PM, javajosh wrote: Can you articulate it any better than ah hah!? The proper response is moo. But I think there is a point where you get concepts like the distinction between values and identity which are fundamental. Whatever the event, it feels like whatever I write is

Re: Ah-hah! Clojure is a Lisp

2010-12-19 Thread Tim Daly
I didn't mean to imply that other people don't have the ah-hah! experience with other languages. However, I have only had the (before lisp)|(after lisp) experience with lisp. Your enlightenment might vary. Rich gave his Whitehead talk and brought up the fact that OO languages get several

Re: Ah-hah! Clojure is a Lisp

2010-12-19 Thread Ken Wesson
On Sun, Dec 19, 2010 at 8:18 PM, Tim Daly d...@axiom-developer.org wrote:  I didn't mean to imply that other people don't have the ah-hah! experience with other languages. However, I have only had the (before lisp)|(after lisp) experience with lisp. Your enlightenment might vary. Rich

Re: Ah-hah! Clojure is a Lisp

2010-12-19 Thread Eric Schulte
Tim Daly d...@axiom-developer.org writes: Haskell has neat ideas but I've seen them before in lisp-based systems. I work in a language which is strongly typed, allows currying, is functional, etc., implemented in Common Lisp. I have not found the ah-hah! in Haskell. Sounds interesting,

Re: Ah-hah! Clojure is a Lisp

2010-12-19 Thread Tim Daly
On 12/19/2010 8:33 PM, Eric Schulte wrote: Tim Dalyd...@axiom-developer.org writes: Haskell has neat ideas but I've seen them before in lisp-based systems. I work in a language which is strongly typed, allows currying, is functional, etc., implemented in Common Lisp. I have not found the

Re: Ah-hah! Clojure is a Lisp

2010-12-19 Thread Ken Wesson
On Sun, Dec 19, 2010 at 8:25 PM, Tim Daly d...@axiom-developer.org wrote: On 12/19/2010 8:20 PM, Ken Wesson wrote: On Sun, Dec 19, 2010 at 8:18 PM, Tim Dalyd...@axiom-developer.org  wrote:  I didn't mean to imply that other people don't have the ah-hah! experience with other languages.

Re: Ah-hah! Clojure is a Lisp

2010-12-19 Thread Sean Corfield
On Sun, Dec 19, 2010 at 6:24 PM, Ken Wesson kwess...@gmail.com wrote: Has everyone on this list developed a sudden allergy to plain text and HTML? First I get pointed to a 34-minute video, and now this. A simple bulleted list with a brief precis about each item would have sufficed; a

Re: Ah-hah! Clojure is a Lisp

2010-12-19 Thread Tim Daly
On 12/19/2010 9:24 PM, Ken Wesson wrote: On Sun, Dec 19, 2010 at 8:25 PM, Tim Dalyd...@axiom-developer.org wrote: On 12/19/2010 8:20 PM, Ken Wesson wrote: On Sun, Dec 19, 2010 at 8:18 PM, Tim Dalyd...@axiom-developer.org wrote: I didn't mean to imply that other people don't have the

Re: Ah-hah! Clojure is a Lisp

2010-12-19 Thread Ken Wesson
On Sun, Dec 19, 2010 at 9:42 PM, Tim Daly d...@axiom-developer.org wrote: On 12/19/2010 9:24 PM, Ken Wesson wrote: On Sun, Dec 19, 2010 at 8:25 PM, Tim Dalyd...@axiom-developer.org  wrote: On 12/19/2010 8:20 PM, Ken Wesson wrote: On Sun, Dec 19, 2010 at 8:18 PM, Tim

Re: Ah-hah! Clojure is a Lisp

2010-12-19 Thread Tim Daly
On 12/19/2010 10:21 PM, Ken Wesson wrote: On Sun, Dec 19, 2010 at 9:42 PM, Tim Dalyd...@axiom-developer.org wrote: On 12/19/2010 9:24 PM, Ken Wesson wrote: On Sun, Dec 19, 2010 at 8:25 PM, Tim Dalyd...@axiom-developer.org wrote: On 12/19/2010 8:20 PM, Ken Wesson wrote: On Sun, Dec 19,

Re: Ah-hah! Clojure is a Lisp

2010-12-19 Thread Ken Wesson
On Sun, Dec 19, 2010 at 10:33 PM, Tim Daly d...@axiom-developer.org wrote: On 12/19/2010 10:21 PM, Ken Wesson wrote: On Sun, Dec 19, 2010 at 9:42 PM, Tim Dalyd...@axiom-developer.org  wrote: On 12/19/2010 9:24 PM, Ken Wesson wrote: On Sun, Dec 19, 2010 at 8:25 PM, Tim

Re: Ah-hah! Clojure is a Lisp

2010-12-19 Thread Mike Meyer
On Sun, 19 Dec 2010 21:24:42 -0500 Ken Wesson kwess...@gmail.com wrote: On Sun, Dec 19, 2010 at 8:25 PM, Tim Daly d...@axiom-developer.org wrote: On 12/19/2010 8:20 PM, Ken Wesson wrote: On Sun, Dec 19, 2010 at 8:18 PM, Tim Dalyd...@axiom-developer.org  wrote:  I didn't mean to

Re: Ah-hah! Clojure is a Lisp

2010-12-19 Thread Tim Daly
On 12/19/2010 10:53 PM, Ken Wesson wrote: On Sun, Dec 19, 2010 at 10:33 PM, Tim Dalyd...@axiom-developer.org wrote: On 12/19/2010 10:21 PM, Ken Wesson wrote: On Sun, Dec 19, 2010 at 9:42 PM, Tim Dalyd...@axiom-developer.org wrote: On 12/19/2010 9:24 PM, Ken Wesson wrote: On Sun, Dec 19,

Re: Ah-hah! Clojure is a Lisp

2010-12-19 Thread Laurent PETIT
2010/12/20 Tim Daly d...@axiom-developer.org On 12/19/2010 10:53 PM, Ken Wesson wrote: On Sun, Dec 19, 2010 at 10:33 PM, Tim Dalyd...@axiom-developer.org wrote: On 12/19/2010 10:21 PM, Ken Wesson wrote: On Sun, Dec 19, 2010 at 9:42 PM, Tim Dalyd...@axiom-developer.org wrote: On

Native Clojure

2010-12-19 Thread kaveh_shahbazian
Is there a natively compiled version of Clojure? Is there any plans to do so? 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

Re: Ah-hah! Clojure is a Lisp

2010-12-19 Thread Alex Osborne
Ken Wesson kwess...@gmail.com writes: Ah. So, like the confused situations you get with Java's mutable collections. Two lists are equal if they have the same contents in the same order -- but then you use one as a key in a hashmap, and then add an item to it, and boom! Clojure separates this