From: Lassi Kortela <lassi@lassi.io>
To: "Dr. Arne Babenhauserheide" <arne_bab@web.de>,
Maxime Devos <maximedevos@telenet.be>
Cc: Attila Lendvai <attila@lendvai.name>,
Greg Troxel <gdt@lexort.com>, MSavoritias <email@msavoritias.me>,
"guile-devel@gnu.org" <guile-devel@gnu.org>
Subject: Re: Name of the standard library
Date: Sat, 20 Jul 2024 19:54:56 +0300 [thread overview]
Message-ID: <c2b50c9e-e561-4d2e-b045-51ae4f7a9488@lassi.io> (raw)
In-Reply-To: <87h6ckjagd.fsf@web.de>
>> That said, I think that in Scheme, standard is quite different from portable – if something standard is implemented, it will be (mostly) according
>> to the standard, so in this way it is ‘portable’, but that’s a big ‘if’. For large Schemes (and small Schemes for which the RnRS or SRFI stuff is
>> implemented in a separate library that can easily be installed(*)), I don’t expect much trouble, but for very minimalistic (or outdated Schemes,
>> but that holds for other languages as well) you might possibly be in trouble.
Indeed, Scheme doesn't have a clear separation between full-featured
RnRS implementations and subset implementation. Several people have
noted that this is confusing.
There are subsets of e.g. C, ML, Haskell, and Perl, but these are
clearly indicated s such.
> Is (import (srfi :N)) portable in practice?
AFAIK:
(import (srfi :N)) is portable across all R6RS implementations.
(import (srfi N)) - without the colon - is portable across all R7RS
implementations.
Mnemonic SRFI imports - e.g. (srfi 1 lists) - are currently not
available in any R7RS implementation.
In R6RS land, at least some implementations support mnemonic SRFI
imports using the form (srfi :1 lists). I'm not sure how many. There are
discrepancies in the names (e.g. "lists") among some R6RS implementations.
It's really a mess that should be cleaned up. Any technical problems
have been overcome - it's entirely a social issue. It should be pursued
on the srfi-discuss mailing list.
> I switched from (use-modules ...) to (import ...) to get towards making
> my code easier to re-use on different Schemes, but I didn’t actually try
> using it on another Scheme implementation.
Thank you for making the effort.
The current crop of portable code has been written by very few schemers.
With a few extra people we will rapidly get more impressive results. In
my experience, the foundation provided by R6RS and R7RS is excellent and
the few known practical problems can be solved.
https://github.com/arcfide/chez-srfi is a notable project in R6RS
portability. Despite its name, it is not limited to Chez Scheme.
R7RS has an (include "...") mechanism which R6RS lacks. chez-srfi adds a
similar mechanism on top of the R6RS library system. The chez-srfi
mechanism is widely portable in practice.
next prev parent reply other threads:[~2024-07-20 16:54 UTC|newest]
Thread overview: 81+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-29 0:19 [PATCH] Add nondestructive delq1, delv1, and delete1 Richard Sent
2024-06-29 2:52 ` The Guile junk drawer and a C plea (was: [PATCH] Add nondestructive delq1, delv1, and delete1.) Thompson, David
2024-06-29 7:37 ` Mikael Djurfeldt
2024-06-29 8:12 ` The Guile junk drawer and a C plea Dr. Arne Babenhauserheide
2024-06-29 8:33 ` Damien Mattei
2024-06-29 9:59 ` Dr. Arne Babenhauserheide
2024-06-29 9:07 ` The Guile junk drawer and a C plea (was: [PATCH] Addnondestructive delq1, delv1, and delete1.) Maxime Devos
2024-06-29 10:41 ` Maxime Devos
2024-06-29 18:12 ` The Guile junk drawer and a C plea Dr. Arne Babenhauserheide
2024-06-29 18:18 ` Lassi Kortela
2024-06-29 18:27 ` Maxime Devos
2024-06-29 19:04 ` GRFI [was: The Guile junk drawer and a C plea] Matt Wette
2024-06-29 19:13 ` Lassi Kortela
2024-07-02 19:42 ` Jason Hemann
2024-06-29 19:39 ` Jean Abou Samra
2024-06-29 21:53 ` The Guile junk drawer and a C plea Philip McGrath
2024-06-29 22:41 ` Maxime Devos
2024-06-30 7:12 ` Dr. Arne Babenhauserheide
2024-06-30 9:45 ` Maxime Devos
2024-06-30 14:34 ` Dr. Arne Babenhauserheide
2024-07-01 9:06 ` Maxime Devos
2024-07-01 10:42 ` Dr. Arne Babenhauserheide
2024-06-30 6:16 ` #lang header Lassi Kortela
2024-06-30 0:17 ` The Guile junk drawer and a C plea Thompson, David
2024-07-17 2:25 ` The Guile junk drawer and a C plea (was: [PATCH] Add nondestructive delq1, delv1, and delete1.) Olivier Dion
2024-07-17 10:01 ` Library namespaces (guile ...) and (srfi ...) Lassi Kortela
2024-07-17 10:45 ` The Guile junk drawer and a C plea Dr. Arne Babenhauserheide
2024-07-17 10:53 ` MSavoritias
2024-07-17 11:12 ` Lassi Kortela
2024-07-17 15:44 ` Olivier Dion
2024-07-17 16:09 ` tomas
2024-07-17 16:29 ` Attila Lendvai
2024-07-17 20:32 ` Dr. Arne Babenhauserheide
2024-07-18 9:04 ` Attila Lendvai
2024-07-18 15:11 ` Dr. Arne Babenhauserheide
2024-07-17 20:33 ` Dr. Arne Babenhauserheide
2024-07-18 22:56 ` Greg Troxel
2024-07-19 8:46 ` Maxime Devos
2024-07-20 9:34 ` Attila Lendvai
2024-07-20 13:01 ` [PATCH] " Dr. Arne Babenhauserheide
2024-07-20 13:30 ` Name of the standard library Lassi Kortela
2024-07-20 14:52 ` Dr. Arne Babenhauserheide
2024-07-20 15:24 ` Lassi Kortela
2024-07-20 15:46 ` Dr. Arne Babenhauserheide
2024-07-20 16:04 ` Portable code Lassi Kortela
2024-07-20 16:24 ` Dr. Arne Babenhauserheide
2024-07-20 16:37 ` Lassi Kortela
2024-07-20 21:48 ` Dr. Arne Babenhauserheide
2024-07-26 9:21 ` Lassi Kortela
2024-07-20 16:11 ` Name of the standard library Maxime Devos
2024-07-20 16:26 ` Dr. Arne Babenhauserheide
2024-07-20 16:48 ` Maxime Devos
2024-07-20 18:42 ` Portable imports Lassi Kortela
2024-07-20 19:18 ` Maxime Devos
2024-07-20 19:46 ` Encoding library names Lassi Kortela
2024-07-20 20:35 ` Maxime Devos
2024-07-21 5:55 ` Portable imports tomas
2024-07-20 19:23 ` Maxime Devos
2024-07-20 16:54 ` Lassi Kortela [this message]
2024-07-20 21:56 ` Name of the standard library Dr. Arne Babenhauserheide
2024-07-26 9:38 ` Lassi Kortela
2024-07-20 15:43 ` Maxime Devos
2024-07-20 15:58 ` Lassi Kortela
2024-07-21 7:15 ` MSavoritias
2024-07-21 8:04 ` Dr. Arne Babenhauserheide
2024-07-26 16:37 ` Library names describe APIs Lassi Kortela
2024-07-21 16:50 ` Name of the standard library Ricardo Wurmus
2024-07-21 13:00 ` Attila Lendvai
2024-07-20 16:01 ` Maxime Devos
2024-07-20 16:27 ` Lassi Kortela
2024-07-20 16:55 ` Maxime Devos
2024-07-21 12:16 ` [PATCH] The Guile junk drawer and a C plea Attila Lendvai
2024-07-21 21:10 ` Dr. Arne Babenhauserheide
2024-07-22 14:52 ` Attila Lendvai
2024-07-20 15:26 ` Maxime Devos
2024-07-17 11:04 ` Lassi Kortela
2024-06-29 18:38 ` The Guile junk drawer and a C plea (was: [PATCH] Add nondestructive delq1, delv1, and delete1.) Jean Abou Samra
2024-06-29 19:02 ` The Guile junk drawer and a C plea Richard Sent
2024-06-29 23:51 ` Thompson, David
2024-06-30 7:23 ` Dr. Arne Babenhauserheide
2024-07-01 2:55 ` Maxim Cournoyer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c2b50c9e-e561-4d2e-b045-51ae4f7a9488@lassi.io \
--to=lassi@lassi.io \
--cc=arne_bab@web.de \
--cc=attila@lendvai.name \
--cc=email@msavoritias.me \
--cc=gdt@lexort.com \
--cc=guile-devel@gnu.org \
--cc=maximedevos@telenet.be \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).