-
Notifications
You must be signed in to change notification settings - Fork 91
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
Integrate JS-Scala work #26
Comments
One point to keep in mind about |
Good point. I see |
Hi, FYI, here are some features that are in js-scala and for which I’d like to have your feedback:
|
Hi Julien, this sounds pretty cool. @Lewix also implemented some string interpolation support (#69); it would be nice to compare. For ADTs, I'm thinking this could be an alternative for explicit case class support in Scala-Virtualized. Could the constructor and member definition be auto-generated (i.e. remove the @kjbrown: do you think this ADT impl would be useful for Delite? |
Yes, if I use a macro annotation instead of the current def macro we can get rid of both the |
The string interpolation I wrote works in much the same way, by looking at the type of each argument. It has a few more bells and whistles like remapping manifests, emitting blocks and printing the string to the output stream. The code is here. |
Cool, so I think I will switch to your implementation :) |
Oh, I forgot but I tried to implement a kind of module generator (generated JavaScript code is here): instead of generating a program we generate an object exposing several methods (or sub-modules). There are still things to improve: each exported function is generated independently of others, so they can not benefit from common subexpressions elimination between functions. The DSL-like API to define a module is a bit too much verbose. I would be happy to get your feedback on this :) |
I'm mostly thinking about generic things like
repProxy
or class lifting but it would be good to discuss to which extent other stable pieces of js-scala can and should be integrated. cc: @namin,@julienrfThe text was updated successfully, but these errors were encountered: