Cells in Clojure

2008-09-19 Thread Stuart Sierra
On Sep 19, 7:56 pm, MikeM <[EMAIL PROTECTED]> wrote: > Someone's been working on cells for > clojure:http://paste.lisp.org/display/66688 I'm not sure what that code is trying to do, but it seems to rely on the Qt libraries. I've attached a trivial implementation of Cells in Clojure. It's not as

Re: Observations and questions regarding long-running, adaptable, transparent software

2008-09-19 Thread MikeM
Someone's been working on cells for clojure: http://paste.lisp.org/display/66688 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsu

Re: "Getting Started" is NOT starting for me...

2008-09-19 Thread Rich Hickey
On Sep 19, 4:20 pm, AlamedaMike <[EMAIL PROTECTED]> wrote: > Hangs for me with Java 1.6.0_06 on Vista. > Could anyone for whom this doesn't work please try the equivalent Java code in the same environment: javax.swing.JOptionPane.showMessageDialog(null, "Hello World"); from main in a console

Re: "Getting Started" is NOT starting for me...

2008-09-19 Thread AlamedaMike
Hangs for me with Java 1.6.0_06 on Vista. Mike --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email

Re: "Getting Started" is NOT starting for me...

2008-09-19 Thread Chouser
On Fri, Sep 19, 2008 at 2:25 PM, Allen Rohner <[EMAIL PROTECTED]> wrote: > > Works for me on XP SP2. > > $ java -version > java version "1.5.0_04" Also works ok on XP SP2 with Java 1.6 and a recent SVN clojure: java version "1.6.0_07" Java(TM) SE Runtime Environment (build 1.6.0_07-b06) Java Hot

Re: "Getting Started" is NOT starting for me...

2008-09-19 Thread .Bill Smith
Correction: it *does* work for me. The dialog was behind my Emacs window. Sorry Rich. Bill On Sep 19, 1:28 pm, "Rich Hickey" <[EMAIL PROTECTED]> wrote: > Hmm... works here on Windows Server 2003, SP2 > > Does the equivalent Java program work on your config? > > Rich > > java version "1.6.0_07"

Re: "Getting Started" is NOT starting for me...

2008-09-19 Thread Rich Hickey
Hmm... works here on Windows Server 2003, SP2 Does the equivalent Java program work on your config? Rich java version "1.6.0_07" Java(TM) SE Runtime Environment (build 1.6.0_07-b06) Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing) On Fri, Sep 19, 2008 at 2:10 PM, .Bill Smith <

Re: "Getting Started" is NOT starting for me...

2008-09-19 Thread Allen Rohner
On Sep 19, 1:10 pm, ".Bill Smith" <[EMAIL PROTECTED]> wrote: > I see the same problem on Windows XP SP 3. > > % java -version > java version "1.6.0_03" > Java(TM) SE Runtime Environment (build 1.6.0_03-b05) > Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode) > Works for me on XP SP2. $

Re: "Getting Started" is NOT starting for me...

2008-09-19 Thread .Bill Smith
I see the same problem on Windows XP SP 3. % java -version java version "1.6.0_03" Java(TM) SE Runtime Environment (build 1.6.0_03-b05) Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode) Bill On Sep 19, 12:51 pm, Aaron Brooks <[EMAIL PROTECTED]> wrote: > Cliff, > >     This works fine

Re: "Getting Started" is NOT starting for me...

2008-09-19 Thread Aaron Brooks
Cliff, This works fine for me with Sun JDK 1.6.0.05 on Gentoo Linux. I assume this is on Windows for you? -Aaron On Sep 19, 1:25 pm, cliffc <[EMAIL PROTECTED]> wrote: > I downloaded clojure to my pc. I tried the "Getting Started" page: > >   user=> (+ 1 2 3) >   6 > > Worked great...  next

Re: "Getting Started" is NOT starting for me...

2008-09-19 Thread Rich Hickey
On Sep 19, 1:25 pm, cliffc <[EMAIL PROTECTED]> wrote: > I downloaded clojure to my pc. I tried the "Getting Started" page: > > user=> (+ 1 2 3) > 6 > > Worked great... next step: > > user=> (. javax.swing.JOptionPane (showMessageDialog nil "Hello > World")) > > This hangs for me; the java

"Getting Started" is NOT starting for me...

2008-09-19 Thread cliffc
I downloaded clojure to my pc. I tried the "Getting Started" page: user=> (+ 1 2 3) 6 Worked great... next step: user=> (. javax.swing.JOptionPane (showMessageDialog nil "Hello World")) This hangs for me; the java process is idle. No output, no dialog box or GUI. I'm using HotSpot 1.6

"Getting Started" is starting for me...

2008-09-19 Thread cliffc
I downloaded clojure to my pc. I tried the "Getting Started" page: user=> (+ 1 2 3) 6 Worked great... next step: user=> (. javax.swing.JOptionPane (showMessageDialog nil "Hello World")) This hangs for me; the java process is idle. No output, no dialog box or GUI. I'm using HotSpot 1.6.0

Re: Type tags for primitive arrays

2008-09-19 Thread Stuart Sierra
It just occurred to me to try this: (defn foo [#^"[B" bytes] (String. bytes)) Which seems to work. So I answered my own question. -Stuart On Sep 19, 12:11 pm, Stuart Sierra <[EMAIL PROTECTED]> wrote: > Hi, > I wanted to remove some reflection by adding type tags.  One of the > types I had to

Type tags for primitive arrays

2008-09-19 Thread Stuart Sierra
Hi, I wanted to remove some reflection by adding type tags. One of the types I had to tag was an array of primitives (Java byte[], to be exact). I can get the class like this: user=> (def byte-array-type (class (make-array Byte/TYPE 0))) #'user/byte-array-type user=> byte-array-type [B But I c

Re: Improved compiler error messages, part 2

2008-09-19 Thread Allen Rohner
> > I've enhanced handling of reader errors during load (rev 1033), see if > that helps. > > Rich Looks good. Thanks! Allen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, s

Re: Patch to provide special form documentation online (doc, find-doc)

2008-09-19 Thread Rich Hickey
On Sep 19, 12:05 am, "Stephen C. Gilardi" <[EMAIL PROTECTED]> wrote: > On Sep 18, 2008, at 12:34 PM, Rich Hickey wrote: > > > Done, except catch and finally, which are sub-syntax of try, like & > > is for fn. > > Thanks. I've uploaded specialdocs-2.patch. Patch applied (rev 1034) - thanks! Ric

Re: Improved compiler error messages, part 2

2008-09-19 Thread Rich Hickey
On Sep 18, 12:07 pm, Allen Rohner <[EMAIL PROTECTED]> wrote: > Ok, I have a new one. > > Reader errors don't tell you the name of the file that had problems: > > eof.clj: > > (defn foo [a] >(println "hello") > > $ java -cp clojure.jar clojure.lang.Repl eof.clj > java.lang.Exception: ReaderEr

Re: Observations and questions regarding long-running, adaptable, transparent software

2008-09-19 Thread Stuart Sierra
On Sep 18, 5:17 pm, falcon <[EMAIL PROTECTED]> wrote: > Google often brings me to the cells website, but I haven't been able > to figure out what it exactly is, you are right about the > documentation. I've met Ken Tilton (Cells' author) at LispNYC, so here's what I've gathered -- you define a Mo

Re: Collection Building Idiom

2008-09-19 Thread Mark McGranaghan
Thanks Rich, This is exactly the "there must be a simple way to do this that I am overlooking" answer that I was hoping for. - Mark On Fri, Sep 19, 2008 at 8:25 AM, Rich Hickey <[EMAIL PROTECTED]> wrote: > > > > On Sep 18, 8:49 pm, Mark McGranaghan <[EMAIL PROTECTED]> wrote: >> Hi all, >> >> I

Re: porting Practical Common Lisp examples to Clojure

2008-09-19 Thread Rich Hickey
On Sep 16, 5:38 pm, Stuart Halloway <[EMAIL PROTECTED]> wrote: > Hi all, > > I am porting [1] the Practical Common Lisp examples [2] to Clojure, > and blogging notes [3] as I go. Feedback of all kinds is most welcome, > and I hope that some folks here will find this useful. > > Cheers, > Stuart

Re: Collection Building Idiom

2008-09-19 Thread Rich Hickey
On Sep 18, 8:49 pm, Mark McGranaghan <[EMAIL PROTECTED]> wrote: > Hi all, > > I was wondering if there was an idiomatic functional way to accomplish > the following: > > We have some parameters, and we want to build a collection based on > those parameters. The collection could have as many as

Re: Collection Building Idiom

2008-09-19 Thread Parth Malwankar
On Sep 19, 5:49 am, Mark McGranaghan <[EMAIL PROTECTED]> wrote: > Hi all, > > I was wondering if there was an idiomatic functional way to accomplish > the following: > > We have some parameters, and we want to build a collection based on > those parameters.  The collection could have as many as