Re: Clojure infinite loop

2009-03-06 Thread Raffael Cavallaro
On Mar 6, 5:58 pm, Chouser wrote: > This registers the current thread to be stopped next time an INT > signal is recieved, which happens when the user presses Ctrl-C.  Try > this: > >   user=> (Thread/sleep 1) > > Then press Ctrl-C before the 10 seconds are up, and you'll see: > >   java.l

Re: Clojure infinite loop

2009-03-06 Thread Jason Wolfe
> I just added a couple functions to clojure.contrib.repl-utils in an > attempt to support Ctrl-C: > > user=> (use 'clojure.contrib.repl-utils) > nil > user=> (add-break-thread!) > {1 #} > > This registers the current thread to be stopped next time an INT > signal is recieved, which happens wh

Re: Clojure infinite loop

2009-03-06 Thread Chouser
On Fri, Mar 6, 2009 at 5:05 PM, Jason Wolfe wrote: > >> (Ctrl-C pressed here) >> Traceback (most recent call last): >>   File "", line 1, in >> KeyboardInterrupt > > That is something I miss from SBCL.  In SLIME-SBCL, you can just Ctrl- > C Ctrl-C to interrupt your code. I just added a couple f

Re: Clojure infinite loop

2009-03-06 Thread Jason Wolfe
> (Ctrl-C pressed here) > Traceback (most recent call last): >   File "", line 1, in > KeyboardInterrupt That is something I miss from SBCL. In SLIME-SBCL, you can just Ctrl- C Ctrl-C to interrupt your code. I think it's not possible (or at least easy) in Clojure without adding debugging cruf

Re: Clojure infinite loop

2009-03-06 Thread Michael Wood
On Fri, Mar 6, 2009 at 5:00 PM, Stephen C. Gilardi wrote: > > On Mar 6, 2009, at 9:44 AM, Mark Volkmann wrote: > >> ctrl-c is the right way to exit under Windows. >> Under UNIX, Linux and Mac OS X, I think ctrl-d is preferred. > > > I agree. > > Here's some more info: > > On the Unixes, ctl-d rep

Re: Clojure infinite loop

2009-03-06 Thread Michael Wood
On Fri, Mar 6, 2009 at 7:24 AM, mike.farn...@gmail.com wrote: > > Hi, > > Having attend Stu Halloway's talk on Clojure, at NFJS, I decided to > download it and check it out. The language seems like a perfect fit > for some database set manipulation that I do, and may need to do in > the future. >

Re: Clojure infinite loop

2009-03-06 Thread Stephen C. Gilardi
On Mar 6, 2009, at 9:44 AM, Mark Volkmann wrote: ctrl-c is the right way to exit under Windows. Under UNIX, Linux and Mac OS X, I think ctrl-d is preferred. I agree. Here's some more info: On the Unixes, ctl-d represents "end-of-file" (end of input stream). Usually terminals and terminal

Re: Clojure infinite loop

2009-03-06 Thread Chouser
On Fri, Mar 6, 2009 at 9:27 AM, Paul Stadig wrote: > > On Fri, Mar 6, 2009 at 12:24 AM, mike.farn...@gmail.com >> >> I tried a number of commands to exit. >> So, I just hit ctrl-C. (This is on Windows). > > I had the same question in getting started. Someone told me to type > "(System/exit 0)" wh

Re: Clojure infinite loop

2009-03-06 Thread Mark Volkmann
On Thu, Mar 5, 2009 at 11:24 PM, mike.farn...@gmail.com wrote: > > Hi, > > Having attend Stu Halloway's talk on Clojure, at NFJS, I decided to > download it and check it out. The language seems like a perfect fit > for some database set manipulation that I do, and may need to do in > the future.

Re: Clojure infinite loop

2009-03-06 Thread Shawn Hoover
On Fri, Mar 6, 2009 at 12:24 AM, mike.farn...@gmail.com < mike.farn...@gmail.com> wrote: > > So, I downloaded clojure and started it up with the command: > java -cp clojure.jar clojure.lang.Repl > > The docs indicate: "This will bring up a simple read-eval-print loop > (REPL)." > > Is this truly a

Re: Clojure infinite loop

2009-03-06 Thread Paul Stadig
On Fri, Mar 6, 2009 at 12:24 AM, mike.farn...@gmail.com wrote: > > Hi, > > Having attend Stu Halloway's talk on Clojure, at NFJS, I decided to > download it and check it out. The language seems like a perfect fit > for some database set manipulation that I do, and may need to do in > the future.

Clojure infinite loop

2009-03-06 Thread mike.farn...@gmail.com
Hi, Having attend Stu Halloway's talk on Clojure, at NFJS, I decided to download it and check it out. The language seems like a perfect fit for some database set manipulation that I do, and may need to do in the future. So, I downloaded clojure and started it up with the command: java -cp clojur