Related articles |
---|
[14 earlier articles] |
Re: The compilation approach in modern languages hannah@schlund.de (2005-02-18) |
Re: The compilation approach in modern languages boldyrev@cgitftp.uiggm.nsc.ru (Ivan Boldyrev) (2005-02-18) |
Re: The compilation approach in modern languages jle@ural.owlnet.rice.edu (2005-02-20) |
Re: The compilation approach in modern languages gneuner2@comcast.net (George Neuner) (2005-02-28) |
Re: The compilation approach in modern languages anton@mips.complang.tuwien.ac.at (2005-02-28) |
Re: The compilation approach in modern languages gneuner2@comcast.net (George Neuner) (2005-03-01) |
Re: The compilation approach in modern languages boldyrev@cgitftp.uiggm.nsc.ru (Ivan Boldyrev) (2005-03-04) |
Re: The compilation approach in modern languages anton@mips.complang.tuwien.ac.at (2005-03-05) |
Re: The compilation approach in modern languages hannah@schlund.de (2005-05-18) |
From: | Ivan Boldyrev <boldyrev@cgitftp.uiggm.nsc.ru> |
Newsgroups: | comp.compilers |
Date: | 4 Mar 2005 14:11:40 -0500 |
Organization: | this field is intentionally left blank |
References: | 05-02-053 05-02-056 05-02-065 05-02-075 05-02-082 05-02-101 |
Keywords: | Lisp, design |
Posted-Date: | 04 Mar 2005 14:11:40 EST |
On 9034 day of my life Anton Ertl wrote:
>>Perhaps, (Common) Lisp/Scheme is different from them because
>>COMPILE-FILE is *standard* function.
>
> Hmm, COMPILE-FILE is not quite what I consider compilation at
> run-time. Even in C I can do system("cc ..."); ok, some people have
> used that in combination with dlopen/dlsym to achieve a kind of
> run-time compilation, but it is relatively cumbersome.
... And unportable. For example, default MS Windows installation has
no C compiler. But every standard Lisp system has compiler.
Lisp has COMPILE function that compiles other function. And you can
convert properly created list to compiled function:
(defun compile-at-runtime (the-list)
(compile nil (coerce the-list 'function)))
> What I am thinking of when I hear Lisp and run-time compilation are
> things like macros and back-quote.
Macros and back-quotes are processed at compile-time.
--
Ivan Boldyrev
Return to the
comp.compilers page.
Search the
comp.compilers archives again.