Compiler

TwitterFacebook
Get flash to fully experience Pearltrees
http://bohuco.net/blog/2009/11/google-closure-compiler-with-php/

Google Closure Compiler with PHP « BOHUCO.NET

Now i show you how to use the new Google Closure Compiler over the RESTful API with PHP5. First of all, you don’t need to install anything, we will connect the free API via cURL usually activated in PHP5.
For more information about the rationale and basic usage of StratifiedJS, please see one of these interactive presentations from recent talks: The reference implementation of StratifiedJS is Oni Apollo .

Oni Labs: StratifiedJS

http://onilabs.com/stratifiedjs

mozilla/source-map - GitHub

https://github.com/mozilla/source-map Get a reference to the module: // NodeJS var sourceMap = require('source-map'); // Browser builds var sourceMap = window.sourceMap; // Inside Firefox let sourceMap = {}; Components.utils.import('resource:///modules/SourceMapConsumer.jsm', sourceMap); SourceMapConsumer
https://github.com/mishoo/UglifyJS

mishoo/UglifyJS - GitHub

( See cl-uglify-js if you’re looking for the Common Lisp version of UglifyJS. ) The second part of this package, implemented in process.js , inspects and manipulates the AST generated by the parser to provide the following:

Web Toolkit - Google Code

Google Web Toolkit (GWT) is a development toolkit for building and optimizing complex browser-based applications. GWT is used by many products at Google, including Google AdWords and Orkut . It's open source, completely free, and used by thousands of developers around the world. https://developers.google.com/web-toolkit/
Anytime you want to create scope privacy and mask a value from the outer scope as a new variable inside, use with...as. http://js11.org/examples.html

Examples

https://github.com/rsms/move Simpler. E.g. there's only one way to declare functions, no need for var declarations, only a single type of equality operators and no need for terminating statements with semicolons. Less boiler-plate code needed.

rsms/move - GitHub

Closure Compiler

The Closure Compiler has been integrated with Page Speed , which makes it easier to evaluate the performance gains you can get by using the compiler. https://developers.google.com/closure/compiler/
https://github.com/Sage/streamlinejs Instead of writing hairy code like: function archiveOrders ( date , cb ) { db . connect ( function ( err , conn ) { if ( err ) return cb ( err ); conn . query ( "select * from orders where date

Sage/streamlinejs - GitHub

Note that the top-level functions available to the shell (such as print ) are not available to compiled scripts when they are run outside the shell. Specifies that a java class extending the Java class java-class-name should be generated from the incoming JavaScript source file. http://www.mozilla.org/rhino/jsc.html

JavaScript Compiler

The code is run entirely in your browser, so don't feel obligated to "crash the server", you'll only stub your toe.

Skulpt

Narrative JavaScript

This library is the result of years of personal experience coding and debugging mind-warping, impossibly complicated callback-based "AJAX" applications. It is the author's hope that this library may reduce this pain for others.
number = 42 opposite = true number = - 42 if opposite square = (x) -> x * x list = [ 1 , 2 , 3 , 4 , 5 ] math = root: Math.sqrt square: square cube : (x) -> x * square x race = (winner, runners...) -> print winner, runners alert " I knew it! " if elvis ? cubes = (math.cube num for num in list)

CoffeeScript