relationship with GWT ? (FAQ)

210 views
Skip to first unread message

Ivar Vasara

unread,
Nov 5, 2009, 5:58:36 PM11/5/09
to Closure Library Discuss
What, if anything, is the relationship between Closure and GWT ?

Amit Agarwal

unread,
Nov 5, 2009, 6:00:17 PM11/5/09
to closure-lib...@googlegroups.com
You can find the answer here http://code.google.com/closure/faq.html

How do the Closure Tools relate to Google Web Toolkit?

Google Web Toolkit (GWT) provides a development tool chain for building and optimizing complex web applications, and is used in products like Google Wave and AdWords. Closure is a set of individual JavaScript tools that are also designed to help developers build complex web applications, and is used by Gmail, Google Maps, and Google Docs.

Closure is geared toward developers who want to work with JavaScript and have a strong understanding of the language, while GWT allows developers to work primarily in Java (although they can work in JavaScript, too) without worrying about the underlying JavaScript.

Ivar Vasara

unread,
Nov 5, 2009, 6:25:31 PM11/5/09
to Closure Library Discuss
Wow. that was fast! ( I was about to curse myself for asking without
having properly looking over the documentation, but I happened to have
the page you linked to open in another tab from 3 minutes before I
posted, and your answer was not there at the time.)

More questions..

So the standard libraries from the two projects are not related ?
Is there overlap/sharing of the optimization / compiler code ?
How does the compiler compare to something like YUI compressor ?
( http://developer.yahoo.com/yui/compressor/ )

On Nov 5, 3:00 pm, Amit Agarwal <aagar...@google.com> wrote:
> You can find the answer herehttp://code.google.com/closure/faq.html
>
> <http://code.google.com/closure/faq.html>How do the Closure Tools relate to
> Google Web Toolkit?
>
> Google Web Toolkit <http://code.google.com/webtoolkit/> (GWT) provides a
> development tool chain for building and optimizing complex web applications,
> and is used in products like Google Wave and AdWords. Closure is a set of
> individual JavaScript tools that are also designed to help developers build
> complex web applications, and is used by Gmail, Google Maps, and Google
> Docs.
>
> Closure is geared toward developers who want to work with JavaScript and
> have a strong understanding of the language, while GWT allows developers to
> work primarily in Java (although they can work in JavaScript, too) without
> worrying about the underlying JavaScript.
>

finitefield

unread,
Nov 6, 2009, 6:12:05 AM11/6/09
to Closure Library Discuss
So, if i know JavaScript and Java, which is the best choice?

Ram Ramani

unread,
Nov 6, 2009, 12:10:39 PM11/6/09
to closure-lib...@googlegroups.com
On Thu, Nov 5, 2009 at 3:25 PM, Ivar Vasara <iv...@oobik.com> wrote:

Wow. that was fast! ( I was about to curse myself for asking without
having properly looking over the documentation, but I happened to have
the page you linked to open in another tab from 3 minutes before I
posted, and your answer was not there at the time.)

More questions..

So the standard libraries from the two projects are not related ?
Yes
Is there overlap/sharing of the optimization / compiler code  ?
No. Both projects are open sourced. You can see it for yourself.
How does the compiler compare to something like YUI compressor ?
( http://developer.yahoo.com/yui/compressor/ )
We'll let you be the judge of it. Try your code with both compressors and see which one works better for you.

Nathan Naze

unread,
Nov 6, 2009, 2:25:41 PM11/6/09
to closure-lib...@googlegroups.com
> So, if i know JavaScript and Java, which is the best choice?

I think the unfortunate answer is "it depends" :)

Language familiarity isn't the sole reason to choose one or the other.
Each is a fundamentally different tool, and your choice should depend
on your requirements, developers' language familiarity, what you plan
to build, and how you want to build it.

There are projects that use each within Google, and each could give
you a good reason why.

Nathan

finitefield

unread,
Nov 10, 2009, 9:32:33 AM11/10/09
to Closure Library Discuss
Does Google Translator Toolkit use Closure Library or GWT?
Reply all
Reply to author
Forward
0 new messages