Re: lookup-def

[email protected] Tue, 19 Oct 2004 11:49:25 -0700 (PDT)
Newsgroups gmane.lisp.scheme.ssax-sxml
Message-ID <[email protected]>
Hello!

	I have played a bit with lookup-def: I have implemented it in
Bigloo, and made changes to various SXML-related files. The changes
turned out minimal. I have run all the battery of tests, and nothing
got broken, as far as I could see. So, now I have to implement
lookup-def for all other Scheme systems.

> It's stupid, but I feel uncomfortable with the fact that lookup-def is a
> syntax. ... and it doesn't have a canonical compiler, which makes
> syncase slow to load and makes macros less advantageous speed-wise.

I guess Dan Friedman taught me to like macros more. In Kanren, the
logic programming system, most of the things are macros. Some of them
are quite complex, while some other are trivial. Dan Friedman just
doesn't like `apply' and functions with multiple arguments.

BTW, the Bigloo version of lookup-def is implemented as a _low-level_
macro. Bigloo handles them much better than syntax-rules. I will test
that on Gambit too. The implementations for SCM, Petite, Scheme48,
etc. will use syntax-rules, of course. So, you can pick and choose
which implementation of lookup-def you like. The interface is the same.

	Cheers,
	Oleg


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl