From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Noah Lavine Newsgroups: gmane.lisp.guile.user Subject: Re: SRFI-64 implementation for Guile 2.0 Date: Thu, 19 Apr 2012 22:50:59 -0400 Message-ID: References: <4F88DB8D.9050203@bothner.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1334890275 29196 80.91.229.3 (20 Apr 2012 02:51:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 20 Apr 2012 02:51:15 +0000 (UTC) Cc: guile-user@gnu.org, Per Bothner To: Sunjoong Lee Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Apr 20 04:51:13 2012 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SL3wD-0007GO-HE for guile-user@m.gmane.org; Fri, 20 Apr 2012 04:51:09 +0200 Original-Received: from localhost ([::1]:33550 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SL3wC-0007Wj-PN for guile-user@m.gmane.org; Thu, 19 Apr 2012 22:51:08 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60724) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SL3w7-0007We-TC for guile-user@gnu.org; Thu, 19 Apr 2012 22:51:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SL3w5-0006E0-K9 for guile-user@gnu.org; Thu, 19 Apr 2012 22:51:03 -0400 Original-Received: from mail-pb0-f41.google.com ([209.85.160.41]:41025) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SL3w5-0006DZ-Bm for guile-user@gnu.org; Thu, 19 Apr 2012 22:51:01 -0400 Original-Received: by pbcup15 with SMTP id up15so535495pbc.0 for ; Thu, 19 Apr 2012 19:50:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=I36McZMKbv8IKKY8i67/gB103tO3vJ+c5Zb6LcSvIzQ=; b=nXfbsD2JTaB8X7Z0KK9N0M3nwWzVSFOsygcMspFLswX+oYTJcBUgdQhkGlQ0U76p5L nCXNciDpVrKe3gDFB0ozQMkEA3/GPWYM8L0nvMhLGxAqT9DsZ8U0TMh/RWTVGl5r+NUm RlAqgKLZBYMnjBPIGg595vfAj1cberlzkgiBP8ri5z8RcNoyu8XxfGZ6KEBIGUJtHJnT YMjjrB9hH6peMZXt9XU5np48aVoGGyBo/eXE+awJx/5Mt677LCcbcTXZ5zlD5iV77XdH JfOYLM82ony4kjE+muZRRQ3/hFOW7nGuKVZYmyeOCLiqMcZfOz7Qh0DmsegeJGDRbNLK 10OA== Original-Received: by 10.68.201.65 with SMTP id jy1mr9389554pbc.5.1334890259380; Thu, 19 Apr 2012 19:50:59 -0700 (PDT) Original-Received: by 10.142.99.8 with HTTP; Thu, 19 Apr 2012 19:50:59 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: ETJeU6faRhIOFmbwPnN8cbkPlBw X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.160.41 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:9374 Archived-At: Hello! I'm a bit confused by this conversation. Do you want to merge this code into Guile, or into the reference implementation of SRFI 64? If it's into Guile, I can't speak for the maintainers, but I think we would love to have it. We do like supporting SRFIs. Thanks, Noah On Sun, Apr 15, 2012 at 4:35 PM, Sunjoong Lee wrote: > Now, srfi-64.scm works on Guile 1.8 and 2.0. > > There are two different thins; > =A0 1) Guile 1.8 does not support nested block comments. > =A0 =A0 =A0So, it does not pass srfi-64-test.scm test suite. > =A0 =A0 =A0But, comments are comments - not problem. > =A0 2) srfi-64.scm on Guile 2.0 can catch and report the source form > =A0 =A0 =A0like this; > =A0 =A0 =A0 =A0source-file: "srfi-64-test.scm" > =A0 =A0 =A0 =A0source-line: 129 > =A0 =A0 =A0 =A0source-form: (test-equal "1.1.1. Very simple" (quote (("a"= ) ("b") () > () () (1 1 0 0 0))) (t)) > =A0 =A0 =A0srfi-64.scm on Guile 1.8 does not support it yet > =A0 =A0 =A0because I'm a newbie of scheme and don't understand Guile yet. > =A0 =A0 =A0I hope someone fix these problems; > =A0 =A0 =A0 =A0a) On Guile 2.0, I used (datum->syntax form (syntax->datum= form)) > =A0 =A0 =A0 =A0b) On Guile 2.0, I used (assq-ref (syntax-source form) 'fi= lename) > > 2012/4/14 Sunjoong Lee >> >> 2012/4/14 Per Bothner >>> >>> This is nice. =A0It would be great if the Guile port would be merged >>> into the reference implementation, presumably using cond-expand. >>> That way bug-fixes or changes in one could be more easily be >>> merged into the other. > > > Now, srfi-64.scm works on Chicken 4.7. > > Per Bothner adviced me it's better to merge it into the=A0reference > implementation. > I was not convinced to check right merge. > So, I ported it for Chicken 4.7 and Guile 1.8 - it works now. > Right merge? I'm not sure yet but hope so. >