Re: Ah-hah! Clojure is a Lisp

2010-12-19 Thread Alex Osborne
Ken Wesson 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 stuff out becau

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 Laurent PETIT
2010/12/20 Tim Daly > > > On 12/19/2010 10:53 PM, Ken Wesson wrote: > >> On Sun, Dec 19, 2010 at 10:33 PM, Tim Daly >> wrote: >> >>> On 12/19/2010 10:21 PM, Ken Wesson wrote: >>> On Sun, Dec 19, 2010 at 9:42 PM, Tim Daly wrote: > On 12/19/2010 9:24 PM, Ken Wesson wrote: >

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 Daly wrote: On 12/19/2010 10:21 PM, Ken Wesson wrote: On Sun, Dec 19, 2010 at 9:42 PM, Tim Daly wrote: On 12/19/2010 9:24 PM, Ken Wesson wrote: On Sun, Dec 19, 2010 at 8:25 PM, Tim Daly wrote: On 12/19/201

Re: Ah-hah! Clojure is a Lisp

2010-12-19 Thread Mike Meyer
On Sun, 19 Dec 2010 21:24:42 -0500 Ken Wesson wrote: > On Sun, Dec 19, 2010 at 8:25 PM, Tim Daly wrote: > > > > > > On 12/19/2010 8:20 PM, Ken Wesson wrote: > >> > >> On Sun, Dec 19, 2010 at 8:18 PM, Tim Daly > >>  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 10:33 PM, Tim Daly wrote: > On 12/19/2010 10:21 PM, Ken Wesson wrote: >> >> On Sun, Dec 19, 2010 at 9:42 PM, Tim Daly >>  wrote: >>> >>> On 12/19/2010 9:24 PM, Ken Wesson wrote: On Sun, Dec 19, 2010 at 8:25 PM, Tim Daly  wrote: > > On 12/19/2010 8:20

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 Daly wrote: On 12/19/2010 9:24 PM, Ken Wesson wrote: On Sun, Dec 19, 2010 at 8:25 PM, Tim Daly wrote: On 12/19/2010 8:20 PM, Ken Wesson wrote: On Sun, Dec 19, 2010 at 8:18 PM, Tim Daly wrote: I didn't me

Re: Ah-hah! Clojure is a Lisp

2010-12-19 Thread Ken Wesson
On Sun, Dec 19, 2010 at 9:42 PM, Tim Daly wrote: > > > On 12/19/2010 9:24 PM, Ken Wesson wrote: >> >> On Sun, Dec 19, 2010 at 8:25 PM, Tim Daly >>  wrote: >>> >>> On 12/19/2010 8:20 PM, Ken Wesson wrote: On Sun, Dec 19, 2010 at 8:18 PM, Tim Daly  wrote: > >  I didn't mean to

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 Daly wrote: On 12/19/2010 8:20 PM, Ken Wesson wrote: On Sun, Dec 19, 2010 at 8:18 PM, Tim Daly wrote: I didn't mean to imply that other people don't have the "ah-hah!" experience with other languages. However

Re: Ah-hah! Clojure is a Lisp

2010-12-19 Thread Sean Corfield
On Sun, Dec 19, 2010 at 6:24 PM, Ken Wesson 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 multi-megabyte install o

Re: Ah-hah! Clojure is a Lisp

2010-12-19 Thread Ken Wesson
On Sun, Dec 19, 2010 at 8:25 PM, Tim Daly wrote: > > > On 12/19/2010 8:20 PM, Ken Wesson wrote: >> >> On Sun, Dec 19, 2010 at 8:18 PM, Tim Daly >>  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 >>

Re: Ah-hah! Clojure is a Lisp

2010-12-19 Thread Tim Daly
On 12/19/2010 8:33 PM, Eric Schulte wrote: Tim Daly 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. Sou

Re: Ah-hah! Clojure is a Lisp

2010-12-19 Thread Eric Schulte
Tim Daly 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, could you share a po

Re: Ah-hah! Clojure is a Lisp

2010-12-19 Thread Tim Daly
On 12/19/2010 8:20 PM, Ken Wesson wrote: On Sun, Dec 19, 2010 at 8:18 PM, Tim Daly 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 migh

Re: Ah-hah! Clojure is a Lisp

2010-12-19 Thread Ken Wesson
On Sun, Dec 19, 2010 at 8:18 PM, Tim Daly 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 gave his "Whitehe

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 th

Re: Free Compojure Hosting? (or mostly free)

2010-12-19 Thread Constantine Vetoshev
On Dec 18, 8:51 pm, javajosh wrote: > A little googling revealed that Google App Engine will work: App Engine very much works. Please use https://github.com/gcv/appengine-magic (and help me test the v0.4.0 branch, which adds support for the latest App Engine SDK). It's unfortunate that search res

Re: Ah-hah! Clojure is a Lisp

2010-12-19 Thread Tim Daly
On 12/19/2010 7:31 PM, Vagif Verdi 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. I agree that you can't BE a lisp without homoiconicity. H

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 writ

Re: Ah-hah! Clojure is a Lisp

2010-12-19 Thread Ken Wesson
On Sun, Dec 19, 2010 at 7:31 PM, Vagif Verdi 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. C source code i

Re: Ah-hah! Clojure is a Lisp

2010-12-19 Thread Raoul Duke
On Sun, Dec 19, 2010 at 4:31 PM, Vagif Verdi wrote: > Haskell has aha moments too. And it is not lisp. er, yeah, 2nd'd. totally. i mean, same for plenty of programming languages. and certainly not the same thing for everybody. ah-hahs are subjective. if i "get" lisp but never had an ah hah becaus

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 wrote: >   There have been discussions, here and elsewhere, about > whet

Re: command line options parser

2010-12-19 Thread gaz jones
so i updated this to work with nested arguments which is what i really wanted to use it for in the first place. i almost always end up creating a map of config settings and this makes it easy for me to override things from the CL. regarding the getopt stuff, i kind of agree but dont particularly l

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 wrote: > Can you articulate it any better than "ah hah!"? > > On Dec 19, 11:33 am, Tim Daly wrote: >>   There have been discussions, here and elsewhere, about >> whether Clojure is a "Lisp". Lots of discussion centers >> around facts like

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 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 redefinition of lisp

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 Sean Corfield
On Sun, Dec 19, 2010 at 11:33 AM, Tim Daly 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 - particularly tho

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

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

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 becau

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 multime

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 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 that's a good fo

Re: currying in clojure for fixed number of arg functions

2010-12-19 Thread Robert McIntyre
What do people think about extending the definition of partial in core to work on just a single argument? That is, if you call partial with just a function and no arguments, it just returns the function. It seems to follow logically from the other airties. For a case where this is useful, see ht

"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.co

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 cas

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 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 resolved dispatch and

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 wrote: > Hi, > > Am 19.12.2010 um 08:30 schrieb Sunil S Nandihalli: > > > He

Re: Dispatch on return type?

2010-12-19 Thread nicolas.o...@gmail.com
On Sun, Dec 19, 2010 at 11:24 AM, Meikel Brandmeyer 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 informat

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 c

Re: Dispatch on return type?

2010-12-19 Thread nicolas.o...@gmail.com
On Sun, Dec 19, 2010 at 5:21 AM, Tim Daly 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 adjust > the multimet

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 - http://groups.google.com/group/clojure/browse_thread/thread/b1548aa40ba8072/210ec81bfe26032e?lnk=gst&q=promise#210ec81bf

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 08:30 schrieb Sunil S Nandihalli: > Hello everybody, > It would be nice if calling recur inside a defmethod redispatched on the new > arguments.. I have shown a simple use-case in the following gist. > https://gist.github.com/747171 > > It might be naive .. but I feel IMHO