-
Notifications
You must be signed in to change notification settings - Fork 32
[WIP] Compile Linklets to Javascript #266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
[WIP] Compile Linklets to Javascript #266
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file probably shouldn't be committed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but apparently there are others so this might be still early WIP, in which case disregard. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.