Re: Clojure at JavaOne

2009-05-22 Thread Christophe Grand
Rich Hickey a écrit : > Actually, let me extend that invitation - if anyone's got a small > (one-page-ish) Clojure program that does something interesting, and > are willing to have it demonstrated at JavaOne, please paste it > somewhere and post a note here. > I'm dabbling with a quick and d

Re: Clojure at JavaOne

2009-05-22 Thread Brian Doyle
I have a one pagish program that you pass in your screen resolution and it randomly picks out a new desktop image from ftp.gnome.org, downloads the image and updates your desktop. This assumes your using Gnome. http://github.com/heyZeus/clojure-stuff/blob/0c81123fcb3dc4bafa0df94b6e32dc49729595d3/

Re: Clojure at JavaOne

2009-05-22 Thread Mark Derricutt
I did something similar the other week: http://www.talios.com/connecting_the_clouds__the_internet_in_new_zealand_in_pdf.htm Using clj_web_crawler and XHtmlRenderer to make a PDF of a locally available book (in wiki format) on the history of the New Zealand Internet. On Fri, May 22, 2009 at 11:16

Re: Clojure at JavaOne

2009-05-22 Thread Rich Hickey
On May 22, 7:16 am, Rich Hickey wrote: > On May 21, 11:38 pm, Adrian Cuthbertson > wrote: > > > >... impact part can be merged with the "business application" mindset by > > >generating a report that includes the data visualization (I think PDF > > >generation is built into processing). > > >

Re: Clojure at JavaOne

2009-05-22 Thread Rich Hickey
On May 21, 11:38 pm, Adrian Cuthbertson wrote: > >... impact part can be merged with the "business application" mindset by > >generating a report that includes the data visualization (I think PDF > >generation is built into processing). > > I've been doing some work with enlive and XHtmlRendere

Re: Clojure at JavaOne

2009-05-22 Thread David Powell
On Thu 21/05/09 17:43 , "Rich Hickey" richhic...@gmail.com sent: > > I'd like to do something modest but distinguishing. I have a vague > notion of showing some Clojure data originating in some XML off the > web, being passed to some filtering/walking code, getting displayed, > stored in a DB,

Re: Clojure at JavaOne

2009-05-21 Thread Adrian Cuthbertson
>... impact part can be merged with the "business application" mindset by >generating a report that includes the data visualization (I think PDF >generation is built into processing). I've been doing some work with enlive and XHtmlRenderer - it's a pretty awesome way of generating (business, medi

Re: Clojure at JavaOne

2009-05-21 Thread e
Quite an old example which I think demonstrates this well: > http://clojure.googlegroups.com/web/2c-calculator.clj > > the fourth line can be combined with the third line for even more conciseness, no? --~--~-~--~~~---~--~~ You received this message because you are

Re: Clojure at JavaOne

2009-05-21 Thread e
> > Show how you can run a demo with a bug in it, trigger the bug, to > cause a break, fix the bug while in the break, and resume the demo > with the corrected code. > > You can do that? What do "Fix the bug while in the break" mean? I know you could do that in Common Lisp. I'd love to know how

Re: Clojure at JavaOne

2009-05-21 Thread John Newman
Speaking of "walking/filtering code," what about walking _actual_ code? The only thing off the top of my mind would be an example of, say, a "Hello World" function, but with the code represented as a JTree. Say, in the function (pr (.toLowerCase "Hello World")), you'd see .toLowerCase as a node.

Re: Clojure at JavaOne

2009-05-21 Thread mikel
On May 21, 6:42 am, Rich Hickey wrote: > On May 21, 3:39 am, mikel wrote: > > > > > > > On May 18, 7:36 am, Rich Hickey wrote: > > > > I'll be doing two sessions involving Clojure at JavaOne this June. One > > > is a traditional ta

Re: Clojure at JavaOne

2009-05-21 Thread Ian Phillips
> I'd like to do something modest but distinguishing. I have a vague > notion of showing some Clojure data originating in some XML off the > web, being passed to some filtering/walking code, getting displayed, > stored in a DB, all without specific DOM/model/recordset APIs, a > couple of lines for

Re: Clojure at JavaOne

2009-05-21 Thread Timothy Pratley
mming > constructs. > > 2009/5/18 Rich Hickey : > > > > > I'll be doing two sessions involving Clojure at JavaOne this June. One > > is a traditional talk (TS-4164), the other is as a participant in the > > Script Bowl 2009: A Scripting Languages Shootout (PAN-534

Re: Clojure at JavaOne

2009-05-21 Thread NarayanS
of the power of higher order > > > functions or macros (the first with higher order functions *can* be > > > done in java, but it is such a pain in the ass to do this right with > > > anonymous functions that it is rarely done in practice, some spring > > > framework fram

Re: Clojure at JavaOne

2009-05-21 Thread Rich Hickey
On May 21, 10:38 am, Chas Emerick wrote: > I'm guessing glitz and visual impact is what's going to wow the crowd, > especially in that environment, where it's likely that most people are > steeped in "business applications". > > Perhaps using one of the clojure-processing wrappers to do some >

Re: Clojure at JavaOne

2009-05-21 Thread Sean Devlin
t; > > I'll be doing two sessions involving Clojure at JavaOne this June. One > > > is a traditional talk (TS-4164), the other is as a participant in the > > > Script Bowl 2009: A Scripting Languages Shootout (PAN-5348). > > > > The 'script' bowl i

Re: Clojure at JavaOne

2009-05-21 Thread Chas Emerick
I'm guessing glitz and visual impact is what's going to wow the crowd, especially in that environment, where it's likely that most people are steeped in "business applications". Perhaps using one of the clojure-processing wrappers to do some outrageously-slick data visualization, and then s

Re: Clojure at JavaOne

2009-05-21 Thread Rich Hickey
On May 21, 3:39 am, mikel wrote: > On May 18, 7:36 am, Rich Hickey wrote: > > > > > I'll be doing two sessions involving Clojure at JavaOne this June. One > > is a traditional talk (TS-4164), the other is as a participant in the > > Script Bowl 2009: A Scr

Re: Clojure at JavaOne

2009-05-21 Thread mikel
On May 18, 7:36 am, Rich Hickey wrote: > I'll be doing two sessions involving Clojure at JavaOne this June. One > is a traditional talk (TS-4164), the other is as a participant in the > Script Bowl 2009: A Scripting Languages Shootout (PAN-5348). > > The 'script'

Re: Clojure at JavaOne

2009-05-19 Thread e
order > > > > functions or macros (the first with higher order functions *can* be > > > > done in java, but it is such a pain in the ass to do this right with > > > > anonymous functions that it is rarely done in practice, some spring > > > > fra

Re: Clojure at JavaOne

2009-05-19 Thread tmountain
Macros are incredibly powerful, but again, I fear that with the limited time, quite a few in the audience might underestimate what they can provide. One quick question: is anybody going to get this on video? I'd really like to see how it turns out. Travis On May 18, 8:36 am, Rich Hickey w

Re: Clojure at JavaOne

2009-05-19 Thread Shantanu Kumar
On May 18, 7:37 pm, verec wrote: > Whatever you chose, you probably ought to show its source with an IDE > (whichever you chose: NetBeans. Eclipse, IntelliJ) but should probably > forget about emacs: many (most?) Java developers won't even consider > anything that isn't at least partially integ

Re: Clojure at JavaOne

2009-05-19 Thread Michael Harrison (goodmike)
higher order > > > functions or macros (the first with higher order functions *can* be > > > done in java, but it is such a pain in the ass to do this right with > > > anonymous functions that it is rarely done in practice, some spring > > > framework frameworks

Re: Clojure at JavaOne

2009-05-19 Thread Konrad Hinsen
On 18.05.2009, at 14:36, Rich Hickey wrote: > I'd appreciate some suggestions *and help* preparing demos for the > Script Bowl. What (that could be demonstrated in 4 minutes) would make > you think - 'Clojure looks cool, I need to look into it'? What > community contribution(s) should we showcase

Re: Clojure at JavaOne

2009-05-18 Thread AlamedaMike
+1 for showing the Ant demo and modifying it while it's running. Emphasize how easy it is to get RELIABLE concurrency using agents/STM. As Steve Jobs has long known, eye candy counts, and Ants is an eye candy way of seeing concurrency in action. I would also keep a second REPL open and "test" out

Re: Clojure at JavaOne

2009-05-18 Thread e
i think destructuring is awesome, and loop-recur loop-recur is so handy in not having to have the public version of a function (entry point) versus the recursive inner version that often has extra parameters that the user shouldn't have to worry about. other ideas: closures as light-weight obj

Re: Clojure at JavaOne

2009-05-18 Thread Mark Volkmann
On Mon, May 18, 2009 at 2:36 PM, Michael Wood wrote: > > On Mon, May 18, 2009 at 8:54 PM, Mark Volkmann > wrote: >> >> I think time is the issue here. The Ant code may be too involved to >> describe in the time allotted. I do think it's important though to >> describe the use of Refs and STM. To

Re: Clojure at JavaOne

2009-05-18 Thread Mark Engelberg
For me, persistent vectors was the killer feature that drew me to Clojure. Don't know how to convey the value of that in 4 minutes, though. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to

Re: Clojure at JavaOne

2009-05-18 Thread Michael Wood
On Mon, May 18, 2009 at 8:54 PM, Mark Volkmann wrote: > > I think time is the issue here. The Ant code may be too involved to > describe in the time allotted. I do think it's important though to > describe the use of Refs and STM. To me they are a very important > feature of Clojure. They may be

Re: Clojure at JavaOne

2009-05-18 Thread Mark Volkmann
; > > Did I mention that as a biologist, I like ants? :). > > On May 18, 5:14 pm, Dan Larkin wrote: >> On May 18, 2009, at 9:23 AM, Laurent PETIT wrote: >> >> >> >> >> >> > 2009/5/18 Mark Volkmann : >> >> >> On Mon, M

Re: Clojure at JavaOne

2009-05-18 Thread bOR_
Larkin wrote: > On May 18, 2009, at 9:23 AM, Laurent PETIT wrote: > > > > > > > 2009/5/18 Mark Volkmann : > > >> On Mon, May 18, 2009 at 7:36 AM, Rich Hickey   > >> wrote: > > >>> I'll be doing two sessions involving Clojure at JavaOne

Re: Clojure at JavaOne

2009-05-18 Thread bOR_
Larkin wrote: > On May 18, 2009, at 9:23 AM, Laurent PETIT wrote: > > > > > > > 2009/5/18 Mark Volkmann : > > >> On Mon, May 18, 2009 at 7:36 AM, Rich Hickey   > >> wrote: > > >>> I'll be doing two sessions involving Clojure at JavaOne

Re: Clojure at JavaOne

2009-05-18 Thread bOR_
ent PETIT wrote: > > > > > > > 2009/5/18 Mark Volkmann : > > >> On Mon, May 18, 2009 at 7:36 AM, Rich Hickey   > >> wrote: > > >>> I'll be doing two sessions involving Clojure at JavaOne this June.   > >>> One > &

Re: Clojure at JavaOne

2009-05-18 Thread Dan Larkin
On May 18, 2009, at 9:23 AM, Laurent PETIT wrote: > > 2009/5/18 Mark Volkmann : >> >> On Mon, May 18, 2009 at 7:36 AM, Rich Hickey >> wrote: >>> >>> I'll be doing two sessions involving Clojure at JavaOne this June. >>> One >>&g

Re: Clojure at JavaOne

2009-05-18 Thread Ilya Sergey
> > > anonymous functions that it is rarely done in practice, some spring > > > framework frameworks let apart) > > > > > specific to clojure: > > > a demonstration of the ease of use of concurrent/parallel programming > > > constructs. > > >

Re: Clojure at JavaOne

2009-05-18 Thread falcon
> > framework frameworks let apart) > > > specific to clojure: > > a demonstration of the ease of use of concurrent/parallel programming > > constructs. > > > 2009/5/18 Rich Hickey : > > > > I'll be doing two sessions involving Clojure at JavaOn

Re: Clojure at JavaOne

2009-05-18 Thread verec
Whatever you chose, you probably ought to show its source with an IDE (whichever you chose: NetBeans. Eclipse, IntelliJ) but should probably forget about emacs: many (most?) Java developers won't even consider anything that isn't at least partially integrated within some IDE. Not sure how much wo

Re: Clojure at JavaOne

2009-05-18 Thread John Newman
tructs. > > 2009/5/18 Rich Hickey : > > > > I'll be doing two sessions involving Clojure at JavaOne this June. One > > is a traditional talk (TS-4164), the other is as a participant in the > > Script Bowl 2009: A Scripting Languages Shootout (PAN-5348). > > &g

Re: Clojure at JavaOne

2009-05-18 Thread Laurent PETIT
2009/5/18 Mark Volkmann : > > On Mon, May 18, 2009 at 7:36 AM, Rich Hickey wrote: >> >> I'll be doing two sessions involving Clojure at JavaOne this June. One >> is a traditional talk (TS-4164), the other is as a participant in the >> Script Bowl 2009: A Scr

Re: Clojure at JavaOne

2009-05-18 Thread Laurent PETIT
rogramming constructs. 2009/5/18 Rich Hickey : > > I'll be doing two sessions involving Clojure at JavaOne this June. One > is a traditional talk (TS-4164), the other is as a participant in the > Script Bowl 2009: A Scripting Languages Shootout (PAN-5348). > > The 'script'

Re: Clojure at JavaOne

2009-05-18 Thread Mark Volkmann
On Mon, May 18, 2009 at 7:36 AM, Rich Hickey wrote: > > I'll be doing two sessions involving Clojure at JavaOne this June. One > is a traditional talk (TS-4164), the other is as a participant in the > Script Bowl 2009: A Scripting Languages Shootout (PAN-5348). > >

Re: Clojure at JavaOne

2009-05-18 Thread Andrew Wagner
h Hickey wrote: > > I'll be doing two sessions involving Clojure at JavaOne this June. One > is a traditional talk (TS-4164), the other is as a participant in the > Script Bowl 2009: A Scripting Languages Shootout (PAN-5348). > > The 'script' bowl is a friendly c

Clojure at JavaOne

2009-05-18 Thread Rich Hickey
I'll be doing two sessions involving Clojure at JavaOne this June. One is a traditional talk (TS-4164), the other is as a participant in the Script Bowl 2009: A Scripting Languages Shootout (PAN-5348). The 'script' bowl is a friendly competition, basically a place to show off yo