Re: Video & Slides on Pattern Matching and Predicate Dispatch in Clojure

2011-08-23 Thread Brent Millare
In the ClojureScript case, you can do lazy compile time compilation instead, where the predicate call is really a macro that always expands into a predicate call but during compile time can check if the tree needs to be updated. This isn't as lazy as the runtime version but at least groups of exten

Re: Video & Slides on Pattern Matching and Predicate Dispatch in Clojure

2011-08-22 Thread David Nolen
On Mon, Aug 22, 2011 at 3:07 PM, Brent Millare wrote: > > For pattern matching code size is a one time cost. For predicate > dispatch, > > that's a lot of code to generated, since every new predicate case will > > produce an entirely new tree. But perhaps people won't care that much. > Only > > ti

Re: Video & Slides on Pattern Matching and Predicate Dispatch in Clojure

2011-08-22 Thread Brent Millare
Actually to simply further, instead of wrapping the old DAG tree, it simply replaces the DAG tree with the compilation step. The compilation step then makes the new DAG tree and calls it. On Aug 22, 3:07 pm, Brent Millare wrote: > > For pattern matching code size is a one time cost. For predicate

Re: Video & Slides on Pattern Matching and Predicate Dispatch in Clojure

2011-08-22 Thread Brent Millare
> For pattern matching code size is a one time cost. For predicate dispatch, > that's a lot of code to generated, since every new predicate case will > produce an entirely new tree. But perhaps people won't care that much. Only > time and experience reports will tell. If you want, you can be lazy

Re: Video & Slides on Pattern Matching and Predicate Dispatch in Clojure

2011-08-22 Thread Brent Millare
The alternative to using eval and large code generation that I've seen is to use the compiled tree of closures approach used by CL-PPCRE. If the JVM is smart enough, it may do the inlining for you on the hot code. http://en.wikibooks.org/wiki/Common_Lisp/External_libraries/CL-PPCRE#Regular_Express

Re: Video & Slides on Pattern Matching and Predicate Dispatch in Clojure

2011-08-21 Thread David Nolen
On Sun, Aug 21, 2011 at 11:27 PM, Brent Millare wrote: > I have a question about the presentation. > > You mention that you can't achieve the same dispatching performance in > the open case compared to the closed space. > I meant to say that the problem is hard. No completely unsolvable. > In m

Re: Video & Slides on Pattern Matching and Predicate Dispatch in Clojure

2011-08-21 Thread Brent Millare
I have a question about the presentation. You mention that you can't achieve the same dispatching performance in the open case compared to the closed space. Lets ignore the namespace issue (maybe by restricting ourselves to only one namespace). Also lets assume the predicate ordering is solved.

Re: Video & Slides on Pattern Matching and Predicate Dispatch in Clojure

2011-08-20 Thread Timothy Washington
Excellent talk David. This is hitting a programming sweet spot that I've wanted for a while. I haven't tried prolog, standard ml, haskell, etc. But jquery was the first tool that clued me into a kind of pattern matching and predicate dispatch: $( ".classA .classB#containingId" ).doSomething(); $

Re: Video & Slides on Pattern Matching and Predicate Dispatch in Clojure

2011-08-19 Thread David Nolen
On Fri, Aug 19, 2011 at 3:57 AM, Ken Wesson wrote: > On Thu, Aug 18, 2011 at 11:00 PM, Meikel Brandmeyer wrote: > > Eh, what exactly does slideshare provide over a PDF put on some server > somewhere? > > Apparently, the ability to annoy the hell out of whoever you try to > share it with. You c

Re: Video & Slides on Pattern Matching and Predicate Dispatch in Clojure

2011-08-19 Thread Sam Aaron
Awesome talk - thanks! I particularly enjoyed the sign behind you that says "Don't Panic!" - it helped keep me calm during the hairily complex parts :-) I really look forward to seeing where you go with this stuff… Sam --- http://sam.aaron.name On 18 Aug 2011, at 21:10, David Nolen wrote: >

Re: Video & Slides on Pattern Matching and Predicate Dispatch in Clojure

2011-08-19 Thread Ken Wesson
On Thu, Aug 18, 2011 at 11:00 PM, Meikel Brandmeyer wrote: > Eh, what exactly does slideshare provide over a PDF put on some server > somewhere? Apparently, the ability to annoy the hell out of whoever you try to share it with. -- Protege: What is this seething mass of parentheses?! Master: Yo

Re: Video & Slides on Pattern Matching and Predicate Dispatch in Clojure

2011-08-18 Thread Meikel Brandmeyer
Hi, Am 18.08.2011 um 22:27 schrieb Laurent PETIT: > 2011/8/18 David Nolen > SlideShare link, http://www.slideshare.net/DavidNolen/patterns-8907600 > > Arrrgh, and now slideshare wants me to authenticate via FB or a slideshare > account if I want to download the slides, again. > > Ok, I've alr

Re: Video & Slides on Pattern Matching and Predicate Dispatch in Clojure

2011-08-18 Thread Laurent PETIT
2011/8/18 David Nolen > SlideShare link, http://www.slideshare.net/DavidNolen/patterns-8907600 Arrrgh, and now slideshare wants me to authenticate via FB or a slideshare account if I want to download the slides, again. Ok, I've already got a slideshare account, so I'll try to remember the pass

Re: Video & Slides on Pattern Matching and Predicate Dispatch in Clojure

2011-08-18 Thread Laurent PETIT
2011/8/18 Baishampayan Ghose > > I don't have a Facebook account (and don't want to create one), neither > have > > or want to create a scribd account. Could it be possible to have the > slides > > available for download without having to authenticate (e.g. slideshare) ? > > Slides are on Scribd

Re: Video & Slides on Pattern Matching and Predicate Dispatch in Clojure

2011-08-18 Thread Laurent PETIT
Thanks David, I can't wait reading them ! Cheers, -- Laurent 2011/8/18 David Nolen > SlideShare link, http://www.slideshare.net/DavidNolen/patterns-8907600 > > David > > > On Thu, Aug 18, 2011 at 2:57 PM, Laurent PETIT wrote: > >> Hello, >> >> I don't have a Facebook account (and don't want t

Re: Video & Slides on Pattern Matching and Predicate Dispatch in Clojure

2011-08-18 Thread David Nolen
SlideShare link, http://www.slideshare.net/DavidNolen/patterns-8907600 David On Thu, Aug 18, 2011 at 2:57 PM, Laurent PETIT wrote: > Hello, > > I don't have a Facebook account (and don't want to create one), neither > have or want to create a scribd account. Could it be possible to have the > sl

Re: Video & Slides on Pattern Matching and Predicate Dispatch in Clojure

2011-08-18 Thread Baishampayan Ghose
> I don't have a Facebook account (and don't want to create one), neither have > or want to create a scribd account. Could it be possible to have the slides > available for download without having to authenticate (e.g. slideshare) ? Slides are on Scribd as well - http://www.scribd.com/doc/62571669

Re: Video & Slides on Pattern Matching and Predicate Dispatch in Clojure

2011-08-18 Thread Laurent PETIT
Hello, I don't have a Facebook account (and don't want to create one), neither have or want to create a scribd account. Could it be possible to have the slides available for download without having to authenticate (e.g. slideshare) ? 2011/8/18 David Nolen > In case you didn't see this elsewhere