From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Taylan Kammer Newsgroups: gmane.lisp.guile.user Subject: Re: srfi-64 tests passing when they should not Date: Thu, 6 May 2021 13:16:17 +0200 Message-ID: <19c4bb0c-4780-c398-a26f-2e2211c00667@gmail.com> References: <40a496bb-c005-3c6f-2bf2-7025f3a234bb@posteo.de> <0d18f3f4-055f-4371-8e52-6b0ca7d879dd@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2855"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 Cc: "guile-user@gnu.org" To: Luis Felipe Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Thu May 06 13:17:01 2021 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lec05-0000dM-Ls for guile-user@m.gmane-mx.org; Thu, 06 May 2021 13:17:01 +0200 Original-Received: from localhost ([::1]:35516 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lec04-0002t7-JL for guile-user@m.gmane-mx.org; Thu, 06 May 2021 07:17:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41506) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lebzW-0002s6-L0 for guile-user@gnu.org; Thu, 06 May 2021 07:16:28 -0400 Original-Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]:44913) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lebzS-0006uw-DK for guile-user@gnu.org; Thu, 06 May 2021 07:16:26 -0400 Original-Received: by mail-ed1-x52b.google.com with SMTP id bf4so5675454edb.11 for ; Thu, 06 May 2021 04:16:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=pQfRiXhWrP+aI8ewkGR0aqBPHRW6gu0A25kIpcftrUQ=; b=Lu6l+GXYtxGujXXYT/jFMGVxhbJ+udRO72lP4MtwusQYv9Cv4FueyhirPJDBIq1RTW 1evBCPhGoFRymQnLNc6tmtXDLJgxPBtpekdJ6KaVbFW7M6vakppnbl/GoNSvNvuCrxGY dZCsAzTE19eYuDKxoeh07SS5Iro22xyrRLVA7TaahEg1rByl6P9qKxQ6y4tOSAkTbNgz Nu+tx+hjrw9w7pLPbhHhZgKHcbekhvHtGtDvnEBbYo8tFNHz9fNJpYHiLT9UOA9PEd3U Sr4TRWpAYFWSt870SkLkm7dYWDihwW8HUWLGFqRNJMI7tNSFv/HH3BTwc8CNU+EopeFW n27Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=pQfRiXhWrP+aI8ewkGR0aqBPHRW6gu0A25kIpcftrUQ=; b=r+5q5Doqfm10tyzh6Mh9iKALa5QGSU/h1GmCC66m6IH02jhfXF1k2MfNH7GEMSPQY5 h9it9UNXlBNYlM2kpz6jt+/ZOzRscsLAeW0jmCHWkyEEilgA1KwG3wGWPjMrXUC+aakn C7aFAJobceOyloZ2fw4iKM3t+uYYEbdzqFgO1HIHwCo1JZqB/nFnqG5CyQ9DQ3ZJyWJL JpLyZVI3Ah6vnrYfbHvwUTHmn9xbIMvL73h2gyAWA8GdVbYscL8u5FPXp2uPmTY+z5C7 zEp0hqUTbunCUg7VdcSQupmugAKutgcWzpxrvFTxEdEgn8wwZeIIKP4uFPQQz6C/NnuK Vj9g== X-Gm-Message-State: AOAM533D+fQRWhq88Plo2T22qL8n9ZErGx02X8xYfhnDCMW2JY5rJ1v/ reo9Wy4rW/m9M3vbRUq8SAq2zUipSHk= X-Google-Smtp-Source: ABdhPJzA9mnFGGm347Hq246Ne15noWodY03Fi3Hcb/Z7g2gDycreOopxXtq11QSYpdqTDyDgCVZ9jw== X-Received: by 2002:aa7:d3c2:: with SMTP id o2mr4515940edr.111.1620299779668; Thu, 06 May 2021 04:16:19 -0700 (PDT) Original-Received: from [192.168.178.20] (b2b-109-90-125-150.unitymedia.biz. [109.90.125.150]) by smtp.gmail.com with ESMTPSA id g17sm1673623edv.47.2021.05.06.04.16.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 06 May 2021 04:16:19 -0700 (PDT) In-Reply-To: Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::52b; envelope-from=taylan.kammer@gmail.com; helo=mail-ed1-x52b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:17516 Archived-At: On 05.05.2021 15:47, Luis Felipe wrote: > Hi Taylan, > > On Wednesday, May 5, 2021 6:39 AM, Taylan Kammer wrote: > >> On 04.05.2021 10:31, Zelphir Kaltstahl wrote: >> >>> The first 2 tests are surprisingly passing. This is also the reason, why I used >>> test-assert and manually wrote the (equal? ...) in the last test, to see, >>> whether it makes any difference. Indeed it does. >> >> The reference implementation of SRFI-64 (which is what Guile ships) >> doesn't seem to be written very well. >> >> I have an alternative implementation here, if you're interested: >> >> https://github.com/TaylanUB/scheme-srfis >> >> I'm not sure if the newest Guile is able to run it out of the box >> though. You might have to create some .scm symlinks to the .sld files. > > For what it's worth, I know about your implementation for a long time, but I've never tried to use it because I don't know where to start. Is it not possible to package these libraries so that users can simply install them as any other guile library? Say: > > $ guix install r7rs-srfi-64 > > I see that Guile can be run with the "--r7rs" option "to better support R7RS"... > Hmm, I had hoped that with the newest Guile, simply adding the repo's root directory to the load path would work, at least when invoked with the --r7rs switch, but it seems that Guile still chokes on library name parts that are integers. That's an incompatibility with r7rs that's not mentioned in the manual. I guess the only way to make the modules work is to rename all the files and change the library names to not use integer parts. Maybe I'll make a guile-compatible standalone package for the SRFI-64 implementation, since that's the most fancy thing in that repo. I might do it in the following days since I'm on a vacation, but... the vacation is supposed to be a vacation. :-) Work has been really burning me out in the last year. If someone else feels like trying: all you have to do is rename .sld files to .scm, change the integer parts of the module names to symbols (e.g. s64 instead of 64), and rename the directory '64' accordingly. - Taylan