patch: bit-count function

2009-04-03 Thread Alec Berryman
The Clojure bit functions do not currently provide a way to query the count of set bits in a number. Attached is a small patch to implement this feature. I've found it useful for implementing an immutable bit array in Clojure. I sent my CA in earlier this week. --~--~-~--~~-

Re: Clojure & Slime, how to jump to a def/defn?

2009-02-23 Thread Alec Berryman
David Nolen on 2009-02-23 16:58:40 -0500: > Is this supported yet? M-. is supposed to handle this, but I get an error > when I try. It works for me with Clojure sources (for example, M-. on rest), even if they're in jars, but not with applications I've compiled through load-file, slime-compile-d

Re: rlwap and SLIME issue

2008-12-23 Thread Alec Berryman
p200 on 2008-12-23 03:33:52 -0800: > I am having an issue trying to get rlwrap working within my emacs/ > swank-slime. You don't need rlwrap with SLIME; SLIME has all the features you want from rlwrap. rlwrap also interacts badly with it, as you've seen. GNU Emacs sets an $EMACS environment va

into should take multiple from arguments

2008-11-27 Thread Alec Berryman
I've found myself writing (reduce into coll [coll1 coll2 coll3]) a few times. It would be nice to instead write (into coll coll1 coll2 coll3), like (+ 1 2 3) and other similar forms. I've attached a trivial patch that works for me. --~--~-~--~~~---~--~~ You rece

Re: Concerned about Clojure's license choice.

2008-11-04 Thread Alec Berryman
Matthias Benkard on 2008-11-04 08:37:08 -0800: > The CPL doesn't allow me to choose the GPL. Instead, it forces me to > apply a CPL-compatible, GPL-like license -- a thing which may or may > not currently exist, but which will certainly make my library useless > to almost everybody because witho

swank-clojure: slime-compile-defun doesn't work

2008-10-04 Thread Alec Berryman
I'm using SLIME 2008-09-28 and a swank-clojure from git up-to-date as of today. It's generally working well. When I place the point anywhere in or around a form and use C-c C-c (slime-compile-defun), I see "Evaluation aborted" in my minibuffer and this in *slime-events*: (:emacs-rex (swank