While I was poking around GWT and eclipse I realized that GWT compiler carries out multiple permutations of compilation process. My initial thought was, may be they are doing it to support cross platform compilation. This doesn’t happend often but this time my guess was spot on. So, I did little research and found that GWT doing its multiple permutations of compilation to support all browsers and this can be changed and you have the full control of it.
I found some developers have complained that enterprise level development take longer compilation and that has become an issue among many developers where length of debugging has increased. Just to show what exactly I am talking about, I have copy pasted the simple compilation of GWT MyWebApp Application.
But there are ways of working around. You can reduce the compilation just to compile for one browser. In my opinion is this can be done by using package/modularization (java package structure) with the help of ant to do the build process. But this article is not to talk about use of ant of java package structure.
By default GWT get compiled to support following browsers.
ie6
ie8
gecko
gecko1_8
safari
opera
Do we really need all these browser during the development time. I think thats a personal call but when I develop something I hate to wait the compiler to run for super long time. If thats the case for all of you here is the solution. I would also like to bring up another aspect on reducing compile time during development. Imagine our small application (MyWebApp) is not as small as we think and we support multiple locals. In this case to support all the browsers we have to compile the application in the default mode. Just to make this argument lets say we support 10 locals.
Here is the calculation for compile time: 36.654s * 10 = 366.54s this is fine when a build master is doing production build. But as a developer I would like to do a quick build and see my changes.
this is the file that you need to change to get different permutations.
1
*.gwt.xml
this file come in handy if you want to separate the project into multiple modules or rename the module to make the module name shorter. To reduce the number of permutations or to build the application just for one browser, we need to tell the compiler to do so by using this file.
Module xml file(s) are located on the java class path and they are always referred by their logical names. So let say you are going to develop an application call MyWebApp, and you own the “boo” domain then you can find this xml file in com.boo.mywebapp under the name of MyWebApp.gwt.xml
by default you have set it up to compile for all the browser and it should look like this or something similar to this.
1 2 3 4 5 6 7 8 9 10 11
<?xml version="1.0" encoding="UTF-8"?>
<module rename-to='mywebapp'>
<!-- Inherit the core Web Toolkit stuff. -->
<inherits name='com.google.gwt.user.User'/>
<!-- Inherit the default GWT style sheet. You can change -->
<!-- the theme of your GWT application by uncommenting -->
<!-- You should have more lines -->
:
:
</module>
To reduce the compiler to do only one permutation you just have to pick a browser that you would like to do the development and add that as a property value, in this case we use the user.agent property and set the value to gecko1_8 which is firefox
Lets see if this really reduced the compilation time.
1 2 3 4 5 6 7
Compiling module com.colombounplug.mywebapp.MyWebApp
Compiling 1 permutation
Compiling permutation 0...
Compile of permutations succeeded
Linking into /Users/anu/DevWorkspace/GWT/MyWebApp/war/mywebapp
Link succeeded
Compilation succeeded -- 25.671s
Sure it did, and you can also see that it only did one permutation. Similar approach can be taken to locale where you define the local you want to compile with.
2 Days ago there was a new article (Google to give 10 pct raises to entire work force)about Google planning on doing a 10pct raises on their entire work force. But unfortunately they found the guy who leaked the new and fired him. So for sure we know that this poor Googler is not going to get his 10pct increase at all…
I just got an email from Google, which was bit strange because as the email says Google normally don’t contact their customers if they do It hasn’t happened to me after the the first welcome email I have gotten from them. Only other time I got an email when I got select to phone interview with Google for a Software Engineering position.
Anyway, Some Gmail users have filed a law suit against Google Buzz concerning its privacy. I thought entire point of Buzz is to be public and if you are so concern about it you should simply ignore the buzz and not participate in it. But I am also not happy how Google has been tapping into private data streams such as open networks while they capture street views. Just because you are the giant in the search industry you don’t get to do what ever you think. Remember great power comes with great responsibility.
Google just released another new product called Google Demo Slam. So far it hosted under demoslam.com domain. Google Demo Slam will be a site used to showcase cool demos that people make using Google products and technology. I am still trying to figure out exactly how this is going to work and the real difference between something like youtube and this product.
Chill out, It’s not bad as it sounds. Yes, I freaked out when I first saw the news. I did the search and sure enough I saw plenty of voice messages freely available as search results. Not only that I was able play them and actually listen to a personal conversation. After few seconds I stopped playing messages simply because its wrong. But just confirmed if they were really voice messages. It only shows three pages worth of search results. If Google were to list all the Google voice mail messages it should well be beyond three pages of results. That tells me this sounds like a link of test.
I checked to see any of my voice messages are showing up on results page fortunately it didn’t, and this made me think twice continuing with the Google Voice account.
Lately I have been very dependent on my GMail. In addition to send/receive mails, I use it as an information storing location. Example: While I am researching when I find something that might be useful I note it down and save it as a draft. But today I started to experience issues in GMail, I checked the Google App Status Dashboard, yeap its broken.
Summer is almost done and just firing up in all cylinders to get my latest research proposal complete. I will be diving in to Fractal Dimensions. Ok Thats all I am going to talk about it for now because, this My Tracks application is way more interesting than Fractals. Best part about is after the ride it allows me to upload map and data about the ride into Google maps and Google docs. So these are the two routes that I ride most commonly at least till the snow hits the ground.
Both routes are flat but around the Lake Medicine you get inclines which has 6-7% grade but they are short and fun because most of the time lake is on your right (depends on if you ride clockwise around the lake).
Just today I was on my Google Reader page and click the Gmail link, guess what I saw? I was able to see the old days Google Logo with the message, I dont think you get to see this unless you use the way back machine.
Everyday I login to Gmail, everyday I see the beta sign along with the Google Gmail logo. I always wondered, Are they really going to do release this beyond Beta or is it Google’s way of staying out of reliability issue saying that, “Sorry guys we can’t guarantee your emails are safe with us” (As if Google had any down time in their history – respect to Search engine).
Gmail out of Beta
But Today, I saw something different, when I logged in No Beta sign along with the Google Gmail Logo, I thought something wrong. But it was same for my calendar so looks like Google has finally out of its Beta cave.
Google is moving everything to web, and taking over the world. I just opened my Google Voice account and what awsome concept. Imagine what this would do to a small business and single owner businesses.
Recent Comments