On compiling. (Was a way off topic subject)
Chuck Guzis
cclist at sydex.com
Wed Jun 23 16:02:10 CDT 2021
On 6/23/21 1:14 PM, Paul Koning wrote:
> I don't remember the details at this point, but I assume the "execute TECO macro" operation in the Stevens PDP-10 TECO compiler is done in that way. And of course these could keep the compiled code around to reuse if the source string hasn't changed. A modern example of this technique is the regex library in Python, which lets you compile a regex string into a compiled regex object for later use, or lets you perform operations using the regex string directly. The latter form caches a string -> compiled regex cache so doing this in a loop still performs reasonably well.
Could be the case of "what does "compile" mean?" If the meaning is
"reduce to machine language" maybe not. Otherwise, if the meaning is
"interpret", then maybe so.
Consider this paragraph of the tutorial at
http://www.snobol4.org/docs/burks/tutorial/ch7.htm"
--------------------------------------------------------
7.7 RUN-TIME COMPILATION
The two functions described below are among the most esoteric features,
not just of SNOBOL4, but of all programming languages in existence.
While your program is executing, the entire SNOBOL4 compiler is just a
function call away.
-----------------------------------------------------------
So maybe not rendering into machine code, but something else.
--Chuck
More information about the cctech
mailing list