From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: stefan Newsgroups: gmane.lisp.guile.devel Subject: Re: fmatch Date: Mon, 17 May 2010 22:08:00 +0200 Message-ID: <201005172208.00094.stefan.tampe@spray.se> References: <201005062239.32992.stefan.tampe@spray.se> <201005092252.01307.stefan.tampe@spray.se> <87aas817si.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1274129270 5090 80.91.229.12 (17 May 2010 20:47:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 17 May 2010 20:47:50 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon May 17 22:47:49 2010 connect(): No such file or directory Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OE7E3-0001Im-Jb for guile-devel@m.gmane.org; Mon, 17 May 2010 22:47:47 +0200 Original-Received: from localhost ([127.0.0.1]:58736 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OE7E3-0006Ta-5w for guile-devel@m.gmane.org; Mon, 17 May 2010 16:47:47 -0400 Original-Received: from [140.186.70.92] (port=52305 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OE7DI-0006El-1W for guile-devel@gnu.org; Mon, 17 May 2010 16:47:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OE7DC-0004zV-Kk for guile-devel@gnu.org; Mon, 17 May 2010 16:46:59 -0400 Original-Received: from spsmtp02oc.mail2world.com ([74.202.142.198]:1740) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OE7DC-0004yk-GP for guile-devel@gnu.org; Mon, 17 May 2010 16:46:54 -0400 Original-Received: from mail pickup service by spsmtp02oc.mail2world.com with Microsoft SMTPSVC; Mon, 17 May 2010 13:46:46 -0700 auth-sender: stefan.tampe@spray.se Original-Received: from 82.182.254.46 unverified ([82.182.254.46]) by spsmtp02oc.mail2world.com with Mail2World SMTP Server; Mon, 17 May 2010 13:46:45 -0700 User-Agent: KMail/1.12.4 (Linux/2.6.31.12-0.2-desktop; KDE/4.3.5; x86_64; ; ) In-Reply-To: <87aas817si.fsf@gnu.org> X-OriginalArrivalTime: 17 May 2010 20:46:46.0097 (UTC) FILETIME=[10848C10:01CAF602] X-detected-operating-system: by eggs.gnu.org: Windows 2000 SP4, XP SP1+ X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:10332 Archived-At: Let me suggest. Shall we say that we use the slightly modified version of (ice-9 match) that ypu dug up for now! I found that this code is much faster then the old code and then the=20 speedup by using opcode is not much. =46or unification we make a special matcher and keep it under a prolog=20 library. On a side note I have not gotten any answer from the author of that code=20 that I modified. Cheers Stefan On Monday 10 May 2010 10:26:53 am Ludovic Court=C3=A8s wrote: > Hi, >=20 > stefan writes: > > (match x ((a b) (+ a b))) > > > > (let ((F (lambda (a b) (+ a b)))) > > (c-code-match x pat F)) > > > > This has it's elegance. So do you see any performancs > > issues using this? >=20 > I=E2=80=99d rather avoid C completely for (ice-9 match). I was mentionin= g use > of C for the Prolog implementation you were discussing. >=20 > Thanks, > Ludo=E2=80=99. >=20