Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How is google dart related to google closure?

I have just started using Google Closure and I have also heard about Google Dart which seems very similar. How are the two related?

like image 904
yazz.com Avatar asked Sep 27 '11 19:09

yazz.com


People also ask

Why is Google making darts?

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.

Does Google still closure?

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.

Who uses Closure Library?

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.


2 Answers

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.

like image 81
Chris Buckett Avatar answered Nov 01 '22 14:11

Chris Buckett


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.

like image 39
Rich Dougherty Avatar answered Nov 01 '22 14:11

Rich Dougherty