From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Taylan Kammer Newsgroups: gmane.lisp.guile.user Subject: Re: SRFI-64: test exception symbol Date: Sat, 2 May 2020 21:38:47 +0200 Message-ID: <86489e61-2a53-da46-6191-34612e60e745@gmail.com> References: <20200430150621.GA16174@newvzh.lokolhoz> <20200430155509.GB16174@newvzh.lokolhoz> <920a5e8d-f1fd-6efa-b57a-9957f76784c6@gmail.com> <20200501192058.GA16326@newvzh.lokolhoz> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="23236"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sat May 02 21:39:18 2020 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 1jUxyn-0005uB-Hi for guile-user@m.gmane-mx.org; Sat, 02 May 2020 21:39:17 +0200 Original-Received: from localhost ([::1]:47106 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jUxym-000141-J0 for guile-user@m.gmane-mx.org; Sat, 02 May 2020 15:39:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45742) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jUxyU-00011z-Hl for guile-user@gnu.org; Sat, 02 May 2020 15:38:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jUxyT-0003Rt-Sn for guile-user@gnu.org; Sat, 02 May 2020 15:38:58 -0400 Original-Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]:55521) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jUxyT-0003LZ-Ev for guile-user@gnu.org; Sat, 02 May 2020 15:38:57 -0400 Original-Received: by mail-wm1-x330.google.com with SMTP id e26so3815477wmk.5 for ; Sat, 02 May 2020 12:38:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=q4ZiFdoff/9pHFECnFHNKRXRYPB35NAZPqmxCviuBnA=; b=Z2MKIzeiOYN2NpGX/LPlbECcN/Wfh9OMyzHNpv2zDgVOEqcpBiKlZC0DgECKW46f93 mhoA/Uj8dKVNqVPdRPbmgcdZiHkOt86+rDPGXc7r23oaVfOBmuQOrQw4P4sZgqv+pyeF B+TiwzF+8loKyK1hhLrmccVllRKM5g+XXefOpDYtz2ioD+beuDFPN1yrIredWPUcZcpt U4Xcu+NEJ2LGh07qRebckuaS3RKfZqHbbRubDLz8wNbSbl0oLxBR92DI0Z5wlOR2/Jgq L0fIwQG+hxjJQ7ird+RD4Y+AWNfGBx0lNxQAp5Dg67WUDC7sC2Y4gewMIyuiMjeNzxw9 Y3uQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=q4ZiFdoff/9pHFECnFHNKRXRYPB35NAZPqmxCviuBnA=; b=ZuVbQg9igHUAOI3AskwxPZDII3ZBc/OjnxztLVmguoOOl1KGpi+b4kFRj3nJRecNLL EgvWAYoBuZEDZRj8NxWRlCLgZ+qIvBDAyE/OUmlVV7P74xHhlE/6CDF/HxqI053Zd/2b MQIBiH39gvDILFHwwNtxcJ7QQhd7IO/L6BMLURoGv5APFfHTMy0Q0BfpMHTdqTOY9g7x sjkc6BwtDeeKWB1/gnJg3RTDhRSzPW4OD5oaowtfEzoWJlJ9c5/ESDpxQgOj97yyh9nr UUWx/21D7J4uqn/9vAPJfnz7eSdrq2O2wgERUokZAMTCGSt2nhK9XfI1cD/+vAFeG1bo i2/A== X-Gm-Message-State: AGi0PuZevwNozM5Tnrq7graNpRtzenq1StuXaKcyH+HlNkLQAwe9w1Ce D1nYJ+EfJWBCA1fQzleP3juchqaR X-Google-Smtp-Source: APiQypLwSO/12uiemrN9MKZ3QuciaCQhQ+ncl+ZXQ064K1qTlkPYFUN02xXOWXpHDQgBhXIOBDsZlw== X-Received: by 2002:a05:600c:2f17:: with SMTP id r23mr5620320wmn.81.1588448335171; Sat, 02 May 2020 12:38:55 -0700 (PDT) Original-Received: from ?IPv6:2a02:908:c70:52c0:9d5c:b4fd:6d16:5527? ([2a02:908:c70:52c0:9d5c:b4fd:6d16:5527]) by smtp.gmail.com with ESMTPSA id e17sm7595694wrr.32.2020.05.02.12.38.54 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 02 May 2020 12:38:54 -0700 (PDT) In-Reply-To: <20200501192058.GA16326@newvzh.lokolhoz> Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=taylan.kammer@gmail.com; helo=mail-wm1-x330.google.com X-detected-operating-system: by eggs.gnu.org: Error: [-] PROGRAM ABORT : Malformed IPv6 address (bad octet value). Location : parse_addr6(), p0f-client.c:67 X-Received-From: 2a00:1450:4864:20::330 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:16418 Archived-At: On 01.05.2020 21:20, Vladimir Zhbanov wrote: > > The first question: supposed that I already have guile installed > (together with its own srfi's) and have downloaded your > repository, how can I use your modules in my own code then? > > The second one: how to make your code available for our code in > the spread of distributions our project builds on? Probably, > there is a way to uniformly integrate some parts of it > (e.g. srfi-64) to our project? Or should I require distribution > packagers working on packaging of our project to package your code > as a some new package, too? Not sure, how to achieve this and if > this is possible at all. > I believe the latest version of Guile supports R7RS libraries, so theoretically all you need to do is to add the path to the repository to the load-path of Guile, and you should be able to import (srfi 64). I don't know if Guile's embedded SRFI-64 is also available as (srfi 64) or only as (srfi srfi-64) but even if it's the former, I think adding a directory to the load-path will override it. You can tell from the standard output format whether you're running the standard implementation or mine; my version is much more verbose by default. Adding to the load path can be done by setting GUILE_LOAD_PATH, by using the -L command-line switch, or by using the `add-to-load-path' form in code. As for the second question: There is sadly no standardized way to distribute R7RS libraries (e.g. the standard doesn't define something like a "load path" and how to influence it). However, most of my project (including the SRFI-64 bit) is under the permissive (non-copyleft) SRFI license, which I think is equivalent to BSD-2. (This is because most of my project is R7RS library wrappers for the existing reference implementations; I use the GPLv3 for new code I write.) So you could simply copy the relevant files and bundle them in your project along with other Scheme code. Happy to help if you have further questions. (If I don't respond, which would be because I don't check the mailing list often, feel free to remind me by sending a mail directly to me without the list in CC so the mail lands in my primary INBOX.) - Taylan