On Mon, 2007-08-27 at 12:08 +0300, Ville-Pertti Keinonen wrote: > On Aug 27, 2007, at 12:08 AM, skaller wrote: > > > On Sun, 2007-08-26 at 12:10 -0700, Erick Tryzelaar wrote: > >> I agree. I did find an allegedly portable scheme pattern matcher > >> here: > >> > >> http://groups.google.com/group/comp.lang.scheme/browse_thread/ > >> thread/45cda01f5609a430/0941234de7112ffd?#0941234de7112ffd
> It seems that the pattern-matcher requires cond-expand to test for > the presence of syntax-case. If you disable the last few forms in > the file (those beginning with cond-expand), it'll give you a half- > functional pattern matcher. Yes, but looking at the code it will be way too slow to use. Felix is using Dypgen (GLR parser) + OCS Scheme for the user actions. At present this combo has gone from Ocamlyacc 5% of all time parsing to around 70% of all time parsing. It's not clear exactly what is taking the time, however about 30% more time is added just by copying the OCS environment each action. Pre-compiling the OCS text reduced the time by only about 5%. Anyhow the point is that any kind of complex Scheme code used regularly in user actions would need to be efficient. Current code using 'car cadr caadddr' is unreadable but probably quite fast. Hard for me to tell, but I guess an Ocaml written 'native' extension would be at least 2x faster than a library solution? -- John Skaller <skaller at users dot sf dot net> Felix, successor to C++: http://felix.sf.net ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Felix-language mailing list Felix-language@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/felix-language