vaigyanik

May 17, 2007

Bring on Applet 2.0

Filed under: java, web — chunnibabu @ 10:43 pm

Remember the good old days of Web 1.0? There was no Myspace, Blogspot or Wikipedia at that time, but there was Angelfire, Geocities and a large number of student pages in university websites hosting tons of information. They were the ones who made Internet what it is today. Each “webmaster” as they were called those days would display his or her best creative work. It was a world of mostly static web-pages with animated gifs, cheesy backgrounds and low resolution images with liberal use of “Under Construction” banners. Then came Java.

When Java arrived, the term Java and Applet seemed interchangeable and for some time it seemed Java was only meant for creating cool applets to be hosted in browser, pretty much where Flex/Flash is today. In fact applet is what made Java a household name to begin with. Very soon a number of interesting applets sprouted up, adding the right amount of dynamism to the colorful websites. There were a number of scientific applets demonstrating algorithms, evolution, etc. Then there were chat applets popularized by the so called “portals”. Then there were applets with scrolling news (kind of like mashups of today’s world) and applets to do some special jazzy graphics effects on images. At one point Applets were everywhere. I don’t know when it really started, but over the years applet started phasing out from the web and actually many developers now consider them a no-no for web-pages. So what happened? How did applet lose it’s lustre?

Who killed Applet 1.0?

Microsoft

By keeping on bundling an antiquated version of JVM with Internet Explorer. This version wouldn’t run any applet developed with latest java version - no swing, no collections. This is a big handicap for developers. If Microsoft had stopped shipping it’s JVM, more people would have downloaded the latest Sun plug-ins, thus keeping their browser’s up-to-date. Look at Flash, how come most people have the latest version?

Sun

The one thing Sun should have tried in it’s ever popular battles with Microsoft should have been to stop them from shipping that JVM, instead they fought for the opposite which IMO was really stupid. Sun also didn’t make much attempt in tying up with Dell and other PC manufacturers to bundle the latest Sun Java plug-in. Meanwhile, Sun’s focus shifted from Applets to enterprise server side computing - EJB, JMS, and what not. I think the plug-ins were not very well thought out and particularly didn’t handle first time install in a user friendly manner. Not to mention the huge size of the install, breaking backward compatibility and popping up meaningless error messages. In an environment where many desktop apps are moving to web and Google Docs, Maps YouTube, and Meebo are catching up like wild fire, Sun is going to regret it. Flash and AJAX are miles ahead in user adoption (not technology). Also the security folks in Sun went overboard and introduced self-defeating sandbox rules and crazy messages like “Warning Applet Window” and all other assorted security messages that do nothing but scare the users more than mortgage refinance and on-line casino pop-up ads.

Developers

Developers didn’t make it any easier by writing apps that started breaking with newer JVMs, and not taking the time to fix the apps. Also many of these apps were not smart enough to guide the users to install the plug-in when it was not pre-installed in the browser.

System Administrators

Believe it or not, many companies still mandate the use of Microsoft JVM in IE and make it impossible for employees to use a plug-in. This makes it difficult for developers to create applets unless they are keen on writing there own Table and Tree component in AWT ;-).

Applet 2.0

Ok, what has happened has happened. As a developer of Java and Swing apps, I know that it is probably the richest development platform available. You can do anything in Java - there’s an API for everything. Java is open source; there are awesome open source IDEs like Eclipse and Netbeans (which is great for Wysiwyg GUI design); thousands of open source utilities are written in Java; Java has a huge developer base. So why not leverage all this and build on it rather than reinventing the wheel with Flex and AJAX. Once you get over the gloss of Flex, you will realize that except for the XML layout, it doesn’t make life any simpler than Swing. And AJAX is really pushing the limits of a scripting language that was put together for simple scripting needs.

So what can be done? To help us get started, Sun JDK 1.6 plugin is significantly better than previous ones and thanks god Microsoft has decided to phase out it’s JVM. Also more people now use broadband thus significantly minimize the bandwidth issues with applet downloads. A few things that comes to my mind (feel free to add):

1. Create a Applet 2.0 showcase

I am going to keep updating this page with links to cool new applets. If you find one or have developed one, let me know. The more cooler applets we create, the more incentives there will be for people to download the plug-in. Also developers can gain more confidence in the viability of applets by looking at the cool pages. The Sun page is good, but IMO overtly downplays the power of applets.

2. Request to sun

Can we compile our code to a single file of some sort (like swf) instead listing out all the jars. This is a good start. Also please carry on the good work you have been doing lately with the plug-in. Please work with the PC and browser makers to always bundle the latest-plugins and have a means for automatic updates. Make swing prettier out of the box, and please remove the unnecessary messages like “Warning Applet Window”. Also let’s have XUL and please don’t hype up something like Java FX that any developer can see through and know that it is no silver bullet. Guys you have your Silverlight/Flash in Applets, so just build on that.

I do sincerely hope that when desktop like applications are getting more and more prominent in web, the technology that started it all doesn’t fall behind for no good reason. Heck, Java had a JMF video player back in 1997. So why is it that everyone is going ga ga over the Flash player that Youtube and others use? So c’mon people, let’s bring on the Applet 2.0 revolution.

Google Announces Music Player

Filed under: fake news, humor — chunnibabu @ 8:50 pm

From the moment I received a call from Viral Marketman, Google’s product marketing manager, I was frantically contemplating what the secret press conference is about. Today I was blindfolded and taken to a top secret location where the announcement was made. Folks, hold your breath - Google has released Google Listen (Beta), a music player that will directly compete with IPod!

 

“Today, we have taken another big step towards organizing the world’s information,” said Google CEO Eric Schmidt in front of a choosen audience of 1000 press reporters. When asked about how Google is going to provide content for the new player, Eric said “We are in the process of converting all the music in the world into gmp3, Google’s new music compression format”. “gmp3 will make it extremely easy for listeners to find music of their taste,” Eric added.

Google plans to make all the songs freely downloadable. “We believe that obscurity, not record sales, is the no. 1 problem faced by artists today. By making the songs freely accessible, we are doing a great service to the artists,” Google’s Founder Larry Page responded when a few reporters raised copyright concerns. “This is a perfect example of fair use as per the US Copyright Laws”, said David Drummond, Google’s Attorney. “Artists always have the option to opt-out using our simple five page form,” Larry added. Artists who don’t see their music in Google’s database can upload their songs using the soon to be released Google Base.

Google Listen (Beta) will be available by invitation only. Interested users can initiate the invitation process by giving out their own cell phone number, and the cell phone numbers of five friends. “We have carefully installed a invitation process to keep pirates away from our gmp3 music files,” said Sergy Brin, Google’s other founder. After giving the cell phone numbers , users will be required to send in a home video of themselves dancing to and singing “I Love Google”. By doing this, the users give Google the right to display the videos in Google Video. Meanwhile, a Ebay user named GoogleRepresentative has started auctioning invitations.

Omid Kordestani, Google’s Senior Vice President of Global Sales and Business Development, explained the business model behind Google Listen (Beta). “We will have paid voice advertisements played whenever a user attempts to play a song”. To this, Larry Page added: “The advertisements will only be good advertisements. An antenna installed in each music player will track the location of the user at all times and help us deliver highly targetted ads”. Larry and Omid brushed off questions about privacy.

Google Listen (Beta) is released as a Beta now. “The BETA logo is designed to be peelable by the user, and we will let them know when to peel it off,” explained Sergey. Steve Jobs in a statement to the press welcomed fresh competition from Google. Microsoft’s CEO Steve Ballmer followed with a press release announcing a new music player gadget for Microsoft Live. “We will have a music player for our users by early 2019, and users will be able to download music through Microsoft Live,” he said. He further added: “I also want to take the opportunity to reiterate that I have never thrown a chair in my life”.

Blog at WordPress.com.