Re: [PATCH] %nil-handling optimization and fixes v1

2009-09-02 Thread Mark H Weaver
Neil Jerram wrote: > FWIW, dropping "lisp_" looks OK, but I'm not sure about dropping > "and_". "scm_is_false_not_nil" feels notably harder to understand > than "scm_is_false_and_not_nil". Yes, I see your point, and I agree. Mark

Re: [PATCH] %nil-handling optimization and fixes v1

2009-09-01 Thread Neil Jerram
Mark H Weaver writes: > I agree that the names are uncomfortably long. We could shorten them > without much loss of clarity by replacing "lisp_nil" with "nil" and > "and_not" with "not", yielding: > > scm_is_false_assume_not_nil scm_is_true_assume_not_nil > scm_is_false_not_nil scm_

Re: [PATCH] %nil-handling optimization and fixes v1

2009-08-30 Thread Mark H Weaver
I wrote: > > I added the following macros, whose names explicitly state how %nil > > should be handled. See the comments in the patch for more information > > about these. > > > > scm_is_false_assume_not_lisp_nil scm_is_true_assume_not_lisp_nil > > scm_is_false_and_not_lisp_nil scm_is_tru

Re: [PATCH] %nil-handling optimization and fixes v1

2009-08-30 Thread Neil Jerram
Neil Jerram writes: > because if we agreed this, some of the changes would be needed, or > wouldn't be needed. :-) I think I meant to say "would be different, or wouldn't be needed". Neil

Re: [PATCH] %nil-handling optimization and fixes v1

2009-08-30 Thread Neil Jerram
Andy Wingo writes: >> scm_is_false_assume_not_lisp_nil scm_is_true_assume_not_lisp_nil >> scm_is_false_and_not_lisp_nil scm_is_true_or_lisp_nil >> scm_is_false_or_lisp_nil scm_is_true_and_not_lisp_nil >> >> scm_is_lisp_false scm_is_lisp_true >> >> scm_is_nu

Re: [PATCH] %nil-handling optimization and fixes v1

2009-08-30 Thread Neil Jerram
So, finally, here we go with these patches. (again! :-)) In summary, they all look great, and I just have a few minor comments (below) on the first one. But I guess we need to decide on your suggestion about > (I still believe that these should be changed to versions that handle > %nil properl

Re: [PATCH] %nil-handling optimization and fixes v1

2009-08-28 Thread Neil Jerram
I'm sorry, I typed the wrong keys and sent this response prematurely. I'll finish off the review and send a complete response later on! Neil Neil Jerram writes: > So, finally, here we go with these patches. > > Mark H Weaver writes: > >> Attached are patches to optimize %nil handling, alo

Re: [PATCH] %nil-handling optimization and fixes v1

2009-08-28 Thread Neil Jerram
So, finally, here we go with these patches. Mark H Weaver writes: > Attached are patches to optimize %nil handling, along with some fixes > to %nil-handling bugs, as I outlined in my recent posts. > > Four patches are attached. The first.patch is the most important, and > is a prerequisite for

Re: [PATCH] %nil-handling optimization and fixes v1

2009-07-30 Thread Neil Jerram
Andy Wingo writes: > Hi Mark, > > This is also not a patch review yet :) > > On Thu 09 Jul 2009 18:11, Mark H Weaver writes: > >> I added the following macros, whose names explicitly state how %nil >> should be handled. See the comments in the patch for more information >> about these. Hi Mark

Re: [PATCH] %nil-handling optimization and fixes v1

2009-07-23 Thread Andy Wingo
Hi Mark, This is also not a patch review yet :) On Thu 09 Jul 2009 18:11, Mark H Weaver writes: > I added the following macros, whose names explicitly state how %nil > should be handled. See the comments in the patch for more information > about these. > > scm_is_false_assume_not_lisp_nil s