Re: Another "gotta be a better way" from <gasp> The Real World of Lisp





Madhu wrote:
* Ken Tilton <a8eXh.149$kT7.54@xxxxxxxxxxxx> :
Well, I was just pointing out that control flow of the programs seemed
to be getting closer, converging in their sequence of operations..

The next question is, Why are they converging? Is it because we are looking at each other's code, or is the problem a strange attractor, drawing everyone to the same code?


[...]

|Currently the standings are:
|1. Kenny (destructive) 11 cons cells
|2. Madhu 18 cons cells
|3. NAllen 31 cons cells
|4. Alan C. 35 cons cells
|5. Kenny (non-destructive) 38 cells

I was not sure how you were getting these numbers.

ACL's time macro.

But since we all
seem to have wasted time on TIMING these things,

Or is this the strange attractor drawing the code in the right direction? The odd thing is that at first the destructive version looked horrific, then it occurred to me to use delete so I would not have to do explicit cdr tweaking, and how the optimized version looks pretty obvious as code goes, more so than the non-destructive version which is supposed to be simpler.

kt

--
http://www.theoryyalgebra.com/

"Algebra is the metaphysics of arithmetic." - John Ray

"As long as algebra is taught in school,
there will be prayer in school." - Cokie Roberts

"Stand firm in your refusal to remain conscious during algebra."
- Fran Lebowitz

"I'm an algebra liar. I figure two good lies make a positive."
- Tim Allen

.