On Fri, Jul 19, 2019 at 9:11 AM gambit-list-request@IRO.UMontreal.CA gambit-list-request@iro.umontreal.ca wrote:
Send Gambit-list mailing list submissions to gambit-list@iro.umontreal.ca
To subscribe or unsubscribe via the World Wide Web, visit https://mailman.iro.umontreal.ca/cgi-bin/mailman/listinfo/gambit-list or, via email, send a message with subject or body 'help' to gambit-list-request@iro.umontreal.ca
You can reach the person managing the list at gambit-list-owner@iro.umontreal.ca
When replying, please edit your Subject line so it is more specific than "Re: Contents of Gambit-list digest..."
Today's Topics:
- Information about the Gambit-C Javascript Backend (Paulo Silva Filho)
- Re: Information about the Gambit-C Javascript Backend (Marc Feeley)
- Re: Gambit at 30 (Marc Feeley)
- Demo of dynamic libraries? (mikel evins)
- Re: Gambit at 30 (Hendrik Boom)
Message: 1 Date: Fri, 19 Jul 2019 07:43:37 -0300 From: Paulo Silva Filho paulosfilho@gmail.com To: gambit-list@iro.umontreal.ca Subject: [gambit-list] Information about the Gambit-C Javascript Backend Message-ID: CAM1-g4XAbd3Bna2wKitC5xxxegZZjihYdknG1v2gpSJxuaqC9Q@mail.gmail.com Content-Type: text/plain; charset="utf-8"
Sires,
I've been looking for a Scheme->Javascript compiler, and I've made small tests on Gambit-C, based on these links:
https://mailman.iro.umontreal.ca/pipermail/gambit-list/2015-January/007723.h...
https://gambit-list.iro.umontreal.narkive.com/JUxGilJn/javascript-backend
The only thing I'm looking for is how to communicate from Javascript functions to Scheme functions and vice-versa.
Unfortunately, I didn't make it work, based on the links above.
I tried to use the the ##inline-host-expression and ##inline-host-statement as shown in the links above, but the compiled code didn't find these functions (or macros, I don't know exacly these calls are implemented).
I tried the Javascript backend on Windows, using Gambit v4.6.6, and it compiled the sample code and has executed it. On Linux, I didn't made it get executed.
Since the JS Backend is not documented, I don't know how to proceed, and to find any information using Google has been very difficult.
Is there some more up to date information about how to build a simple Javascript program, with javascript code interaction somewhere? Or can you provide me some instructions?
Thank you in advance.
-- Paulo Silva Filho