On Fri, Dec 21, 2012 at 1:29 AM, Chema Balsas <jbal...@gmail.com> wrote:
> Another thing, is that one can use r.js to pipe the require minification > process into the closure compiler so you're supposed to get the best of > both worlds... > Exactly, that's what I'm trying to get across. Since we produce VanillaJS, you can pipe into any optimizer/minimizer you want. Maybe the optimization rate is not as high, but that does no harm when there's not so much to optimize in the first place! Talking about piping into Closure, the RequireJS documentation says that only works (directly) when running RequireJS on Java/Rhino, which is supposed to be quite slow compared to Node.js. Does anyone have experience with that combination? Considering that Falcon is written in Java, using RequireJS on Java/Rhino would be a perfect fit, but of course we also want it to be fast. I heard of a new JavaScript engine being announced for Java, does anybody know more? Another option: is Closure capable of interpreting AMD modules instead of goog.require(), too, so could it be used instead of RequireJS for linking, without changing the syntax of define() / require()? -Frank-