<div dir="ltr">Dear Mark,<div><br></div><div>Thanks for your pointers regarding scheme back-ends for JavaScript.  I starting using Gambit but ran into a few problems as follows:</div><div><br></div><div>1.  The -target compiler option is undocumented.  I think Gambit is more capabilities than the public is aware of - i.e. JavaScript back-end.</div><div><br></div><div>2.  When I compile anything into JS and run it in node I get:</div><div><br></div><div><div>    pc = pc();</div><div>         ^</div><div>TypeError: undefined is not a function</div></div><div><br></div><div><br></div><div>If I change the definition of gambit_trampoline to:</div><div><br></div><div><div>function gambit_trampoline(pc) {</div><div>  while (pc !== false  &&  pc !== undefined) {</div><div>    pc = pc();</div><div>  } </div><div>}</div></div><div><br></div><div>it fixes the problem.</div><div><br></div><div>3.  I'd like to print results to the console so I can see what is going on.  I'd prefer to use (print) or (display) but I can't get (console.log) to work either. </div><div><br></div><div>I even tried:</div><div><br></div><div><div>(define (console.log x)</div><div>  ;; Note: the parameter x will be in variable Gambit_r1</div><div>  (##inline-host-code "console.log(Gambit_r1);\n")</div><div>  #f)</div></div><div><br></div><div>but that didn't work either.</div><div><br></div><div>I checked, console.log seems to be a JS standard.  Perhaps your compiler can convert print and display to console.log.</div><div><br></div><div>How can I display something?</div><div><br></div><div>Thanks.</div><div><br></div><div>Blake McBride</div><div><br></div></div>