From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Robert Uhl Newsgroups: gmane.lisp.guile.user Subject: Re: Stupid module and pregexp questions Date: 29 Apr 2003 22:38:26 -0600 Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: References: <877k9eobcv.fsf@raven.i.defaultvalue.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1051677814 29066 80.91.224.249 (30 Apr 2003 04:43:34 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 30 Apr 2003 04:43:34 +0000 (UTC) Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Apr 30 06:43:33 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19AjRM-0007Yf-00 for ; Wed, 30 Apr 2003 06:43:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19AjPX-00053k-03 for guile-user@m.gmane.org; Wed, 30 Apr 2003 00:41:39 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19AjOr-0004jF-00 for guile-user@gnu.org; Wed, 30 Apr 2003 00:40:57 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19AjOj-0004TU-00 for guile-user@gnu.org; Wed, 30 Apr 2003 00:40:53 -0400 Original-Received: from [66.7.170.6] (helo=latakia.dyndns.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19AjMR-0004Ko-00 for guile-user@gnu.org; Wed, 30 Apr 2003 00:38:27 -0400 Original-Received: (from ruhl@localhost) by latakia.dyndns.org (8.11.6/linuxconf) id h3U4cR126414; Tue, 29 Apr 2003 22:38:27 -0600 X-Authentication-Warning: latakia.dyndns.org: ruhl set sender to ruhl@4dv.net using -f Original-To: guile-user@gnu.org In-Reply-To: Original-Lines: 43 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.2 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: General Guile related discussions List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.user:1877 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:1877 MJ Ray writes: > > > That's useful for some things (when the developer writes the > > regexps), but for others it's not so good, e.g. when the _user_ > > writes the regexps. The user probably wants whatever he's locally > > used to... > > Basic, Extended, Perl, ... this probably is general, not just ours. Granted. But it seems to me that introducing Yet Another Regexp Scheme is not the way to solve things. I'd use the native facility and let scripts be non-portable; hopefully the friction would cause the native libraries to be made more uniform. I'll admit to a touch of sunny optimism, though:-) > > And then, of course, there's the issue of speed. Regexps are used > > for enough processing that IMHO they must be matched by compiled, > > not interpreted, code or they risk being unacceptably slow. [...] > > Compiled code is just interpreted code at a different level, surely? > A good optimisation will often beat dropping down levels, and scheme > allows easier optimisation while avoiding some typical errors. Do the > minimum directly in C, IMHO. Oh, of course. OTOH, one of the things I feel (and I could very well be quite incorrect) is that sometimes folks ignore the constant factors in O() issues. That is, it can very well be that O(n^2) is faster than O(n) when the latter is interpreted and the former compile, for small n. N is often small, which is the problem. Obviously the ideal is for all code to be compiled and run as close to the machine as possible, and obviously Scheme can do that. A guile compiler would go most of the way toward resolving my own objections. The overhead of using a compiled Lisp vs. a compiled C in this day and age is, in most cases, pretty close to negligible. -- Robert Uhl It is the day of Resurrection, let us be radiant for the feast, and let us embrace one another. Let us say: `Brethren,' even to them that hate us, let us forgive all things on the Resurrection, and thus let us cry out: Christ is risen from the dead, trampling down death by death, and on those in the tombs bestowing life. _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user