<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">As a byproduct of github's continuous integration actions, some artifacts are generated including .zip files of Gambit for the major operating systems.  For example, for the latest commit see <a href="https://github.com/gambit/gambit/actions/runs/1821202393" class="">https://github.com/gambit/gambit/actions/runs/1821202393</a> .<div class=""><br class=""></div><div class="">At the bottom of that page you can see the artifacts (see attached screenshot).  The last 3 are various configurations for Windows.  If you use the Microsoft Visual-C compiler in your normal workflow then click the last link to download it, otherwise use one of the MinGW versions.<br class=""><div class=""><br class=""></div><div class=""><div class=""><div class="">Marc<br class=""><br class=""><img apple-inline="yes" id="99F70072-7318-40B9-AFF1-1562AF20EE66" width="538" height="464" src="cid:48FC2AFD-9FDA-4573-834C-3A74BDD90724" class=""></div><div class=""><br class="webkit-block-placeholder"></div><br class=""><blockquote type="cite" class="">On Feb 13, 2022, at 3:50 PM, Jean-François Trevien <<a href="mailto:jef.trevien@gmail.com" class="">jef.trevien@gmail.com</a>> wrote:<br class=""><br class="">Thanks a lot, by building gambit from source on ubuntu i make it work. <br class="">Do you have some pointer to make or load a windows version?<br class=""><br class="">Le ven. 11 févr. 2022 à 15:00, Marc Feeley <<a href="mailto:feeley@iro.umontreal.ca" class="">feeley@iro.umontreal.ca</a>> a écrit :<br class="">Your version of Gambit is way too old.  You need the latest version (v4.9.4).  The documentation (https://gambitscheme.org/latest/manual/) gives the details on how to use the compiler.  For a simple use-case of the JavaScript backend you can do this (which executes the JavaScript code with nodejs):<br class=""><br class="">$ cat hello.scm<br class="">(define msg "hello world!\n")<br class="">(display msg)<br class="">$ gsc -target js -exe -o hello.js hello.scm<br class="">$ node hello.js<br class="">hello world!<br class=""><br class="">Here is an example which executes the JavaScript code in the browser:<br class=""><br class="">$ cat hello-web.scm<br class="">(define msg "hello world!\n")<br class="">(display msg)<br class="">(define (alert str) (##inline-host-statement "alert(@scm2host@(@1@));" str))<br class="">(alert msg)<br class="">$ gsc -target js -exe -o hello-web.html hello-web.scm<br class="">$ open hello-web.html <br class=""><br class="">Note that by default `display` will send its output to the browser’s JavaScript console, i.e. the same place as the JavaScript console.log(…).  The last 2 lines of the program call the JavaScript `alert` function to also show the message in a dialog box.<br class=""><br class="">Finally, `display` can be called with the port corresponding to the web REPL (which is implemented by the Gambit runtime library through a browser dialog box):<br class=""><br class="">$ cat hello-web-repl.scm <br class="">(define msg "hello world!\n")<br class="">(display msg (repl-output-port))<br class="">(##repl-debug) ;; start a REPL in a dialog box<br class="">$ gsc -target js -exe -o hello-web-repl.html hello-web-repl.scm<br class="">$ open hello-web-repl.html<br class=""><br class="">The web REPL is a good way to do “live debugging” of the Scheme program.  It also allows tinkering with JavaScript.  For example, you could get the current date at the web REPL by entering:<br class=""><br class="">(host-eval "new Date().toString()")<br class=""><br class="">There’s also a JavaScript FFI based on infix syntax for an even more user-friendly way to interface to JavaScript.  Please visit try.gambitscheme.org for a demo (wait a few seconds for it to start automatically).  The demo shows off several features, such as the FFI, single-stepping, importing R7RS modules from the web, and the thread system.<br class=""><br class="">Marc<br class=""><br class=""><br class=""><br class="">> On Feb 11, 2022, at 5:37 AM, Jean-François Trevien <jef.trevien@gmail.com> wrote:<br class="">> <br class="">> Hello,<br class="">> I tried to to use the transpiler:<br class="">>  gsc -target js hello.scm<br class="">> with hello.scm containing :<br class="">> (display "hello word")<br class="">> And i have the error message :<br class="">> *** ERROR IN "hello.js"@74.39 -- Datum expected<br class="">> <br class="">> The version i use was install by chocolatey :<br class="">> gambit v4.6.6.20121126<br class="">> <br class="">> what's wrong?<br class="">> _______________________________________________<br class="">> Gambit-list mailing list<br class="">> Gambit-list@iro.umontreal.ca<br class="">> https://mailman.iro.umontreal.ca/cgi-bin/mailman/listinfo/gambit-list<br class=""><br class=""><br class=""></blockquote><br class=""></div></div></div></body></html>