Re: merits of Lisp vs Python
- From: Jon Harrop <jon@xxxxxxxxxxxxxxxxx>
- Date: Tue, 12 Dec 2006 15:47:49 +0000
André Thieme wrote:
Jon Harrop schrieb:
That is already a lot more than a "couple of macros" and it is still a
long way from the functionality provided by the pattern matchers bundled
with any of the languages I listed.
A complete pattern matcher will be several screens full of code, because
it really isn't the easiest thing to do.
The pattern matchers in ML compilers are thousands of lines of code, yes.
The good thing is that it can
be added to lisp as a library, without changing the sources to the
compiler.
You can get the semantics but not the performance because ML pattern
matchers can leverage the compiler's internal run-time representations of
values.
I don't know how easy it would be to add a macro system to ML
from inside the system...
You can run camlp4 interactively or as a preprocessor for compiled code.
--
Dr Jon D Harrop, Flying Frog Consultancy
Objective CAML for Scientists
http://www.ffconsultancy.com/products/ocaml_for_scientists/index.html?usenet
.
- Follow-Ups:
- Re: merits of Lisp vs Python
- From: André Thieme
- Re: merits of Lisp vs Python
- References:
- Re: merits of Lisp vs Python
- From: Brian Vanderford
- Re: merits of Lisp vs Python
- From: Jon Harrop
- Re: merits of Lisp vs Python
- From: André Thieme
- Re: merits of Lisp vs Python
- Prev by Date: Re: the GUI question
- Next by Date: Re: the GUI question
- Previous by thread: Re: merits of Lisp vs Python
- Next by thread: Re: merits of Lisp vs Python
- Index(es):
Relevant Pages
|