Re: clojure success story ... hopefully :-)

2009-08-23 Thread Michel Salim
On Sat, 2009-08-22 at 23:58 -0700, bradford cross wrote: > > > On Sat, Aug 22, 2009 at 11:24 PM, Michel Salim > wrote: > > On Sat, 2009-08-22 at 23:00 -0700, bradford cross wrote: > > > > > Destructuring is useful all over the place, not just for >

Re: clojure success story ... hopefully :-)

2009-08-22 Thread bradford cross
On Sat, Aug 22, 2009 at 11:24 PM, Michel Salim wrote: > > On Sat, 2009-08-22 at 23:00 -0700, bradford cross wrote: > > > > > Destructuring is useful all over the place, not just for pattern > > matching. For example, it is really useful in function parameter > > vectors. > > I consider that to be

Re: clojure success story ... hopefully :-)

2009-08-22 Thread Michel Salim
On Sat, 2009-08-22 at 23:00 -0700, bradford cross wrote: > > Destructuring is useful all over the place, not just for pattern > matching. For example, it is really useful in function parameter > vectors. I consider that to be an example of pattern matching, though. -- Michel --~--~---

Re: clojure success story ... hopefully :-)

2009-08-22 Thread bradford cross
On Sat, Aug 22, 2009 at 2:08 AM, Sigrid wrote: > > Hi Meikel, hi all, > > thanks for the explanation, I think I got it now. I suppose something > in the sentence I quoted led me to think that pattern matching was > "less" in a way than destructuring, whereas in fact it seems to be the > opposite

Re: clojure success story ... hopefully :-)

2009-08-22 Thread Michel Salim
On Fri, 2009-08-21 at 22:26 -0700, James Sofra wrote: > This seems like a pretty nice pattern matching implementation for > Clojure. > http://www.brool.com/index.php/pattern-matching-in-clojure > Beautiful! Cheers, -- Michel --~--~-~--~~~---~--~~ You received

Re: clojure success story ... hopefully :-)

2009-08-22 Thread James Sofra
This seems like a pretty nice pattern matching implementation for Clojure. http://www.brool.com/index.php/pattern-matching-in-clojure Cheers, James --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To

Re: clojure success story ... hopefully :-)

2009-08-22 Thread Richard Newman
> There is a slight performance penalty over a normal function call. I > think the dispatching takes one function call, a hash lookup, and an > equality test. Strictly speaking, an isa? test. That's where the ad hoc hierarchy functionality ties in. --~--~-~--~~~--

Re: clojure success story ... hopefully :-)

2009-08-22 Thread Sigrid
Hi Meikel, hi all, thanks for the explanation, I think I got it now. I suppose something in the sentence I quoted led me to think that pattern matching was "less" in a way than destructuring, whereas in fact it seems to be the opposite - pattern matching seems to presuppose destructuring if I'm c

Re: clojure success story ... hopefully :-)

2009-08-21 Thread Stuart Sierra
On Aug 21, 5:55 pm, Michel Salim wrote: > Is there a performance hit with this style (due to using multimethods) > or will this be optimized away in practice? There is a slight performance penalty over a normal function call. I think the dispatching takes one function call, a hash lookup, and a

Re: clojure success story ... hopefully :-)

2009-08-21 Thread Michel Salim
On Fri, 2009-08-21 at 12:50 -0700, Kevin Downey wrote: > user=> (defmulti length empty?) > #'user/length > > user=> (defmethod length true [x] 0) > # > > user=> (defmethod length false [x] (+ 1 (length (rest x > # > > user=> (length [1 2 3 4]) > 4 > Très cool! This could be applied to Meike

Re: clojure success story ... hopefully :-)

2009-08-21 Thread Meikel Brandmeyer
Hi, Am 21.08.2009 um 20:02 schrieb Sigrid: Could someone point me to what the difference is? I know pattern matching e.g. from the PLT scheme implementation, and there the pattern matching also provides the binding and destructuring I think...? The difference is, that in pattern matching you

Re: clojure success story ... hopefully :-)

2009-08-21 Thread Kevin Downey
user=> (defmulti length empty?) #'user/length user=> (defmethod length true [x] 0) # user=> (defmethod length false [x] (+ 1 (length (rest x # user=> (length [1 2 3 4]) 4 On Fri, Aug 21, 2009 at 12:41 PM, Michel Salim wrote: > > On Fri, 2009-08-21 at 11:02 -0700, Sigrid wrote: >> Hi, >> >

Re: clojure success story ... hopefully :-)

2009-08-21 Thread Michel Salim
On Fri, 2009-08-21 at 11:02 -0700, Sigrid wrote: > Hi, > > I read the related story on InfoQ and found it an extremely > interesting and motivating read, Clojure being applied in such an > interesting field as machine learning! > > There is something in the article I'd like to understand better,

Re: clojure success story ... hopefully :-)

2009-08-21 Thread Sigrid
Hi, I read the related story on InfoQ and found it an extremely interesting and motivating read, Clojure being applied in such an interesting field as machine learning! There is something in the article I'd like to understand better, so i'm just asking here on the group: "The way that Rich elec

Re: clojure success story ... hopefully :-)

2009-08-21 Thread Jan Rychter
bradford cross writes: > Hi Chad, yep, that was me. We do hope to open source some stuff soon. > > First will probably be our wrappers for cascading/hadoop and s3. Those would be of great interest to many of us. Please do. --J. --~--~-~--~~~---~--~~ You receive

Re: clojure success story ... hopefully :-)

2009-08-19 Thread Rich Hickey
On Fri, Aug 14, 2009 at 3:10 PM, bradford cross wrote: > We have just released flightcaster.com which uses statistical inference and > machine learning to predict flight delays in advance of airlines (initial > results appear to do so with 85 - 90 % accuracy.) > > The webserver and webapp are all

Re: clojure success story ... hopefully :-)

2009-08-16 Thread Chas Emerick
On Aug 14, 2009, at 3:10 PM, bradford cross wrote: > We have just released flightcaster.com which uses statistical > inference and machine learning to predict flight delays in advance > of airlines (initial results appear to do so with 85 - 90 % accuracy.) > > The webserver and webapp are all

Re: clojure success story ... hopefully :-)

2009-08-15 Thread John Harrop
On Fri, Aug 14, 2009 at 7:18 PM, bradford cross wrote: > Hi Chad, yep, that was me. We do hope to open source some stuff soon. > > First will probably be our wrappers for cascading/hadoop and s3. > > Next might be some core language extensions which might be good in contrib > or some other lib. >

Re: clojure success story ... hopefully :-)

2009-08-14 Thread bradford cross
Hi Chad, yep, that was me. We do hope to open source some stuff soon. First will probably be our wrappers for cascading/hadoop and s3. Next might be some core language extensions which might be good in contrib or some other lib. If we release any basic stats or machine learning stuff we may try

Re: clojure success story ... hopefully :-)

2009-08-14 Thread Chad Harrington
Bradford, I just bought the iPhone app. Looks very cool. I saw a presentation at the JavaOne after-meeting with Rich Hickey about flightcaster. Were you the presenter? The machine learning notation seemed to work very well in Clojure. Are there any portions of this cool stuff that you can shar

Re: clojure success story ... hopefully :-)

2009-08-14 Thread bradford cross
whoa...missed the google spellcheckers' warning on: paralleizm ... although that may be the proper lolkidde spelling :-) On Fri, Aug 14, 2009 at 12:10 PM, bradford cross wrote: > We have just released flightcaster.com which uses statistical inference > and machine learning to predict flight dela

clojure success story ... hopefully :-)

2009-08-14 Thread bradford cross
We have just released flightcaster.com which uses statistical inference and machine learning to predict flight delays in advance of airlines (initial results appear to do so with 85 - 90 % accuracy.) The webserver and webapp are all rails running on the Heroku platform; which also serves our black