William Harold Newman <william.newman@...> writes:
> I was wondering whether we should try to support tiny hacks in
> contrib/, and what'd be the best way to do it.
> This seems like a fairly plausible contrib/ hack, since as far as I
> can see it can't be done portably (short of reimplementing the pretty
> printer from scratch, anyway) and it's reasonably self-contained. But
> while the overhead in making it a separate contrib file and
> "SB-INTERNEDP" package isn't totally impractical, it does seem
> surprisingly large. Would it be worth reducing it a little, e.g. by
> defining an "SB-GRAB-BAG" or "SB-MINIM-OPI" package for extensions
> as small as this?
OK, here's my (somewhat belated) take on this, which is that you're
right, and the overhead for contrib for this kind of thing is indeed
large. I suspect that what that means is that contrib isn't the right
place for this, because the problem with a GRAB-BAG kind of contrib is
that, well, it looks like several peoples' init files, all mashed up
That does leave the question of how one distributes a microextension,
then, and maybe the best way might be to do just what you did here --
post it to the list, saying "this is something that I use for doing
<X>; would anyone else find it useful?" If there's sufficient
enthusiasm, then the details of the interface can be nailed down (=E0 la
<http://www.cliki.net/Common%20Lisp%20Utilities> or on the ALU cliki,
or by some other mechanism), and then a simple download link for a
reference implementation (even if it only happens to work on SBCL)
would be its means of distribution.
The other question that this raises, of course, is "how big must
something be for it to be a contrib?" Obviously this is mostly a
matter of taste -- if it seems like too much effort to provide a
DEFPACKAGE, tests, and so on, it probably isn't big enough :-)
Does that make sense?
http://www-jcsu.jesus.cam.ac.uk/~csr21/ +44 1223 510 299/+44 7729 383=
(set-pprint-dispatch 'number (lambda (s o) (declare (special b)) (format s =
(defvar b "~&Just another Lisp hacker~%") (pprint #36rJesusCollegeCambri=