[Maxima] CL arrays
Michel Van den Bergh
michel.vandenbergh at uhasselt.be
Fri Jan 19 06:30:23 CST 2007
> I'm using Python a little now, and its decision to call arrays lists
> drives me nuts. List operations are provided with unknown and unreliable
> performance characteristics. Part of the problem with Python's "list"
> type is that dynamic operations are provided, but the representation is
> a C array; as a result when dynamic operations are used copying with
> resizing occurs under the hood, at great cost. To my mind that makes
> Python a bad choice for any application where predictable performance
> matters at all (not just performance critical tasks).
Oh I see: you are not complaining about arrays but about lists!
Making a list class in python whose instances behave like lisp list
cons time) is easy if you really need that. Its probably not even hard
to hard to
implement a subset of lisp in python. Python is really quite powerful.
More information about the Maxima