New R7RS rendition in HTML5 Artyom Bologov (28 Dec 2025 17:57 UTC)
Re: New R7RS rendition in HTML5 Marc Feeley (29 Dec 2025 15:51 UTC)
Re: New R7RS rendition in HTML5 Artyom Bologov (29 Dec 2025 18:09 UTC)
Re: New R7RS rendition in HTML5 Marc Feeley (30 Dec 2025 02:13 UTC)
Re: New R7RS rendition in HTML5 Arthur A. Gleckler (29 Dec 2025 19:59 UTC)
Re: New R7RS rendition in HTML5 Artyom Bologov (29 Dec 2025 20:13 UTC)

Re: New R7RS rendition in HTML5 Artyom Bologov 29 Dec 2025 18:08 UTC

Hi Marc,

> It would be really nice to combine this document with the
> https://try.scheme.org/ online Scheme system. In particular, the code
> examples could be executed on try.scheme.org <http://try.scheme.org/>
> by clicking on examples in the R7RS document.

I’m totally open to that, but only on my fork/deploy, because I don’t
want to force any scripts onto the reader in the default setup. Still, I
have a fairly good idea for how this might work.

> 1) The R7RS HTML document could have hyperlinks to try.scheme.org
> <http://try.scheme.org/>

Yes, that seems to be the best option to me. Having buttons/links in
code blocks is pretty uninvasive, but can allow to easily redirect to
try.scheme.org! The only thing I theoretically need for that is a way to
open try.scheme.org with pre-filled expressions. Is there an API for
that? Maybe some query parameter I’m not aware of? Something like:

https://try.scheme.org?eval=(define x 1)

> 2) The try.scheme.org site could include the R7RS HTML document

I’m fine with that! It’s one of the use-cases for my project, in
fact. See the description of that on the source repository:
https://codeberg.org/aartaka/r7rs-html5#headline-3

> 3) The R7RS HTML document could include the online interpreter, making the R7RS HTML document self-contained

Hmmmmmm. The goal of my personal hosted version (r7rs.aartaka.me) is to
be the minimal possible change from the original document, purely
enhancing styles and minor behaviors. And the original document tries to
stick to pure HTML without scripts to be maximally compatible with most
browsers.

try.scheme.org buttons/links fall into the minimal change requirement of
my fork, but bundling an interpreter doesn’t. Still, the idea is good,
don’t get me wrong! Just not on that particular hosted version of the
standard.

So yes, to summarize: I’m curious of whether there’s a way to pass
expressions to try.scheme.org, because (I believe) that alone would be
enough to integrate the standard document with it!

Best of love,
--
Artyom Bologov
https://aartaka.me