Re: Lisp's QUOTE and Mathematica's "Hold"
- From: Peter Seibel <peter@xxxxxxxxxxxxxxx>
- Date: Sun, 21 Aug 2005 22:52:05 GMT
Jon Harrop <usenet@xxxxxxxxxxxxxx> writes:
> Richard Fateman wrote:
>> Mathematica doesn't need or use macros, and neither does a computer
>> algebra system written in Lisp, simulating Mathematica.
>
> Not macros, functions mapping ASTs to ASTs. They are the core of
> Mathematica and a language that provided this functionality clearly
> and efficiently would be of great use in this kind of work.
Then you should check out Lisp. Macros are interesting in this context
insofar as they are an *example* of a part of Lisp that depends on the
ability to write code in Lisp that does AST->AST transformations.[1]
But ultimately macros are for producing Lisp code. If you just want
to manipulate arbitrary ASTs and/or if you ultimately want to produce
some other form of output (such as code in another language or machine
code or typeset math) then these Lisp features are what you should be
looking at:
- The built-in symbol data type and packages.
- The reader.
- The printer.
- DESTRUCTURING-BIND.
- The many built-in functions for manipulating trees built out of
cons cells.
and ... wait for it ...
- QUOTE.
-Peter
--
Peter Seibel * peter@xxxxxxxxxxxxxxx
Gigamonkeys Consulting * http://www.gigamonkeys.com/
Practical Common Lisp * http://www.gigamonkeys.com/book/
.
- Follow-Ups:
- Re: Lisp's QUOTE and Mathematica's "Hold"
- From: Jon Harrop
- Re: Lisp's QUOTE and Mathematica's "Hold"
- References:
- Very poor Lisp performance
- From: Jon Harrop
- Re: Very poor Lisp performance
- From: Jon Harrop
- Re: Very poor Lisp performance
- From: Ulrich Hobelmann
- Re: Very poor Lisp performance
- From: Jon Harrop
- Re: Very poor Lisp performance
- From: Brian Downing
- Re: Lisp's QUOTE and Mathematica's "Hold"
- From: Jon Harrop
- Re: Lisp's QUOTE and Mathematica's "Hold"
- From: Nathan Baum
- Re: Lisp's QUOTE and Mathematica's "Hold"
- From: Jon Harrop
- Re: Lisp's QUOTE and Mathematica's "Hold"
- From: Nathan Baum
- Re: Lisp's QUOTE and Mathematica's "Hold"
- From: Jon Harrop
- Re: Lisp's QUOTE and Mathematica's "Hold"
- From: Nathan Baum
- Re: Lisp's QUOTE and Mathematica's "Hold"
- From: Jon Harrop
- Re: Lisp's QUOTE and Mathematica's "Hold"
- From: Nathan Baum
- Re: Lisp's QUOTE and Mathematica's "Hold"
- From: Jon Harrop
- Re: Lisp's QUOTE and Mathematica's "Hold"
- From: Nathan Baum
- Re: Lisp's QUOTE and Mathematica's "Hold"
- From: Jon Harrop
- Re: Lisp's QUOTE and Mathematica's "Hold"
- From: Richard Fateman
- Re: Lisp's QUOTE and Mathematica's "Hold"
- From: Jon Harrop
- Very poor Lisp performance
- Prev by Date: and vs. and (newbie question)
- Next by Date: Re: and vs. and (newbie question)
- Previous by thread: Re: Lisp's QUOTE and Mathematica's "Hold"
- Next by thread: Re: Lisp's QUOTE and Mathematica's "Hold"
- Index(es):
Relevant Pages
|