This repository was archived by the owner on Apr 18, 2026. It is now read-only.
Description GNU Guile has now a working prototype of a compiler backend that generates JavaScript .
It use lots of tail calls. I compiled it with traceur using the following command:
$ traceur --out script.js --script out.prettier.js --proper-tail-calls --experimental
I run it in chrome using the following html file:
< html >
< body >
< script src ="https://google.github.io/traceur-compiler/bin/traceur.js "> </ script >
< script src ="https://google.github.io/traceur-compiler/bin/BrowserSystem.js "> </ script >
< script src ="/script.js " type ="text/javascript "> </ script >
</ body >
</ html >
It fails with a Uncaught RangeError: Maximum call stack size exceeded.
The original scheme program is:
(js-invoke (js-eval " console" ) " log" " héllo world" )
The input JavaScript file can be found here . That input file is correctly intrepreted by nodejs v8.4.0 using the --harmony_tailcalls flag.
Reactions are currently unavailable
GNU Guile has now a working prototype of a compiler backend that generates JavaScript.
It use lots of tail calls. I compiled it with traceur using the following command:
I run it in chrome using the following html file:
It fails with a
Uncaught RangeError: Maximum call stack size exceeded.The original scheme program is:
The input JavaScript file can be found here. That input file is correctly intrepreted by nodejs v8.4.0 using the
--harmony_tailcallsflag.