Re: REQUEST: Add apply-map to contrib.def (or core)

2009-08-01 Thread Rich Hickey
On Fri, Jul 31, 2009 at 2:34 PM, Sean Devlin wrote: > > I've been using Meikel's defnk macro a fair bit in some of my code.  I > have several functions that have sensible defaults that only need to > be overridden occasionally, so keyword arguments fit the bill nicely. > > Let's consider two (cont

Re: Bug in parallel.clj (and fix)

2009-08-01 Thread Rich Hickey
On Fri, Jul 31, 2009 at 10:40 AM, Eric wrote: > > I tried to import clojure.parallel today and it didn't work. It > couldn't find forkjoin.ParallelArray > > So I went hunting for it and it doesn't exist. There is a > extra166y.ParallelArray. In fact, all of the names imported were in > extra166

Re: Is it possible to swap in a new classloader?

2009-08-01 Thread Daniel
2009/7/31 Garth Sheldon-Coulson : > Dear Clojurians, > > Is it possible to dynamically swap in a new classloader or give Clojure's > classloader a new parent classloader? > > I'm embedding Clojure in a parent app, and the parent app has its own > classloader that keeps track of its own classpath

Re: Bug in parallel.clj (and fix)

2009-08-01 Thread Garth Sheldon-Coulson
Brilliant. Can't wait to see this in action. On 8/1/09, Rich Hickey wrote: > > On Fri, Jul 31, 2009 at 10:40 AM, Eric wrote: >> >> I tried to import clojure.parallel today and it didn't work. It >> couldn't find forkjoin.ParallelArray >> >> So I went hunting for it and it doesn't exist. There

Converting seqs to vectors & caching lazyseqs

2009-08-01 Thread Garth Sheldon-Coulson
Hi there, I have a program that produces multidimensional LazySeqs, i.e. seqs of seqs of seqs of... I would like to write a function to convert these multidimensional LazySeqs to vectors. This is in case a user needs constant lookup time. The following function will do it: (defn vectorize [obj]

Re: Converting seqs to vectors & caching lazyseqs

2009-08-01 Thread ataggart
On Aug 1, 9:37 am, Garth Sheldon-Coulson wrote: > Hi there, > > I have a program that produces multidimensional LazySeqs, i.e. seqs of seqs > of seqs of... > > I would like to write a function to convert these multidimensional LazySeqs > to vectors. This is in case a user needs constant lookup

Re: Converting seqs to vectors & caching lazyseqs

2009-08-01 Thread Meikel Brandmeyer
Hi, Am 01.08.2009 um 18:37 schrieb Garth Sheldon-Coulson: I have a program that produces multidimensional LazySeqs, i.e. seqs of seqs of seqs of... I would like to write a function to convert these multidimensional LazySeqs to vectors. This is in case a user needs constant lookup time.

Clojure without Rich Hickey

2009-08-01 Thread Vagif Verdi
Today i saw the announcement http://groups.google.com/group/Qilang/browse_thread/thread/592773c562017d87 that the creator and maintainer of another modern lisp dialect Qi closed the shop and went to India. The effect on Qi was so drastic that the Qi community are discussing right now which langua

Possible addition to swing-utils?

2009-08-01 Thread Meikel Brandmeyer
Hello Stephen, maybe this is worth another addition to c.c.swing-utils? (import 'javax.swing.JFileChooser) (use [clojure.contrib.def :only (defvar-)]) (defvar- file-chooser-last-directory (atom nil)) (defn with-chosen-file* "Creates a file chooser with the given Ok button label. If a dir

Re: Converting seqs to vectors & caching lazyseqs

2009-08-01 Thread Garth Sheldon-Coulson
Wow, that's really good. That's what I was trying to come up with all afternoon. I knew I needed some way to keep track of the function's state, but I couldn't figure it out. I came up with my own version using Rich's zipper library, traversing the data structure like a tree, but yours is much fas

Re: Clojure without Rich Hickey

2009-08-01 Thread Wilson MacGyver
I think the short answer is to build up clojure community so strong that in the very unlikely event this happens, clojure can survive it. On Aug 1, 2009, at 6:22 PM, Vagif Verdi wrote: > > Today i saw the announcement > http://groups.google.com/group/Qilang/browse_thread/thread/592773c562017d

Re: Clojure without Rich Hickey

2009-08-01 Thread Richard Newman
> Today i saw the announcement > http://groups.google.com/group/Qilang/browse_thread/thread/592773c562017d87 > that the creator and maintainer of another modern lisp dialect Qi > closed the shop and went to India. > The effect on Qi was so drastic that the Qi community are discussing > right now

Re: Clojure without Rich Hickey

2009-08-01 Thread Chouser
On Sat, Aug 1, 2009 at 6:22 PM, Vagif Verdi wrote: > > Since i'm using clojure in my business i got worried at a sudden > thought what would happen to clojure if Ruch calls it a day. If Rich quit working on Clojure for whatever reason, it would be a huge blow to the potential future of Clojure. T

Re: Clojure without Rich Hickey

2009-08-01 Thread fft1976
On Aug 1, 3:22 pm, Vagif Verdi wrote: > Today i saw the > announcementhttp://groups.google.com/group/Qilang/browse_thread/thread/592773c562... > that the creator and maintainer of  another modern lisp dialect Qi > closed the shop and went to India. The guy certainly has some self-image: """ An

Re: Clojure without Rich Hickey

2009-08-01 Thread fft1976
On Aug 1, 7:24 pm, Chouser wrote: > On Sat, Aug 1, 2009 at 6:22 PM, Vagif Verdi wrote: > > > Since i'm using clojure in my business i got worried at a sudden > > thought what would happen to clojure if Ruch calls it a day. > > If Rich quit working on Clojure for whatever reason, it > would be a h