Forgive me if this has been asked before.

I am writing a GClosure app at the moment (using the long-form java-style 
Google Closure javascript *blecch*), and I'm using JSDoc type-annotations 
for everything:

/** @type {number} */
var x = parseInt( data['foo'], 10 );

These annotations allow ADVANCED_MODE Closure compilation to type-check and 
also more tightly compress the resultant Javascript 'binary'. 

Looking at the size of the ClojureScript One production 'binary', it's 
187kb big.

I'm wondering if there's any plans or work underway to work on reducing 
this size, both in terms of having the ClojureScript backend include JSDoc 
style type annotations and in other ways?

Related question: 

As I already have a large GClosure codebase, I would like to use CLJS to 
build out the backend of this app, and bring the CLJS binary in as a module 
for my app to use.  I know I can export symbols in CLJS, and I'm guessing 
it can't be that hard to generate an externs.js containing all those 
exported symbols for use in my main app? If anyone is doing, this, please 
let me know how!

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to