From: Eitan M. <ei...@CS...> - 2002-07-05 02:44:53
|
Thanks for all the help and information. I'm coming out of the common lisp world (aka let and gensym everywhere) so the macro by example and hygienics is new to me (but I like what I see). As for the performance issues - I'm using the macros to create an embedded scripting language. The idea is that someone writes: (script scriptName args blah blah blah) and script is a macro that in the end results in (set! scriptName (lambda args blah blah blah)) So, correct me if I'm wrong, but performance shouldn't be an issue for me. psyntax may slow the script definition process but in the end I have regular s-expressions compiled into scheme pcode (which could then be compiled once more by the java compiler). Sounds reasonable right? Eitan > The MBE version is smaller, than the psyntax one, and from email from Dori, > i believe MBE is not hygenic. If you want to use a hygenic macro system, > i'd go with the psyntax one. Peter, Tim and i are familiar with the "hurt > yourself" Lisp style of macros, see Paul Graham's book "On Lisp", which has > 14 chapters on macros. I'd be happy to support Jscheme users familiar with > hygenic macros. Psyntax does seem to slow things down, i think because it > is basically a giant letrec. So it seems to expose a Jscheme performance > issue we should look into. > > At 07:04 PM 7/3/2002, Derek Upham wrote: > >I've noticed that the MBE implementation doesn't support some constructs > >that the EOPL implementation does (matching literals and variables in deep > >trees, as I recall). But it's probably faster to load. > > > >Derek > > > >-----Original Message----- > >From: Ken Anderson [mailto:kan...@bb...] > >Sent: Wednesday, July 03, 2002 1:16 PM > >To: Eitan Mendelowitz; jsc...@li... > >Subject: Re: [Jscheme-devel] jscheme mbe package > > > > > >There is a working version in > >src/elf/mbe.scm > > > >There is also a more complete hygenic macro package in > > > >./src/elf/eopl2/jscheme > > > >k > > > >At 03:32 PM 7/3/2002, Eitan Mendelowitz wrote: > > >Hi, I'm trying to write a scripting language in jscheme and I am making > > >heavy use of the macro facilities. > > > > > >Norvig writes on his (outdated) Jscheme page: > > > Dorai Sitaram (ds...@gt...) kindly contributed a R5RS compliant > > > macro-by-example implementation that works in Jscheme > > > > > >and provides the following link: > > > http://www.norvig.com/jscheme/mbe.scm > > > > > >The mbe library ALMOST works with the current version of > > >jscheme. Unfortunatly > > >it fails when using ellipsis. > > > > > >I was wondering if you could suggest any changes (either to the mbe > > >package or to the jscheme engine) to regain this functionality. > > > > > >Thank you, > > > > > >Eitan > > >ei...@cs... > > > > > > > > > > > > > > > > > >------------------------------------------------------- > > >This sf.net email is sponsored by:ThinkGeek > > >No, I will not fix your computer. > > >http://thinkgeek.com/sf > > >_______________________________________________ > > >Jscheme-devel mailing list > > >Jsc...@li... > > >https://lists.sourceforge.net/lists/listinfo/jscheme-devel > > > > > > > >------------------------------------------------------- > >This sf.net email is sponsored by:ThinkGeek > >No, I will not fix your computer. > >http://thinkgeek.com/sf > >_______________________________________________ > >Jscheme-devel mailing list > >Jsc...@li... > >https://lists.sourceforge.net/lists/listinfo/jscheme-devel > > > > > >------------------------------------------------------- > >This sf.net email is sponsored by:ThinkGeek > >No, I will not fix your computer. > >http://thinkgeek.com/sf > >_______________________________________________ > >Jscheme-devel mailing list > >Jsc...@li... > >https://lists.sourceforge.net/lists/listinfo/jscheme-devel > |