News for hackers. Stuff that matters.
Re:Going under the hood of Inbox by weavie on Thursday November 20, 2014 @05:34PM (#8638610)
I wonder why they went to all that effort when they could have just used Xamarin and one of several IL to JS traspilers instead. Probably just a standard case of Not Invented Here syndrome.
Re:Going under the hood of Inbox by jaimeyap on Thursday November 20, 2014 @05:42PM (#8638651)
Sharing code across the client and server is also important. Not just code sharing amongst clients.

The JVM is going to be the preferred server target at Google over C# and .NET by a wide wide margin. Which probably rules out Xamarin.

Add to that the fact that native Android is already Java (source). And GWT is a mature technology that is Google maintained. Seems like the logical route to take.

Re:Going under the hood of Inbox by cromwellian on Thursday November 20, 2014 @07:01PM (#8638993)
Most Google servers run Java and there are millions of lines of Java code in our repository. GWT has existed long before Xamarin since 2006/7. And Java is a first class citizen on Android.
Re:Going under the hood of Inbox by azakai on Thursday November 20, 2014 @05:53PM (#8638712)
I am guessing they just like Java?

Otherwise, yes, they could have written the shared logic in C#, or C++, or a few other languages, all of which are portable between the platforms they want.

There might also be history, I believe gmail has been using Java/GWT, so it was a natural decision for them to continue using Java?

It is a little surprising on the performance side, though. I would expect C++ to be faster when compiled/transpiled to all three relevant platforms (iOS, Android, Web), compared to Java similarly compiled/transpiled. But maybe most of their time is spent rendering anyhow, and little in the shared code.

Re:Going under the hood of Inbox by cromwellian on Thursday November 20, 2014 @07:04PM (#8639008)
Gmail as written in 100% Closure Compiler code, Closure Compiler was invented for Gmail.

Simple fact is, Google is a Java oriented company. Inbox uses lots of components and shared code across the company that are based on Java. To use C# or C++ to do it would rewriting a lot of code that already exists.

JS performance is not the gating factor for the Web client in most cases, it's rendering and startup (code size). We run expensive calculations off the main thread in a Web Worker anyway.

The translation of Java to Objective-C could have been to C++ as well. I started prototyping something a while ago that does such. Objective-C makes more sense, because for iOS, the front end developers get to consume 'idiomatic' code that looks like they had hand-written it and it meshes well with other tools, and would work with Swift too.

Re:Going under the hood of Inbox by nostrademons on Friday November 21, 2014 @04:13AM (#8640467)
The Apps (+ Ads, Android, Social, & DevTools) side of Google is a Java-oriented company. Search, Geo, Infrastructure, and Chrome are all very much C++-oriented. (Inbox is very much an Apps project, so of course they would lean toward a Java stack.)
Re:Going under the hood of Inbox by cromwellian on Friday November 21, 2014 @05:56AM (#8640724)
That's true, Google has very large codebases of C++, Java, and Javascript. But the C++ code base cross-compiled to JS via emscripten wouldn't help us much on Inbox since most of the interesting bits are very backend oriented.
Re:Going under the hood of Inbox by azakai on Thursday November 20, 2014 @07:23PM (#8639078)
Ah, very interesting, thanks for the info.
Re:Going under the hood of Inbox by eva1984 on Thursday November 20, 2014 @05:43PM (#8638654)
GWT has been there for a very long time, and they own android. Based on that, Java will be a non-brainer for their choice of data model. I didn't see to the point to go all the way to Xamarin.
Re:Going under the hood of Inbox by derengel on Thursday November 20, 2014 @10:51PM (#8639735)
I don't think a company like Google will tolerate the hyperbuggy software of xamarin, xamarin just pushes new features with ever fixing anything.
Re:Going under the hood of Inbox by mwcampbell on Friday November 21, 2014 @07:51PM (#8644251)
Can you provide evidence that Xamarin's software is buggy and they're not paying attention to bugs? Honest question; I'm evaluating Xamarin at work.
Re:Going under the hood of Inbox by TeeWEE on Friday November 21, 2014 @08:49AM (#8641210)
You are not getting the quality native ui's using xaramin. Its always a common-denominator ui. Thus lacking new native features.