gcl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gcl-devel] Wanted: repeated expression eliminator


From: Camm Maguire
Subject: [Gcl-devel] Wanted: repeated expression eliminator
Date: 06 Nov 2006 15:54:10 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Greetings!  Just thought I'd post a description of something that
would be useful in the GCL compiler:

Take a fully macroexpanded form, recursively descend looking for
maximal repeated forms (under equalp) at the highest level at which
all referred variables are lexically bound, call some (external) function to
determine if the form is side-effect-free, then if so, replace the
form with `(let ((,sym ,form)) ,@(sublis '((,form . ,sym)) body)).

Anyone know of anything like this already written somewhere?

Take care,
-- 
Camm Maguire                                            address@hidden
==========================================================================
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah




reply via email to

[Prev in Thread] Current Thread [Next in Thread]