From: Maxime Devos <maximedevos@telenet.be>
To: Jacob Hrbek <kreyren@rixotstudio.cz>, guile-user@gnu.org
Subject: Re: Can guile be implementation independent?
Date: Fri, 17 Dec 2021 16:19:34 +0000 [thread overview]
Message-ID: <e2cfa344b8b911206fc86f1678a7ffcd1398fea8.camel@telenet.be> (raw)
In-Reply-To: <c04b63a5-efca-b2bd-bd26-11b1c3cde1a8@rixotstudio.cz>
Jacob Hrbek schreef op vr 17-12-2021 om 01:42 [+0000]:
> I am used to working with common lisp where i can write code that is
> "implementation independent" meaning that following a specific coding
> style makes it compatible across multiple interpretators/compilers
> (sbcl, LispWorks, etc..)
>
> Is there a way to do the same on GNU Guile? Like writing a code that
> can
> be interpreted by implementations that are following the IEEE 1178-
> 2008
> or R7RS standard?
I'm not aware of any Scheme implementations acknowleding that
IEEE 1178-2008 even exists. So for most practical intents and purposes,
IEEE 1178-2008 isn't a standard at all.
The de facto and de jure standards are the RnRS
(https://docs.racket-lang.org/r5rs/r5rs-std/index.html,
http://www.r6rs.org/,
https://small.r7rs.org/) and the SRFIs
(https://srfi.schemers.org/).
The RnRS and SRFIs are supposedly not official, but I don't see why
since there is a discussion process, a ratification process and
everything --- although often Schemes don't bother implementing all of
R6RS (out of inertia, minimalism, maybe backwards compatibility,
limited developer time, parts being problematic to implement (e.g.
'include-ci')) and sometimes disagree about arcane details.
Often only a selection of the SRFIs are implemented.
Overall, you can't do everything in portable Schemes, but most things
can be made reasonably portable by using the SRFIs and RnRS
(e.g. 'define-library' or 'library' instead of 'define-module'), though
at times some implementation-specific code is required
(e.g. for FFI and GUIs).
Greetings,
Maxime.
next prev parent reply other threads:[~2021-12-17 16:19 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-17 1:42 Can guile be implementation independent? Jacob Hrbek
2021-12-17 2:53 ` Nala Ginrut
2021-12-17 3:01 ` Jacob Hrbek
2021-12-17 3:27 ` Nala Ginrut
2021-12-17 13:32 ` silas poulson
2021-12-17 16:26 ` Dr. Arne Babenhauserheide
2021-12-18 15:30 ` Tim Van den Langenbergh
2021-12-18 18:47 ` Dr. Arne Babenhauserheide
2021-12-17 16:19 ` Maxime Devos [this message]
2021-12-17 17:05 ` [EXT] " Thompson, David
2021-12-18 17:10 ` Taylan Kammer
2021-12-19 20:03 ` Keith Wright
2021-12-19 20:57 ` Taylan Kammer
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=e2cfa344b8b911206fc86f1678a7ffcd1398fea8.camel@telenet.be \
--to=maximedevos@telenet.be \
--cc=guile-user@gnu.org \
--cc=kreyren@rixotstudio.cz \
/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).