Re: Common backend project?

2009-01-17 Thread Bill Clementson
a lot of links to other material that you might find useful: http://bc.tech.coop/blog/081209.html -- Bill Clementson --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group,

Re: No Indentation in SLIME

2009-01-15 Thread Bill Clementson
g the following to your .emacs startup code is probably the easiest: (add-hook 'slime-connected-hook (lambda () (require 'clojure-mode))) -- Bill Clementson --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

Re: Slime buffer ns is always user

2009-01-09 Thread Bill Clementson
On Thu, Jan 8, 2009 at 2:13 PM, Bill Clementson wrote: > On Thu, Jan 8, 2009 at 11:57 AM, Zak Wilson wrote: >> >> Everything is fully up to date. >> >> The test works. Setting the ns with (ns test) works, but if I use a >> more complex ns form like (ns test

Re: Slime buffer ns is always user

2009-01-08 Thread Bill Clementson
On Thu, Jan 8, 2009 at 11:57 AM, Zak Wilson wrote: > > Everything is fully up to date. > > The test works. Setting the ns with (ns test) works, but if I use a > more complex ns form like (ns test (:use clojure.xml)), it fails to > set the ns. > > As a workaround, (in-ns test) after the ns definit

Re: Slime buffer ns is always user

2009-01-08 Thread Bill Clementson
On Thu, Jan 8, 2009 at 2:01 AM, Zak Wilson wrote: > > Thanks for your help with this problem, Bill. > > The function you provided causes slime-repl-set-package to suggest the > correct namespace, which is convenient. It doesn't appear to have any > effect on my problem though. The slime-find-buf

Re: Slime buffer ns is always user

2009-01-07 Thread Bill Clementson
lojure.core/\\)?ns\\>[ \t']*" "\\([^)]+\\)[ \t]*)"))) (save-excursion (when (or (re-search-backward regexp1 nil t) (re-search-forward regexp1 nil t) (re-sear

Re: Slime buffer ns is always user

2009-01-07 Thread Bill Clementson
hen, evaluate new definitions in the same source file and they will be evaluated in the correct namespace (regardless of what namespace is active in the repl). -- Bill Clementson --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Go

Re: Emacs+SLIME+Clojure troubles

2009-01-01 Thread Bill Clementson
On Thu, Jan 1, 2009 at 6:02 PM, Mark H. wrote: > > On Jan 1, 5:44 pm, "Stephen C. Gilardi" wrote: >> On Jan 1, 2009, at 7:57 PM, Bill Clementson wrote: >> >> > Or is there some other "dynamic >> > documentation for a function" that you

Re: Emacs+SLIME+Clojure troubles

2009-01-01 Thread Bill Clementson
On Thu, Jan 1, 2009 at 1:05 PM, Mark H. wrote: > > On Jan 1, 5:55 am, "Remco van 't Veer" wrote: >> I got repl to start with a small change to swank-clojure: >> >> http://github.com/remvee/swank-clojure/commit/ed89d6997bce3c5076e779a... > > I changed that one line to say > > (defslimefn create-

Re: Emacs+SLIME+Clojure troubles

2009-01-01 Thread Bill Clementson
It should be noted that (in order to use the new slime-repl mods (if you download the latest slime and apply Remco's patch), you will have to modify your .emacs startup to include the following: (slime-setup '(slime-repl)) - Bill On Thu, Jan 1, 2009 at 11:40 AM, Bill Clementson wr

Re: Emacs+SLIME+Clojure troubles

2009-01-01 Thread Bill Clementson
Yes, this does work too. I'll forward on your patch to Jeffrey. Thanks, Bill On Thu, Jan 1, 2009 at 5:55 AM, Remco van 't Veer wrote: > > I got repl to start with a small change to swank-clojure: > > > http://github.com/remvee/swank-clojure/commit/ed89d6997bce3c5076e779ad6e79e37a44d84432 > >

Re: Emacs+SLIME+Clojure troubles

2008-12-31 Thread Bill Clementson
-mode-map (kbd "C-c D") 'slime-javadoc) )) You could change the slime-repl-mode-map entries to instead refer to the equivalent inferior-lisp repl mode map; however, you'll just have to change them ba

Re: Help with Slime

2008-12-24 Thread Bill Clementson
dding the following to your .emacs file fix this for you?: (add-hook 'slime-connected-hook (lambda () ;; do any other post-slime-startup stuff here (bury-buffer))) -- Bill Clementson --~--~-~--~~~

Re: Preparing for Release 1.0 (was: Re: 20081217 Release)

2008-12-19 Thread Bill Clementson
Hi Meikel, On Thu, Dec 18, 2008 at 11:18 PM, Meikel Brandmeyer wrote: > On 19 Dez., 02:10, bc wrote: >> For clojure-contrib, it would make sense to create a matching tarball >> whenever a Clojure release occurs. For the other 3, it would be >> necessary for someone to test and save off a copy o

Re: Workflow troubles - exceptions in other threads

2008-12-18 Thread Bill Clementson
On Thu, Dec 18, 2008 at 7:05 PM, levand wrote: > > I must say, this is absolutely the first thing I've found about > Clojure that is difficult or cumbersome - I've been more than pleased > with how easy everything else has been. I'm a new to Emacs+Slime, and > their learning curve has been the mo

Re: Patch: precompiling Clojure core sources in Ant build script

2008-12-16 Thread Bill Clementson
t;> >> java.lang.IllegalArgumentException: No matching field found: separator >> for class java.lang.Class (NO_SOURCE_FILE:0) >> [Thrown class clojure.lang.Compiler$CompilerException] >> >> I updated everything clojure related - clojure itself, swank-clojure, >&

Re: Working combination of .emacs, Aquamacs, swank-clojure, clojure-mode?

2008-12-11 Thread Bill Clementson
ns? > > Have a nice day, > mosi > > PS: Thanx Feng hou for helping to find out the most basic swank- > clojure setup. It was not clear from the docs, that the following is > needed to start: > (swank/start-server "/dev/null" :port 4005 :dont-close true) > > In

Re: Patch: precompiling Clojure core sources in Ant build script

2008-12-10 Thread Bill Clementson
Hi Matt, FYI - Jeffrey Chu just sent me an email and the patch has now been applied to swank-clojure. - Bill On Wed, Dec 10, 2008 at 1:09 PM, Bill Clementson <[EMAIL PROTECTED]> wrote: > Hi Matt, > > On Wed, Dec 10, 2008 at 12:47 PM, MattyDub <[EMAIL PROTECTED]> wrote: >

Re: Patch: precompiling Clojure core sources in Ant build script

2008-12-10 Thread Bill Clementson
Hi Matt, On Wed, Dec 10, 2008 at 12:47 PM, MattyDub <[EMAIL PROTECTED]> wrote: > > I can confirm that that patch fixed my problem - I can now M-. to > render-place. Thanks, Bill! Good to hear that the patch fixes the issue for you. > What paths does slime-edit-definition search for the defin

Re: Patch: precompiling Clojure core sources in Ant build script

2008-12-10 Thread Bill Clementson
Oops, that patch had my debugging statements in it. Here's the correct one to use. On Wed, Dec 10, 2008 at 11:44 AM, Bill Clementson <[EMAIL PROTECTED]> wrote: > Hi Matt, > > I had a bit of free time this morning, so I looked into this further > and came up with a patch (at

Re: Patch: precompiling Clojure core sources in Ant build script

2008-12-10 Thread Bill Clementson
Hi Matt, I had a bit of free time this morning, so I looked into this further and came up with a patch (attached). I've forwarded the patch to Jeffrey as well, so it should find it's way into swank-clojure in due course. Cheers, Bill Clementson On Wed, Dec 10, 2008 at 9:57 AM, Bill

Re: Patch: precompiling Clojure core sources in Ant build script

2008-12-10 Thread Bill Clementson
protocol at > this point? > -Matt > > On Dec 9, 11:03 pm, "Bill Clementson" <[EMAIL PROTECTED]> wrote: >> Hi Matt, >> >> >> >> On Tue, Dec 9, 2008 at 6:43 PM, MattyDub <[EMAIL PROTECTED]> wrote: >> >> > I did an 'svn upd

Re: Patch: precompiling Clojure core sources in Ant build script

2008-12-09 Thread Bill Clementson
Hi Matt, On Tue, Dec 9, 2008 at 6:43 PM, MattyDub <[EMAIL PROTECTED]> wrote: > > I did an 'svn update' on my clojure (I'm now at revision 1149), and > ran ant clean, then ant (the default target). Then I deleted my old > swank-clojure directory, and did a git clone of > git://github.com/jochu/s

Re: Patch: precompiling Clojure core sources in Ant build script

2008-12-09 Thread Bill Clementson
Hi Matt, On Tue, Dec 9, 2008 at 4:15 PM, MattyDub <[EMAIL PROTECTED]> wrote: > > I recently tried M-. for the first time with clojure + SLIME and it > broke for me (with a "Lisp error: (error "Synchronous Lisp Evaluation > aborted.")"); other parts of SLIME work (e.g., C-M-x, or C-x C-e), but > t

Re: Understanding SLIME blog post

2008-12-09 Thread Bill Clementson
Hi Tom, On Tue, Dec 9, 2008 at 12:28 PM, Tom Emerson <[EMAIL PROTECTED]> wrote: > > Nice post as always, Bill. Thanks. :) > One thing I add to my .emacs for SLIME/Clojure is the following: > > (global-set-key "\C-cs" 'slime-selector) > (def-slime-selector-method ?l > "most recently visited clo

Re: Working combination of .emacs, Aquamacs, swank-clojure, clojure-mode?

2008-12-08 Thread Bill Clementson
On Mon, Dec 8, 2008 at 4:29 PM, mosi <[EMAIL PROTECTED]> wrote: > thank you for helping the beginners like me with the setup of emacs, > slime and clojure. > I tried first the official method described elsewhere on this forum - > ubuntu linux instructions. > Unsuccessful. > Following your instruct

Re: Emacs / Slime questions

2008-12-07 Thread Bill Clementson
Hi Mark, I don't use Clojure Box or Windows; however, your questions relate mostly to Emacs/SLIME, so I've answered the ones I could below. Incidentally, all of these answers could have been found by reading the SLIME and/or Emacs documentation. On Sun, Dec 7, 2008 at 11:45 AM, Mark Engelberg <[

Re: Clojure Blogs | Yahoo Pipes | Clojure Pipe

2008-12-07 Thread Bill Clementson
Hi Stuart, On Sun, Dec 7, 2008 at 6:51 AM, Stuart Halloway <[EMAIL PROTECTED]> wrote: > Cool idea. All my posts are tagged "clojure" on our blog, if that helps: > > http://blog.thinkrelevance.com/tags/clojure The pipe doesn't check whether the post is tagged or not, so long as it contains the wo

Re: My Clojure Emacs Setup (I'll show mine if you show yours)

2008-12-06 Thread Bill Clementson
On Fri, Dec 5, 2008 at 5:23 PM, Mon Key <[EMAIL PROTECTED]> wrote: > > Nice blog entry :) Thanks! :) > My setup tends to mirror yours esp. as I've culled most of it from > your blog over the years... > Most of my startup scripts are modified versions of those you've > shared elsewhere. Glad you

Re: Clojure Blogs | Yahoo Pipes | Clojure Pipe

2008-12-06 Thread Bill Clementson
On Sat, Dec 6, 2008 at 2:11 PM, Randall R Schulz <[EMAIL PROTECTED]> wrote: > > On Saturday 06 December 2008 13:24, bc wrote: >> Hi all, >> >> A lot of people are writing Clojure-related blog posts; however, I am >> often only interested in the Clojure posts they do and not the other >> posts. The

Re: Clojure Blogs | Yahoo Pipes | Clojure Pipe

2008-12-06 Thread Bill Clementson
On Sat, Dec 6, 2008 at 2:42 PM, Chouser <[EMAIL PROTECTED]> wrote: > > On Sat, Dec 6, 2008 at 4:24 PM, bc <[EMAIL PROTECTED]> wrote: >> >> A lot of people are writing Clojure-related blog posts; however, I am >> often only interested in the Clojure posts they do and not the other >> posts. > > Tha

Re: Clojure could be to Concurrency-Oriented Programming what Java was to OOP

2008-12-03 Thread Bill Clementson
nd different threading advances), his quote "Concurrency is the next major revolution in how we write software" was made in the context of an overview of concurrency in general. In any case, he was probably using the "all-encompassing" definition of concurrency (which is

Re: SVN or release?

2008-11-30 Thread Bill Clementson
cvs -d :pserver:anonymous:[EMAIL PROTECTED]:/project/slime/cvsroot co slime cd clojure/trunk ant cd - cd clojure-contrib/trunk ant -- Bill Clementson --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure"

Re: What's in *your* user.clj?

2008-11-20 Thread Bill Clementson
On Thu, Nov 20, 2008 at 12:27 PM, Chouser <[EMAIL PROTECTED]> wrote: > > On Thu, Nov 20, 2008 at 2:46 PM, bc <[EMAIL PROTECTED]> wrote: >> >> Very nice! However, shouldn't the modification to *print-length* be >> inside a binding - e.g.: > > Oh, no, those are two independent settings. 'show' is n

Re: clojure slime

2008-11-18 Thread Bill Clementson
On Tue, Nov 18, 2008 at 5:01 PM, islon <[EMAIL PROTECTED]> wrote: > > I checkouted the last clojure from svn, swank-clojure and clojure-mode > too. > When I start slime it give me the following errors: > > Clojure > user=> (add-classpath "file:home/islon/opt/swank-clojure/") > nil > user=> > (

Re: Working combination of .emacs, Aquamacs, swank-clojure, clojure-mode?

2008-11-18 Thread Bill Clementson
rver -cp /Users/bc/lisp/clojure/clojure/trunk/clojure.jar clojure.lang.Repl") (pushnew "/Users/bc/lisp/clojure/clojure-mode" load-path (require 'clojure-auto) 5. Restart Emacs. Load a clojure (clj) file in a buffer, press C-c C-z to get a repl. That is far simpler to ge

Re: Working combination of .emacs, Aquamacs, swank-clojure, clojure-mode?

2008-11-17 Thread Bill Clementson
n run-clojure () "Starts clojure in Slime" (interactive) (slime 'clojure)) (global-set-key [f5] 'run-clojure) (global-set-key [(control f11)] 'slime-selector) (add-hook 'slime-connected-hook 'slime-redirect-inferior-output) 8. Restart Aquamacs and press F

Re: slime fu

2008-11-17 Thread Bill Clementson
> --Darren > > > On Nov 17, 11:42 am, "Bill Clementson" <[EMAIL PROTECTED]> wrote: >> You could add the following to your .emacs file: >> >> (add-hook 'slime-mode-hook 'slime-redirect-inferior-output) >> >> -- >> Bill Clemen

Re: slime fu

2008-11-17 Thread Bill Clementson
You could add the following to your .emacs file: (add-hook 'slime-mode-hook 'slime-redirect-inferior-output) -- Bill Clementson On Mon, Nov 17, 2008 at 11:31 AM, Stuart Halloway <[EMAIL PROTECTED]> wrote: > > Is there are way to make (slime-redirect-inferior-outpu

Re: Stupid Newbie Question-- Auto Indenting in SLIME -- Fixed

2008-11-16 Thread Bill Clementson
Hi Peter, On Sun, Nov 16, 2008 at 11:40 AM, Peter Wolf <[EMAIL PROTECTED]> wrote: > > This is for the other NOOBs... > > Apparently to use SLIME with Clojure, you need to install a Common Lisp. This is not correct. You don't need to install a Common Lisp in order to use SLIME with Clojure. > I

Re: Newbie: cannot get slime to work

2008-11-15 Thread Bill Clementson
namespace differences from earlier versions, older clojure-swank installs won't work with it (and vice versa). Try blowing away clojure, clojure-contrib, and clojure-swank and grabbing the latest git/svn versions of each and re-building everything. After building, you'll also need to u

Re: Programming Clojure beta book now available

2008-11-05 Thread Bill Clementson
/bc.tech.coop/blog/081105.html >> >> Congratulations Stuart, I've bought the combo package and am looking >> forward to reading the book and following progress as you flesh out >> material in the remaining chapters! >> >> -- >> Bill Clementson >>

Re: Not Your Daddy's Namespaces

2008-11-02 Thread Bill Clementson
Hi Michael, On Sat, Nov 1, 2008 at 6:24 AM, Michael Wood <[EMAIL PROTECTED]> wrote: > > Hi > > On Wed, Oct 29, 2008 at 6:23 PM, bc <[EMAIL PROTECTED]> wrote: >> >> Hi all, >> >> I've posted a new article on my blog about Clojure Namespaces: >> http://bc.tech.coop/blog/081029.html >> >> I would ap

Re: Not Your Daddy's Namespaces

2008-10-29 Thread Bill Clementson
On Wed, Oct 29, 2008 at 1:20 PM, Rich Hickey <[EMAIL PROTECTED]> wrote: > > > > On Oct 29, 2:03 pm, "Bill Clementson" <[EMAIL PROTECTED]> wrote: >> Hi Stuart, >> >> Thanks, that's good to know - I didn't realize the ns macro did that!

Re: Not Your Daddy's Namespaces

2008-10-29 Thread Bill Clementson
Hi Stuart, Thanks, that's good to know - I didn't realize the ns macro did that! I just had a look at the docstring for ns: "Sets *ns* to the namespace named by name (unevaluated), creating it if needed. references can be zero or more of: (:refer-clojure ...) (:require ...) (:use ...) (:imp

Re: Using a Java Debugger with Clojure

2008-10-28 Thread Bill Clementson
Hi Peter, On Tue, Oct 28, 2008 at 11:27 AM, Peter Wolf <[EMAIL PROTECTED]> wrote: > > Hello all, > > I am new to Clojure, but not Java or LISP (I used to work at LMI). > > I am considering a project written in a mixture of Clojure, Java and > Groovy. Clojure for the concurrent inner loop. Groov

Re: idiomatic Clojure for agents?

2008-10-28 Thread Bill Clementson
t;>> @a2))}) >>> agents >> >> I've not gotten around to playing with the concurrency features of >> Clojure yet, so I'm just commenting "theoretically" on your code. In >> "guess-pi-agent", you use &quo

Re: idiomatic Clojure for agents?

2008-10-28 Thread Bill Clementson
s "dies", won't your code wait forever? I would think that it would be preferable to use "await-for" (with a timeout) so that the result can still be guessed based on the samples that have come back from the other agents. If you plan to use a variation of this code in

Re: Idiomatic Clojure code?

2008-10-27 Thread Bill Clementson
On Mon, Oct 27, 2008 at 4:06 PM, Rich Hickey <[EMAIL PROTECTED]> wrote: > > > > On Oct 27, 3:15 pm, "Bill Clementson" <[EMAIL PROTECTED]> wrote: >> On Mon, Oct 27, 2008 at 11:31 AM, Rich Hickey <[EMAIL PROTECTED]> wrote: >> >> > On

Re: Idiomatic Clojure code?

2008-10-27 Thread Bill Clementson
On Mon, Oct 27, 2008 at 11:31 AM, Rich Hickey <[EMAIL PROTECTED]> wrote: > > > > On Oct 27, 12:04 pm, "Bill Clementson" <[EMAIL PROTECTED]> wrote: >> Hi Chouser >> >> On Mon, Oct 27, 2008 at 8:46 AM, Chouser <[EMAIL PROTECTED]> wrote:

Re: Idiomatic Clojure code?

2008-10-27 Thread Bill Clementson
Hi Chouser On Mon, Oct 27, 2008 at 8:46 AM, Chouser <[EMAIL PROTECTED]> wrote: > > I think it's generally better to use = instead of .equals for > equality, unless you have a specific reason to not use = (which I > don't think is the case here). Only that it allowed me to talk about Java interop

Re: Idiomatic Clojure code?

2008-10-27 Thread Bill Clementson
Hi Stuart, Thanks, that's a nice alternative approach! Bill On Mon, Oct 27, 2008 at 8:12 AM, Stuart Halloway <[EMAIL PROTECTED]> wrote: > > Hi Bill, > > You could do something like this: > > (defn seq-xor-2-seqs > "Returns the unique values that are in one sequence but not the > other." > [

Re: Debugging with JSwat

2008-10-24 Thread Bill Clementson
On Fri, Oct 24, 2008 at 10:31 AM, Craig Andera <[EMAIL PROTECTED]> wrote: > >>> It's very likely/nearly certain I'm still doing something wrong - I >>> appreciate the help. > > Indeed it was me: everything started working as soon as I made sure my > .clj files were in CLASSPATH the way require des

Re: Debugging with JSwat

2008-10-24 Thread Bill Clementson
On Fri, Oct 24, 2008 at 8:16 AM, Craig Andera <[EMAIL PROTECTED]> wrote: > >> No, that's not enough. You didn't specify the port that you want to >> connect to JSwat on. add "address=" (or something similar) to this >> to specify which port you want to use. In my blog example, I'm using >> "88

Re: Debugging with JSwat

2008-10-24 Thread Bill Clementson
. In JSwat, you should see that the breakpoint has been hit and >> program execution is paused > > Nope. :p > > Fortunately I've since solved the problem I originally wanted the > debugger for (yay REPL), but it still would be nice to get this to > work... If you do the

Re: Debugging with JSwat

2008-10-24 Thread Bill Clementson
JSwat, open the same Clojure source file you loaded in step #2 and add a breakpoint (you can just click on the source line#) - note that you can only add breakpoints to lines in a defn, not lines in a defmacro definition 5. In the Clojure repl evaluate a form that will call the function that has your bre