For the last few months I've been working on a project called S2JS. The source code for the project is currently hosted at github: https://github.com/alvaroc1/s2js
S2JS is a Scala compiler plugin that can turn a subset of Scala code into Closure-annotated Javascript Code.
Currently it is a work-in-progress, although I am currently using it for some of the features on GravityDev.com.
After using it for a while I came to the conclusion that it is has a lot of performance benefits, but it is extremely verbose and repetitive.
S2JS is a Scala compiler plugin that can turn a subset of Scala code into Closure-annotated Javascript Code.
Currently it is a work-in-progress, although I am currently using it for some of the features on GravityDev.com.
Closure compiler/library
For those not familiar with the closure library/compiler, it allows you to annotate your javascript with type annotations, turning Javascript into a typed language. With those annotations in place (plus the equivalent of imports) you can run the closure-compiler to perform TONS of optimizations like inlining and removal of dead code.After using it for a while I came to the conclusion that it is has a lot of performance benefits, but it is extremely verbose and repetitive.
No comments:
Post a Comment