I have just started using Google Closure and I have also heard about Google Dart which seems very similar. How are the two related?
Google has created the Functions Framework for Dart to provide some scaffolding for building FaaS. The framework is designed to run locally, and on Google Cloud Run, Google App Engine, and Knative-based environments.
Closure Library is a powerful, low-level JavaScript library designed for building complex and scalable web applications. It is used by many Google web applications, such as Google Search, Gmail, Google Docs, Google+, Google Maps, and others.
Each tool in the suite is open-sourced under the Apache 2.0 license, and is created, maintained, and made available for free by Google. Closure is used in the development of many web applications at Google, including Gmail, Google Maps, and Google Docs.
Google closure, is a set of javascript libraries and a javascript parser for compiling and compacting your javascript. There are google closure tools that can be built into your build / deploy cycle.
Google Dart appears (from the current scant information) to be a language replacement for javascript, with the option for compiling to javascript. This is similar to what google GWT does now with java (ie, you write java and it compiles to javascript. I believe that this compilation process also uses the closure compiler).
This would be why the GWT + Closure teams have been moved onto the Dart project - it's vital for the takeup of Dart that developers can deploy client side dart applications to browsers that don't directly support dart (ie, non chrome). Cross compilation of dart to javascript (in the same way that GWT does java to javascript) is Googles method of solving this.
The Dart keynote speech should be happening soon (tomorrow?), but I thought I'd also add this excerpt from the Dash email.
What about the existing code bases for large Google Apps? Won’t they have to rebuild everything to take advantage of Dash?
The Dash Cross Compiler should be capable of taking typed Closure code (with some restrictions) and converting to Dash. Although the migration process won’t be fully automatic, it should make moving over to a Dash codebase somewhat easier.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With