optimising capp js

1 view
Skip to first unread message

Demian Turner

unread,
Nov 9, 2009, 12:30:55 PM11/9/09
to Cappuccino & Objective-J
Here's a Google project that looks interesting, could improve the
efficiency of the compiled Capp js:

http://code.google.com/closure/compiler/

From the project homepage:

The Closure Compiler is a tool for making JavaScript download and run
faster. It is a true compiler for JavaScript. Instead of compiling
from a source language to machine code, it compiles from JavaScript to
better JavaScript. It parses your JavaScript, analyzes it, removes
dead code and rewrites and minimizes what's left. It also checks
syntax, variable references, and types, and warns about common
JavaScript pitfalls.

cheers
--
Demian Turner
Seagull Systems Ltd, http://seagullsystems.com

Sort out your life with Doris!
http://beta.dorisapp.com/

Nicholas Small

unread,
Nov 9, 2009, 12:43:53 PM11/9/09
to Cappuccino & Objective-J
Well I haven't played around with it, but chances are it won't
understand the Objective-J syntax. Potentially you could run compile
your Objj code to regular JS with Jake and then run that through the
Closure compiler, but we also include a code minifier. Not sure if
Closure Compiler would work on the post-minified result, and if so,
how much of a gain there would be. If you'd be interested in trying it
out though, go ahead! Let us know the results.

--Nick

On Nov 9, 12:30 pm, Demian Turner <dem...@phpkitchen.com> wrote:
> Here's a Google project that looks interesting, could improve the  
> efficiency of the compiled Capp js:
>
> http://code.google.com/closure/compiler/
>
>  From the project homepage:
>
> The Closure Compiler is a tool for making JavaScript download and run  
> faster. It is a true compiler for JavaScript. Instead of compiling  
> from a source language to machine code, it compiles from JavaScript to  
> better JavaScript. It parses your JavaScript, analyzes it, removes  
> dead code and rewrites and minimizes what's left. It also checks  
> syntax, variable references, and types, and warns about common  
> JavaScript pitfalls.
>
> cheers
> --
> Demian Turner
> Seagull Systems Ltd,http://seagullsystems.com
Reply all
Reply to author
Forward
0 new messages