Conditions and *PRINT-READABLY*

2015-09-04 Thread Edi Weitz
Hi everybody! With the code at the end of this mail I would have expected an outcome similar to this one R: T , E: T - [REFUSED TO PRINT] R: T , E: NIL - [REFUSED TO PRINT] R: NIL, E: T - # R: NIL, E: NIL - My condition occured. because the standard says that "if *PRINT-READABLY* i

Re: PRINT-OBJECT for built-in classes

2015-08-29 Thread Edi Weitz
Thomas, That was the piece of the puzzle I had missed. Thanks, Edi. On Sat, Aug 29, 2015 at 12:04 PM, Thomas Burdick wrote: > Hi Edi, > > That certainly reads to me as though the intent is for print-object to be > the decision point (at least in cases where *print-pretty* is false). > > Howe

PRINT-OBJECT for built-in classes

2015-08-29 Thread Edi Weitz
The following "works" in three different CL implementations I tried while in three others the way complex numbers are printed doesn't change. ? (defmethod print-object ((obj complex) stream) (format stream "#< ~A + ~A * I >" (realpart obj) (imagpart obj))) # ? #c(1 1) #< 1 + 1

Re: Caching of effective methods in custom method combinations

2015-07-21 Thread Edi Weitz
On Tue, Jul 21, 2015 at 10:30 AM, Didier Verna wrote: > http://www.didierverna.net/blog/index.php?post/2013/08/16/Lisp-Corner-Cases%3A-Method-Combinations Ouch!

Caching of effective methods in custom method combinations

2015-07-21 Thread Edi Weitz
Hi everybody, Here's some behavior I see on SBCL as well as LispWorks, so I'm assuming for now they're right in doing so. My question would be why they are. I start with the following code which I compile and load: (defvar *current-qualifiers* '(:a :b :c)) (defi

Re: Do symbols need to be EQ?

2015-07-03 Thread Edi Weitz
On Fri, Jul 3, 2015 at 11:02 AM, Alessio Stalla wrote: > Package = map from symbol name to symbol object. > INTERN ~= (or (gethash ...) (setf (gethash ...))) > UNINTERN ~= remhash I would consider that to be an implementation detail. As Anton said, this is mostly about saving space and time. It

Re: Do symbols need to be EQ?

2015-07-03 Thread Edi Weitz
Perhaps the excerpt below (from a fresh LW image) makes more obvious what my "philosophical problem" is. I have redacted the output of DISASSEMBLE to only show the relevant parts. It shows that EQ is essentially just one simple comparison with a machine word (which is what I expected). It also s

Re: Do symbols need to be EQ?

2015-07-03 Thread Edi Weitz
On Fri, Jul 3, 2015 at 10:14 AM, Anton Vodonosov wrote: > This doesn't break my PRINT-VALUE function, because the contract > of my function is not to print lower case value when MODE is a symbols > named "MYPKG:LOWCASE", but when MODE is exactly the symbol referred to > in PRINT-VALUE. I think th

Re: Do symbols need to be EQ?

2015-07-03 Thread Edi Weitz
On Fri, Jul 3, 2015 at 10:21 AM, Kenneth Tilton wrote: > EQ, as you adroitly demonstrated, worries about all sorts of things, > including a symbol's package. Which is part of what has me confused. Up until now I would have said that the "problem" of EQ is that it doesn't worry about _enough_ thi

Re: Do symbols need to be EQ?

2015-07-03 Thread Edi Weitz
e the same under EQL." (And maybe some more sentences if necessary.) On Fri, Jul 3, 2015 at 9:16 AM, Anton Vodonosov wrote: > I think the most confusing part is what you mean by "same" symbols. > > 03.07.2015, 10:10, "Edi Weitz" : >> Just out of curiosity an

Do symbols need to be EQ?

2015-07-03 Thread Edi Weitz
Just out of curiosity and without any relevance in practise: Is there one place in the standard where it is explicitly said that two symbols which are the "same" symbol must be "identical"? I know that there are a couple of examples where this is implied, but formally the examples aren't part of

Re: cl-ppcre:split question

2015-07-02 Thread Edi Weitz
Not with SPLIT, but how about this? CL-USER 1 > (ppcre:all-matches-as-strings "\\S+" " foo bar baz frob ") ("foo" "bar" "baz" "frob") On Thu, Jul 2, 2015 at 9:16 PM, Mark H. David wrote: > The examples for cl-ppcre:split here > > http://weitz.de/cl-ppcre/#split > > include this tempting

[pro] Default safety level and specialized arrays

2015-03-10 Thread Edi Weitz
Hi everybody, After rummaging around in the HyperSpec and various implementation manuals I came to the following conclusion: 1. The standard doesn't prescribe such thing as a default safety level for CL implementations and there's no portable way to figure out the safety level of the global envir

Re: [pro] common-lisp.net down...

2013-01-01 Thread Edi Weitz
Happy New Year! It works for me. Cheers, Edi. On Tue, Jan 1, 2013 at 4:35 PM, Pascal Costanza wrote: > Hi, > > Happy new year to you all! > > As the subject line says, common-lisp.net seems to be down. Does anyone here > on the list happen to be able to fix this? > > > Thanx! > > Pascal > > -

Re: [pro] 404 animals

2011-02-03 Thread Edi Weitz
On Thu, Feb 3, 2011 at 8:35 PM, Charles Sullivan wrote: > Has a chameleon been suggested? A lizard: http://normal-null.de/lisp_logo.php Edi. ___ pro mailing list pro@common-lisp.net http://common-lisp.net/cgi-bin/mailman/listinfo/pro

Re: [pro] User defined format functions

2011-01-25 Thread Edi Weitz
On Tue, Jan 25, 2011 at 6:36 PM, Daniel Weinreb wrote: > I actually can't remember why package prefixes > aren't allowed.  It was a long time ago. They are allowed, aren't they? http://www.lispworks.com/documentation/HyperSpec/Body/22_ced.htm ___ pro

Re: [pro] Learning Lisp the Bump Free Way

2011-01-20 Thread Edi Weitz
On Thu, Jan 20, 2011 at 10:16 PM, Sam Steingold wrote: > I think Franz, Lispworks, ITA et al are vital parts of the "lisp community". > I think the fact that none of them is paying anyone to maintain SLIME, > ALU wiki, common-lisp.net &c > is indicative of understandable but deplorable corporate

Re: [pro] Style issue about predicates

2011-01-14 Thread Edi Weitz
There are lots of functions in the standard which are predicates in that they return generalized booleans but on the other hand return something "useful" if the result is not NIL, e.g. MEMBER or STRING<. I think this is good practice, i.e. return something other than T in case this might make more

Re: [pro] How to interact with a running lisp instance?

2010-12-17 Thread Edi Weitz
On Fri, Dec 17, 2010 at 9:13 PM, Alexandre Rademaker wrote: > This is an old issue! We now have quicklisp! How does Quicklisp solve the problem Gail described? ___ pro mailing list pro@common-lisp.net http://common-lisp.net/cgi-bin/mailman/listinfo/pr

Re: [pro] How to interact with a running lisp instance?

2010-12-17 Thread Edi Weitz
On Fri, Dec 17, 2010 at 8:01 PM, Ala'a Mohammad wrote: > I just want to point to another possibility, however, it's specific to > CMUCL using the remote package > > http://common-lisp.net/project/cmucl/doc/cmu-user/ipc.html Now that you mention it, LispWorks has something similar, albeit a bit mo