Re: Compilation model

2012-02-24 Thread Softaddicts
you can use the *compile-files* flag if you need to differentiate compiling versus running contexts. This will be useful if you use AOT to create class files for later packaging. This flag is useful to avoid global code chunks to run when they create side effects (runtime inits, ...). You do not

Call for Presentations: Commercial Users of Functional Programming 2012

2012-02-24 Thread Chouser
The 2012 CUFP call for presentations is out: http://cufp.org/cufp-2012-call-presentations The program committee is hoping for better representation from the Clojure community this year, so if you've got something interesting to say about Clojure, please submit a proposal! --Chouser -- You

Mamet Ipsum

2012-02-24 Thread Tom Vaughan
http://mametipsum.herokuapp.com/ I wrote this to teach myself Clojure. The code is on GitHub: https://github.com/tvaughan/mametipsum. Thanks for Clojure. I enjoyed it. Any comments are appreciated. -Tom -- You received this message because you are subscribed to the Google Groups Clojure

Re: How to be lazy…

2012-02-24 Thread JuanManuel Gimeno Illa
One implementation using only one recursive function and the sequence library: (defn split-at-subsequence [mark input] (when-let [sequence (seq input)] (let [len (count mark) pieces (partition-all len 1 sequence) [fst rst] (split-with #(not= mark %)

Re: How to be lazy…

2012-02-24 Thread JuanManuel Gimeno Illa
Maybe this version is clearer: (defn split-at-subsequence [mark input] (when-let [sequence (seq input)] (let [len (count mark) pieces (partition-all len 1 sequence) [fst rst] (split-with #(not= mark %) pieces) head (map first

Re: How to be lazy…

2012-02-24 Thread JuanManuel Gimeno Illa
One variation making the lazy-sequence only over the pieces: (defn split-at-subsequence [mark input] (let [len (count mark) split-at-subseq (fn split-at-subseq [pieces] (when (seq pieces) (let [[fst rst]

Re: How to be lazy…

2012-02-24 Thread Cedric Greevey
On Fri, Feb 24, 2012 at 11:30 AM, JuanManuel Gimeno Illa jmgim...@gmail.com wrote: Maybe this version is clearer: (defn split-at-subsequence [mark input]     (when-let [sequence (seq input)]         (let [len       (count mark)               pieces   (partition-all len 1 sequence)          

Bret Victor - Inventing on Principle

2012-02-24 Thread Damien Lepage
Hi Everyone, You may have seen this already, if not I believe it's worth investing 1h of your life: http://vimeo.com/36579366 That's already a good candidate for the technical talk of the year, if not the decade IMO. Ok, I'm getting a bit too enthusiastic here but this is so inspiring. After

Re: Bret Victor - Inventing on Principle

2012-02-24 Thread Cedric Greevey
On Fri, Feb 24, 2012 at 1:29 PM, Damien Lepage damienlep...@gmail.com wrote: Hi Everyone, You may have seen this already, if not I believe it's worth investing 1h of your life: http://vimeo.com/36579366 That's already a good candidate for the technical talk of the year, if not the decade

Re: Bret Victor - Inventing on Principle

2012-02-24 Thread gaz jones
Are you Ken Wesson with a new account? On Fri, Feb 24, 2012 at 1:00 PM, Cedric Greevey cgree...@gmail.com wrote: On Fri, Feb 24, 2012 at 1:29 PM, Damien Lepage damienlep...@gmail.com wrote: Hi Everyone, You may have seen this already, if not I believe it's worth investing 1h of your life:

Re: Bret Victor - Inventing on Principle

2012-02-24 Thread Cedric Greevey
On Fri, Feb 24, 2012 at 2:06 PM, gaz jones gareth.e.jo...@gmail.com wrote: Are you Ken Wesson with a new account? Who? Wait. Surely you don't think that it's not possible for more than one person to prefer text to video as a way of disseminating verbal information over the internet, given all

Re: Bret Victor - Inventing on Principle

2012-02-24 Thread Marco Abis
What does video get you that text or HTML+images couldn't get you? watching the video would answer the question and would have probably taken you less time than writing this email... Not worth what you lose, IMO how can you know if you haven't watched the video? -- Marco Abis -- You

Re: How to be lazy…

2012-02-24 Thread JuanManuel Gimeno Illa
El viernes 24 de febrero de 2012 18:46:03 UTC+1, Cedric Greevey escribió: On Fri, Feb 24, 2012 at 11:30 AM, JuanManuel Gimeno Illa wrote: I think it would be better to create the lazy-seq over a function that uses the pieces in order to not to explode input with partition-all and

Re: Bret Victor - Inventing on Principle

2012-02-24 Thread Cedric Greevey
On Fri, Feb 24, 2012 at 2:13 PM, Marco Abis marco.a...@gmail.com wrote: What does video get you that text or HTML+images couldn't get you? watching the video would answer the question and would have probably taken you less time than writing this email... Actually, it would have taken an hour,

Re: Bret Victor - Inventing on Principle

2012-02-24 Thread gaz jones
nah it's possible i guess, but he's the only other person i've ever seen type an essay about it on this forum in reply to someone posting a link to a video. also, he posts and yours are very similar and he disappeared shortly before you arrived. AND YOU WOULD HAVE GOT AWAY WITH IT IF IT WASNT FOR

Re: Bret Victor - Inventing on Principle

2012-02-24 Thread Marco Abis
First: sorry, my reply was meant to be sent to you only, not the list Actually, it would have taken an hour, and writing the email took much less. ... Because it was described as a talk. That means the bulk of the actually meaningful content in it comes from someone's lips flapping. That

Re: How to be lazy…

2012-02-24 Thread Cedric Greevey
On Fri, Feb 24, 2012 at 2:17 PM, JuanManuel Gimeno Illa jmgim...@gmail.com wrote: What I don't understand of your solution is the (map seq (step pieces)) because for me it is clear that each of the sequences generated by step is a seq, so why do you need to seq it? It's the combination of

Re: Bret Victor - Inventing on Principle

2012-02-24 Thread Cedric Greevey
On Fri, Feb 24, 2012 at 2:19 PM, Marco Abis marco.a...@gmail.com wrote: First: sorry, my reply was meant to be sent to you only, not the list Because it was described as a talk. That means the bulk of the actually meaningful content in it comes from someone's lips flapping. That can be

Re: Bret Victor - Inventing on Principle

2012-02-24 Thread Jay Fields
On Fri, Feb 24, 2012 at 2:12 PM, Cedric Greevey cgree...@gmail.com wrote: On Fri, Feb 24, 2012 at 2:06 PM, gaz jones gareth.e.jo...@gmail.com wrote: Are you Ken Wesson with a new account? Who? Wait. Surely you don't think that it's not possible for more than one person to prefer text to

Re: Bret Victor - Inventing on Principle

2012-02-24 Thread Mark Rathwell
On Fri, Feb 24, 2012 at 2:25 PM, Jay Fields j...@jayfields.com wrote: On Fri, Feb 24, 2012 at 2:12 PM, Cedric Greevey cgree...@gmail.com wrote: On Fri, Feb 24, 2012 at 2:06 PM, gaz jones gareth.e.jo...@gmail.com wrote: Are you Ken Wesson with a new account? Who? Wait. Surely you don't think

Re: Bret Victor - Inventing on Principle

2012-02-24 Thread Cedric Greevey
On Fri, Feb 24, 2012 at 2:25 PM, Jay Fields j...@jayfields.com wrote: On Fri, Feb 24, 2012 at 2:12 PM, Cedric Greevey cgree...@gmail.com wrote: On Fri, Feb 24, 2012 at 2:06 PM, gaz jones gareth.e.jo...@gmail.com wrote: Are you Ken Wesson with a new account? Who? Wait. Surely you don't think

Re: How to be lazy…

2012-02-24 Thread Alan Malloy
Why would you (remove nil? (map f coll))? That's what keep is for: (keep f coll). On Feb 24, 11:20 am, Cedric Greevey cgree...@gmail.com wrote: On Fri, Feb 24, 2012 at 2:17 PM, JuanManuel Gimeno Illa jmgim...@gmail.com wrote: What I don't understand of your solution is the (map seq (step

Re: How to be lazy…

2012-02-24 Thread Cedric Greevey
On Fri, Feb 24, 2012 at 2:43 PM, Alan Malloy a...@malloys.org wrote: Why would you (remove nil? (map f coll))? That's what keep is for: (keep f coll). Why would you (remove nil? (map f coll))? Because you didn't know about keep, obviously. :) -- You received this message because you are

Re: Bret Victor - Inventing on Principle

2012-02-24 Thread Devin Walters
@cedric: I think you've made your point. I know you're not asking for advice, but I think the constructive thing would have been to ask: Could you please provide more context? Are there slides available of this talk? If you want to rant about this newfangled video contraption, this list is not

Re: Bret Victor - Inventing on Principle

2012-02-24 Thread Daniel E. Renfer
On 02/24/2012 02:42 PM, Cedric Greevey wrote: On Fri, Feb 24, 2012 at 2:25 PM, Jay Fields j...@jayfields.com wrote: On Fri, Feb 24, 2012 at 2:12 PM, Cedric Greevey cgree...@gmail.com wrote: On Fri, Feb 24, 2012 at 2:06 PM, gaz jones gareth.e.jo...@gmail.com wrote: Are you Ken Wesson with a new

Re: Bret Victor - Inventing on Principle

2012-02-24 Thread Timothy Baldridge
Bringing this back on topic, I watched the video. Wow! was it worth it. This guy has some pretty mind-blowing demos. I highly recommend this, I'm going to have to sit down soon and code up a clone of his binary search tree demo. Timothy -- You received this message because you are subscribed to

Re: Bret Victor - Inventing on Principle

2012-02-24 Thread Cedric Greevey
On Fri, Feb 24, 2012 at 2:51 PM, Daniel E. Renfer duck112...@gmail.com wrote: On 02/24/2012 02:42 PM, Cedric Greevey wrote: OK. I googled the group archives. Seems there was a Ken Wesson active on the list for a while, but he disappeared a couple of months before I joined. I'm not sure why

Re: Bret Victor - Inventing on Principle

2012-02-24 Thread Andy Fingerhut
Perhaps someone will volunteer to transcribe it and post that. You know, maybe someone who can type quickly and prefers text. :-) I've done that for one of Rich's earlier talks posted as video. It takes time, and I'm not volunteering for this one. Andy On Feb 24, 2012, at 11:57 AM, Cedric

Re: Bret Victor - Inventing on Principle

2012-02-24 Thread Softaddicts
I need a braille version, any volunteer ? BTWY, what was the initial subject of this thread ? I'm half-joking here, welcome back Mr Wesson. : Mr Smith Perhaps someone will volunteer to transcribe it and post that. You know, maybe someone who can type quickly and prefers text. :-)

Re: Bret Victor - Inventing on Principle

2012-02-24 Thread Damien Lepage
Sorry, I certainly didn't intend to start such a heated debate ;o) Hopefully some of you appreciate the link but you're all free to ignore. The truth is, no matter the media, there are too many interesting things and you need to choose. I had this video in my todo list for a week before I took the

Re: Bret Victor - Inventing on Principle

2012-02-24 Thread Michael Gardner
On Feb 24, 2012, at 1:51 PM, Daniel E. Renfer wrote: Ken Wesson was noted for having strong opinions as was a noted hater of videos where text will do. He was also the only guy who would post replies with just you're welcome as the body. Until Cedric, that is... -- You received this message

Re: Bret Victor - Inventing on Principle

2012-02-24 Thread Laurent PETIT
Envoyé de mon iPhone Le 24 févr. 2012 à 19:29, Damien Lepage damienlep...@gmail.com a écrit : Hi Everyone, You may have seen this already, if not I believe it's worth investing 1h of your life: http://vimeo.com/36579366 That's already a good candidate for the technical talk of the year, if not

Re: How to be lazy…

2012-02-24 Thread JuanManuel Gimeno Illa
This solution, I think, does not do more map first than needed, avoids computing len and pieces more than once, uses nthnext to avoid extra cost of drop and computes the example (first (second (split-at-subsequence [1 2] (range (defn split-at-subsequence [mark input] (when-let

Re: Bret Victor - Inventing on Principle

2012-02-24 Thread Stuart Halloway
On Fri, Feb 24, 2012 at 2:19 PM, Marco Abis marco.a...@gmail.com wrote: First: sorry, my reply was meant to be sent to you only, not the list Because it was described as a talk. That means the bulk of the actually meaningful content in it comes from someone's lips flapping. That can be

Re: Bret Victor - Inventing on Principle

2012-02-24 Thread Raju Bitter
Thanks for posting the link. I've been following Bret Victor's blog and the stuff he has been doing for some time. Bret has built some very impressive UIs using OpenLaszlo, and he is a fan of the technology and the expressiveness of the LZX language for building UIs. OpenLaszlo was created by

Re: Bret Victor - Inventing on Principle

2012-02-24 Thread David Nolen
Thanks for bringing the discussion back on track. That's a great list of contexts links. David On Fri, Feb 24, 2012 at 4:27 PM, Raju Bitter rajubit...@googlemail.comwrote: Thanks for posting the link. I've been following Bret Victor's blog and the stuff he has been doing for some time.

Re: Bret Victor - Inventing on Principle

2012-02-24 Thread kovas boguta
That's a great talk, and a great basic principle: that creators need an immediate connection to their creation. I realized this has also been my side project for the last few months, though mostly in hammock phase. I think the foundational technology we need, as a community, is an html5 repl.

Re: clojure.java.jmx 0.1 - problem getiing java.lang:type=Threading :AllThreadIds attribute

2012-02-24 Thread zoka
I had a look at the java.jmx code and worked out and tested s simple fix: diff --git a/src/main/clojure/clojure/java/jmx.clj b/src/main/clojure/ clojure/java/jmx.clj index 128e516..3d291a3 100644 --- a/src/main/clojure/clojure/java/jmx.clj +++ b/src/main/clojure/clojure/java/jmx.clj @@ -203,9

Re: [ANN] Luke VanderHart's Clojure Zippers Conj video up

2012-02-24 Thread Howard Lewis Ship
I've finally signed and scanned my video release, for my short talk on Cascade. http://dl.dropbox.com/u/39927208/conj-video-release.pdf On Mon, Dec 27, 2010 at 10:08 AM, Alan Dipert a...@dipert.org wrote: Hi everyone, We've just released the next Conj video, Luke VanderHart's talk on Clojure

clj-blueprints

2012-02-24 Thread Eduardo Julian
I'd like to present you with an small library for working with Blueprints-enabled graph databases in Clojure: https://github.com/eduardoejp/clj-blueprints Have fun! -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: Bret Victor - Inventing on Principle

2012-02-24 Thread Stefan Kamphausen
Hi, this video showed up on my G+ stream about a week ago and it was /fun/ to watch. I think most of the people around here will be more intrigued by the first half, which has a focus on programming. Side-note: this is one of the (few) video presentations that just can't be translated to

Re: Bret Victor - Inventing on Principle

2012-02-24 Thread Chas Emerick
That's a nice summary, and is part of what I'm hoping to enable with nREPL.[1] I started with it trying to provide a tool-agnostic REPL backend, but I quickly wanted to get past the rigid text orientation of that medium. Yes, Clojure forms are always read as text, and that's the dominant

Re: lazyness

2012-02-24 Thread Mark Rathwell
Try this (you need to wrap the return val of helper in lazy-seq also): (defn pair-sequences-by ([seq-1 seq-2 f1 f2] s1 and s2 are guaranteed to be strictly monotonically increasing whith respect to f1 and f2 as keys respectively. The return value is pairs of elements e1 from s1 and e2

Re: Bret Victor - Inventing on Principle

2012-02-24 Thread Sam Ritchie
Why listen to music when you could read lyrics? Watching a well-performed talk is about making an emotional connection with the storyteller. Go read the I have a dream speech, then watch the video. They're both powerful, but the performance trumps the script. (Please don't troll me on the

use require of repl-created namespace throws exception (?)

2012-02-24 Thread Frank Siebenlist
If you create a namespace with associated vars interactively in the repl, and subsequently try to use that functionality in other namspaces with clojure.core/use, an exception is thrown: FileNotFoundException Could not locate cljsh/docs__init.class or cljsh/docs.clj on classpath:

Re: lazyness

2012-02-24 Thread Sunil S Nandihalli
Thanks Mark, I think that worked!! Sunil. On Sat, Feb 25, 2012 at 10:54 AM, Mark Rathwell mark.rathw...@gmail.comwrote: Try this (you need to wrap the return val of helper in lazy-seq also): (defn pair-sequences-by ([seq-1 seq-2 f1 f2] s1 and s2 are guaranteed to be strictly