Re: merits of Lisp vs Python



On Sun, 10 Dec 2006 09:16:35 +0100, Jon Harrop <jon@xxxxxxxxxxxxxxxxx> wrote:

Wolfram Fenske wrote:
But seriously... All the interesting features that haven't originated from
Lisp (e. g. OO from Smalltalk) could in turn easily be implemented in Lisp
with a couple of macros.

I was under the impression that CLOS was non-trivial to write. There are
many other interesting features that haven't originated from Lisp (e.g.
pattern matching in SML, OCaml, Haskell, F#, Mathematica, ...) that cannot
be implemented easily in Lisp because they are intrinsically complicated.


?! Read you history.
Maxima was developed originally back in the 1960's.
It was the fist algebra system capable of symbolic algebra.
It used pattern matching. And it was written in Lisp.
When Stephen Wolfram wrote Mathematica he had been a developer of
Maxima for several years. This is where he learnt the tools of
the trade including how pattern matching worked.
Well the code is open-source now so why don't you just take a look
at how this can be achieved in Lisp.

http://maxima.sourceforge.net/download.shtml

OK so you would probably want a library instead of hard-coding it
every time..

"Paradigms in AI Programming" (PAIP) by Peder Norvig,
or "ANSI Common Lisp" by Paul Graham provide examples of this.
(With source code freely available))

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
.



Relevant Pages

  • Re: SBCL is now faster than Java, as fast as Ocaml, and getting better
    ... what MLish languages do in this case. ... If you are trying to compare my OCaml code with your Lisp translation then ... Lispers not only fail to understand the benefits of pattern matching ... but it is a Java extension just much as Clojure ...
    (comp.lang.lisp)
  • Re: shootout: implementing an interpreter for a simple procedural language Minim
    ... Markus, I've already KF'd you, because I find your posts misleading ... Jon didn't hype his book in this thread. ... >> comparisons that are unfairly biased against Lisp, ... > libraries in Lisp and thinks that pattern matching belongs into ...
    (comp.lang.lisp)
  • Re: Redundant match clauses (Re: Which programming language is better to start)
    ... pattern matching as an example on a thread about pattern matching was ... You could use an ML compiler to compile your Lisp when it happens to be ML, ... to optimise as well as an ML compiler?". ...
    (comp.lang.functional)
  • Re: SMLs patterns
    ... the embedded OCaml code is statically type checked and the AST ... the ML creators did not forget to add pattern matching. ... >>> but you can add pattern matching to Lisp with libraries ... > add to SML/O'Caml without hacking compiler? ...
    (comp.lang.functional)
  • Re: Parallel Common-Lisp with at least 64 processors?
    ... Mathematica has both pattern matching and easy metaprogramming. ... next generation Lisp also bundle both? ... would need implementation level support. ... matching libraries and the ability to Greenspun their own. ...
    (comp.lang.lisp)