Re: Aspects of JavaScript Schemes
Marc Feeley 29 Dec 2020 15:11 UTC
>
> On Dec 29, 2020, at 9:55 AM, Lassi Kortela <xxxxxx@lassi.io> wrote:
>
> On 29.12.2020 16.38, Marc Feeley wrote:
>> Biwascheme and lips are fine projects but I don’t favour using them for the “Try Scheme” link as this might give the wrong impression to newcomers because these systems don’t implement Scheme to a sufficient level of conformance to really show off the special features of Scheme (such as tail calls, first class continuations, full numeric tower, delayed evaluation, and newer features of R7RS). It is essential that these features be fully supported to give a good experience.
>
> I agree that the default choice should be as full-featured and standards-conformant as possible. A debugger is also nice.
>
> One important aspect of conformance is macros. How's Gambit's macro system at the moment - does syntax-rules have tail patterns and hygiene? I can't get syntax-rules to work in <http://feeley.github.io/gambit-in-the-browser/>: it says "ill-formed expression" to all macros. The same macros work fine in the command line gsi REPL on my computer.
>
The Gambit in the browser site is at Gambit v4.7.0 and hasn’t been updated in a long time. That’s why I’m looking into rebuilding it with the latest Gambit and emscripten (and compressing the generated JS/wasm code).
I’m not sure I’ll have time, but it would be nice to add an in-browser code editor to create files (rather useful to try out writing libraries). I may reuse parts of my codeBoot project which is a in-browser IDE for JavaScript and Python.
Marc