Re: something to chat about, lisp and Mathematica for list processing.



Nasser Abbasi wrote:
"Widely recognized as the world's most powerful list manipulation
language, Mathematica ..."

LOL. :-)

Topic for discussion: From only the list processing/manipulation point of
view, and nothing else, what would you consider the
advantages/disadvantages of one over the other?

There are several useful/essential features for list processing:

1. Performance.
2. Well-defined performance.
3. Pattern matching.
4. Tail recursion.

1. Mathematica is very slow.
2. Mathematica doesn't define the performance of most of its operators. Lisp
is slow due to dynamic typing.
3. Lisp doesn't bundle pattern matching and most Lisp implementations of
pattern matchers suck.
4. Neither Lisp nor Mathematica make sufficient assurances about tail
recursion.

So I'd say both languages were quite poor for list processing. I'd recommend
Scheme, Haskell, OCaml or Standard ML.

--
Dr Jon D Harrop, Flying Frog Consultancy
OCaml for Scientists
http://www.ffconsultancy.com/products/ocaml_for_scientists/?usenet
.



Relevant Pages

  • Re: SBCL is now faster than Java, as fast as Ocaml, and getting better
    ... amount to learn from Mathematica because it addressed so many of Lisp's ... What do you think Mathematica can learn from Lisp? ... are overestimating the "language merits" of Mathematica as far as its ... go beyond our discussion of Lisp, MLish and pattern matching. ...
    (comp.lang.lisp)
  • Re: why do you choose LISP?
    ... i like lisp primarily bceause it is a functional lang. ... It is also during the early 1990s, i started to learn programing on my ... during these years i bought Mathematica (because i heard it's the ... I do not have any concrete idea what IS a language specification ...
    (comp.lang.lisp)
  • Re: SBCL is now faster than Java, as fast as Ocaml, and getting better
    ... I think the Lisp community have a huge ... Mathematica is no more Conses deep down. ... extended OCaml's ordinary pattern matching to also support regular ... am going to write a type inferencing engine for CL. ...
    (comp.lang.lisp)
  • Re: Lisp and Scheme with fewer parentheses / Mathematica??
    ... Any dummy, at our level, knew that Mathematica and lisp have different ... programer, even with say 10 years of programing experience, chances ... functional language and one of the oldest language) ...
    (comp.lang.lisp)
  • Re: Lisp and Scheme with fewer parentheses / Mathematica??
    ... programing in Mathematica is like in sense a glorified ... macros system as used in lisp. ... in Mathematica, ... You might not be able to get far using pattern matching alone but you can ...
    (comp.lang.lisp)