suggestion: remove mbox from maxima; minor bug revealed.
Subject: suggestion: remove mbox from maxima; minor bug revealed.
From: Raymond Toy
Date: Wed, 09 Aug 2006 15:26:18 -0400
>>>>> "Stavros" == Stavros Macrakis <macrakis at gmail.com> writes:
Stavros> "much faster"? Not with a half-decent compiler, which translates short
Stavros> memq's to multiple eq's. On the PDP-10 compiler, (memq ... '(a b)) took
Stavros> only two more machine instructions than (eq ... 'a). But then, maybe modern
Stavros> compilers aren't as good.
MEMQ isn't standard so Maxima has it's own version of MEMQ: (member x
list :test #'eq), and it's a not an inline function, so it would be
slow.
But CMUCL (and maybe SBCL) can convert MEMQ to an inlined equivalent.
Ray