[WIP] Compile Linklets to Javascript#266
[WIP] Compile Linklets to Javascript#266gamburgm wants to merge 176 commits intoracketscript:masterfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## master #266 +/- ##
==========================================
- Coverage 67.91% 64.72% -3.19%
==========================================
Files 48 50 +2
Lines 5329 5667 +338
==========================================
+ Hits 3619 3668 +49
- Misses 1710 1999 +289
Continue to review full report at Codecov.
|
| @@ -0,0 +1,6 @@ | |||
| #lang racket/base | |||
There was a problem hiding this comment.
This file probably shouldn't be committed.
There was a problem hiding this comment.
but apparently there are others so this might be still early WIP, in which case disregard. :)
There was a problem hiding this comment.
Yeah this is still in early stages, some of these garbage files (especially expander.rktl) are just convenient when I'm switching computers or someone else wants to debug something -- hopefully this is in a better state soon :^)
@stchang
We would like to eliminate the server requirement for editing Racketscript online. To do that, we need to be able to run the Racketscript compiler itself (and more importantly, the Racket expander) in the browser.
The first step in achieving this is compiling linklets to javascript. The expander can compile itself to one, so this is the first milestone in the bootstrapping process.
Warning: the code is a mess. The code was written under the (reasonable) assumption that there wouldn't be another module-like entity to compile, but I've skipped refactoring any of that at the moment.