Re: http.async.client v0.2.2 released

2011-02-08 Thread Takahiro Hozumi
Hi, Thank you for the introduction. Here is my little feed back: 1. I want to see a example using callbacks. 2. Is RequestBuilderWrapper.java necessary? Why not simply use RequestBuilder? 3. I prefer reify or defrecord to proxy for performance reason, when implement interface. 4. I think hash-map i

Re: Help with a ClassCastException

2011-02-08 Thread John Svazic
That was it, thanks! On Feb 8, 5:01 pm, Alex Osborne wrote: > John Svazic writes: > > Snipping to the relevant portion of the exception (always look at the > last "Caused by"): > > > Caused by: java.lang.ClassCastException: clojure.lang.Cons cannot be > > cast to clojure.lang.Associative > >    

Re: searching for a good name thread-let, thread-with, thread-thru

2011-02-08 Thread Ken Wesson
On Sat, Feb 5, 2011 at 10:36 AM, Jason wrote: > How about > >  (%-> >     starting-value >     (foo 3 %) >     (bar % arg2 arg3)) > > This combines the standard shorthand argument form from the inline > function with the threading. I also like be because the '%' stands > out. And this also presum

Re: searching for a good name thread-let, thread-with, thread-thru

2011-02-08 Thread Mark Fredrickson
I wanted to see how long this thread would go before someone linked to the old stuff. :-) Despite turning up repeatedly, the issue has never been put to bed. I suspect it is the name. There has been no consensus, as this thread demonstrates. I vote for one I haven't seen yet. `=>`. It's two charac

Re: Help with a ClassCastException

2011-02-08 Thread Alex Osborne
John Svazic writes: Snipping to the relevant portion of the exception (always look at the last "Caused by"): > Caused by: java.lang.ClassCastException: clojure.lang.Cons cannot be > cast to clojure.lang.Associative > at clojure.lang.RT.assoc(RT.java:664) > at net.auxesia.chromoso

Help with a ClassCastException

2011-02-08 Thread John Svazic
So I've put together a small genetic algorithm simulation that I've written in Java which I have recently ported to Clojure. While the code looks sound from my perspective, yet I get the following exception when I run my uberjar: Exception in thread "main" java.lang.RuntimeException: java.lang.Cl

Re: searching for a good name thread-let, thread-with, thread-thru

2011-02-08 Thread Meikel Brandmeyer
Hi, Am 08.02.2011 um 22:11 schrieb B Smith-Mannschott: > Ah. Indeed. And Mark Fredrickson's "let->" is equivalent to my > thread-with macro. I even considered the name let->. I guess there's > no wheel that can't be reinvented. ;-) Yeah. Once per year or so. ;) Sincerely Meikel -- You receive

Re: Importing defprotocol and deftype

2011-02-08 Thread Stuart Sierra
`defprotocol` creates a real Var, which you can `use` or `refer` just like a function. `deftype` and `defrecord` both create classes, which you must `import` using the class name. Class names have to be compatible with Java, so dashes are converted to underscores. -Stuart Sierra clojure.com

Re: Which branch of clojure-hadoop to use?

2011-02-08 Thread Stuart Sierra
Glad to see there's still interest in this. Sorry I don't have time to maintain clojure-hadoop (I haven't used Hadoop at all in the past year, so I'd be a poor choice) but I will help where I can. If somebody wants to take on maintenance I'll link to it from my github repository. -Stuart Sier

Re: Using maven with clojure-contrib 1.3

2011-02-08 Thread Stuart Sierra
Can you give example steps to reproduce this problem? 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 - p

Re: searching for a good name thread-let, thread-with, thread-thru

2011-02-08 Thread B Smith-Mannschott
On Tue, Feb 8, 2011 at 22:05, Meikel Brandmeyer wrote: > Ah. A classic: > http://groups.google.com/group/clojure/browse_thread/thread/66ff0b89229be894/c3d4a6dae45d4852 > > Some more names in this old thread. > > Sincerely > Meikel Ah. Indeed. And Mark Fredrickson's "let->" is equivalent to my th

Re: searching for a good name thread-let, thread-with, thread-thru

2011-02-08 Thread B Smith-Mannschott
On Sat, Feb 5, 2011 at 16:36, Jason wrote: > How about > >  (%-> >     starting-value >     (foo 3 %) >     (bar % arg2 arg3)) > > This combines the standard shorthand argument form from the inline > function with the threading. I also like be because the '%' stands > out. This, or something very

Re: searching for a good name thread-let, thread-with, thread-thru

2011-02-08 Thread Meikel Brandmeyer
Ah. A classic: http://groups.google.com/group/clojure/browse_thread/thread/66ff0b89229be894/c3d4a6dae45d4852 Some more names in this old thread. Sincerely Meikel -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to c

Re: Any news on pull requests?

2011-02-08 Thread John Chandler
On 05/02/2011 18:23, Mike Meyer wrote: On Sat, 5 Feb 2011 00:09:41 -0500 Christopher Petrilli wrote: For example, the following projects REQUIRE contributor agreements, in writing, signed and either scanned or on paper, prior to accepting any patches or commits: - Free Software Foundation - Ap

Clojure job posting

2011-02-08 Thread Devika Nekkanti
Hi All! There's a Clojure job available with one of the fastest growing service companies in India. You will have to coordinate and work with one of our European clients. This is a full time job requiring some minimum level of expertise in Clojure (and other technologies). Job highlights: * Ser

Re: searching for a good name thread-let, thread-with, thread-thru

2011-02-08 Thread Jason
How about (%-> starting-value (foo 3 %) (bar % arg2 arg3)) This combines the standard shorthand argument form from the inline function with the threading. I also like be because the '%' stands out. On Feb 4, 3:05 pm, B Smith-Mannschott wrote: > Clojure's threading macros -> a

Re: ANN: Textmash - another IDE for Clojure

2011-02-08 Thread Albert Cardona
2011/1/23 Olek : > Pros: > 1. Yes, it uses Swing. I have even stared writting it in Clojure, but > startup time was too long, not acceptable for lightweight text editor. > 2. Yes, it is. I've carefully studied Mac's TextEdit, NetBeans and > Eclipse and merged theirs ideas. > > Cons: > 1. Yeah, I ha

Re: better error messages > smaller stack traces

2011-02-08 Thread Brian Goslinga
I have been working on a fork of Clojure to explore what can be done w.r.t. error messages: https://github.com/qbg/clojure Currently it fixes a misleading error message generated by (int [5]), it aligns the IndexOutOfBoundsExceptions with those thrown by the collections classes, and it explores the

Re: better error messages > smaller stack traces

2011-02-08 Thread Stuart Halloway
>> Please let us know when you get a misleading error message from a >> macroexpansion, so we can make it better. Or contribute a patch along the >> lines of [2]. >> > > What medium is best? Discussion here on the mailing list is fine, or a JIRA ticket [1]. We follow both. Thanks! Stu [1] h

Re: better error messages > smaller stack traces

2011-02-08 Thread Brian Marick
On Feb 8, 2011, at 8:01 AM, Stuart Halloway wrote: > > Please let us know when you get a misleading error message from a > macroexpansion, so we can make it better. Or contribute a patch along the > lines of [2]. > What medium is best? - Brian Marick, Artisanal Labrador Contract program

Re: Lazy seq from input

2011-02-08 Thread David Andrews
See also Jeff Palmucci's clj-yield. -- 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

Re: ANN: Textmash - another IDE for Clojure

2011-02-08 Thread Laurent PETIT
2011/2/8 Shantanu Kumar > +1 > Checked the code on GitHub. It's pretty exciting to note that TextMash > is being developed entirely in Clojure. > There was once another attempt at bringing a full clojure text editor, it supported plugins, its author had written a long email explaining how he ha

Re: ANN: Textmash - another IDE for Clojure

2011-02-08 Thread Shantanu Kumar
+1 Checked the code on GitHub. It's pretty exciting to note that TextMash is being developed entirely in Clojure. Regards, Shantanu On Feb 8, 3:45 am, Olek wrote: > Hi, > > Yes, I would like to replace Java version with Clojure. For the > shorter startup time, I will try to do some threading (fo

Re: better error messages > smaller stack traces

2011-02-08 Thread daly
On Tue, 2011-02-08 at 09:01 -0500, Stuart Halloway wrote: > This conversation began on Twitter [1] but I want to continue it on > the mailing list as it may be of broader interest. > > > The core team is very interested in improving error messages, and > relatively less interested in more code to

Re: better error messages > smaller stack traces

2011-02-08 Thread Alex Ott
Hello Stuart One of problem, that sometime arise (at least for me) - errors in code that is performed lazily - stack trace contains data about point where it's evaluated, not where it's created: for example, let look to something like: I have a function that combines several functions (defn make

Re: Records implementing IFn

2011-02-08 Thread Mark Fredrickson
Thank you. That seems to do the trick. -Mark On Feb 7, 11:55 pm, Alex Osborne wrote: > Mark Fredrickson writes: > > Is the following behavior correct or a bug: > > > user> (defrecord Example [data] clojure.lang.IFn (invoke [this] this) > > (invoke [this n] (repeat n this))) > > user.Example >

better error messages > smaller stack traces

2011-02-08 Thread Stuart Halloway
This conversation began on Twitter [1] but I want to continue it on the mailing list as it may be of broader interest. The core team is very interested in improving error messages, and relatively less interested in more code to manipulate stack traces, for the following reasons: (1) The langua