-
Notifications
You must be signed in to change notification settings - Fork 572
Open
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 --experimentalI 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
Metadata
Metadata
Assignees
Labels
No labels