Free Newsletters

   All InfoWorld Newsletters
Open Sources | Rodrigues & Urlocker » Sun vs. Scripting Languages

March 14, 2006 | Comments: (0)

Sun vs. Scripting Languages

ActiveGrid CEO Peter Yared is back with some more fodder in the discussion of Sun's hesitant (maybe even late to the game) embrace of scripting languages.

Confounding: Sun vs. Scripting Languages
During my five year tenure at Sun, Graham Hamilton, the Java CTO, killed every initiative to run scripting languages on the Java Virtual Machine.

These include 1999's "javab", which would have run Visual BASIC syntax on the JVM, and 2003's "Java 3", which would have supported optional typelessness for Java objects.

Clearly, the industry trend towards scripting languages like PHP and Ruby has finally had an effect, since Graham has recently sponsored JSR 292: Supporting Dynamically Typed Languages on the Java Platform". The time lag here is similar to the time lag it took Graham to support SOAP in favor of RMI after a ton of resistance, which Sun paid for dearly when they had minimal impact in the development of the web service standards we use today.

It's great that Sun has finally decided to support scripting languages in some way in the next couple of years. However it is clear that this change was done in a very begrudging way, considering that Sun's James Gosling and Tim Bray have recently taken it upon themselves to start publicly slamming scripting languages!


James Gosling, March 12: "There have been a number of languages coming up lately," noted James Gosling today at Sun's World Wide Education & Research Conference in New York City when asked if Java was in any kind of danger from the newcomers. "PHP and Ruby are perfectly fine systems," he continued, "but they are scripting languages and get their power through specialization: they just generate web pages. But none of them attempt any serious breadth in the application domain and they both have really serious scaling and performance problems."

Tim Bray, February 21: "So here's my problem, based on my limited experience with PHP (deploying a couple of free apps to do this and that, and debugging a site for a non-technical friend here and there): all the PHP code I've seen in that experience has been messy, unmaintainable crap. Spaghetti SQL wrapped in spaghetti PHP wrapped in spaghetti HTML, replicated in slightly-varying form in dozens of places. Everyone agrees on PHP's upsides: it's written for the web, it's easy to deploy and get running, and it's pretty fast. Those are important advantages. And I'm sure that it's possible to write clean, comprehensible, maintainable, PHP; only apparently it's real easy not to."


Yet in January, James Gosling states in a News.com interview that "LAMP has certainly become quite viable."

What would be much more helpful is if Sun finally open sourced the Java Virtual Machine so that scripting languages could organically adopt a common JVM. With some leadership on Sun's part, Java and LAMP could merge onto a common virtual machine, and both would benefit greatly.

Previously:
Marketing to Dilbert: Mini-analysis of Sun
Sun coming out of death spiral-McNealy moving on?
Front End Integration-Lightweight Architecture Part 3
Enterprise SOA Apps Take Off on Lightweight Architecture
Google, Amazon, and Yahoo! point enterprise developers towards "lightweight" architecture

Posted by Dave Rosenberg on March 14, 2006 03:36 PM


RATE THIS ARTICLE:





 

  •  
  • COMMENTS




We all know that Peter is a genius, so I am obligated to agree with him. Kidding aside, releasing the JVM under an open source license would have quite a few benefits (greater community innovation, better adoption within the LAMP stack, etc.) This type of infrastructure software has become so commoditized that I do not see how Sun could possibly be getting any measurable benefit by keeping it proprietary.

Posted by: GeekyGirl at March 14, 2006 07:48 PM

Don't forget Jython, the Python interpreter written in (100% pure) Java. I've moved my home finances to Moneydance, a Java application. It has a Jython add-on, so pretty much anything Moneydance doesn't do directly, I can do with a Jython script.

For all intents and purposes, Jython is a Java app. That it's input is a flexible and useful scripting language merely proves Java's usefulness!

Posted by: Ric Werme at March 16, 2006 11:20 AM

What about BeanShell? It is Java without strict typing of objects. We have used it for years. When something written as a scripted language needs to be upgraded for performance, it is easy to move it to pure Java. With a little skill it can be used to write reasonably structured code. However, it should not be used everywhere as it is too easy to write bad code. There is room for both worlds and as always it takes wisdom to decide when to use one or the other.

Posted by: Bob Williams at March 16, 2006 01:29 PM

Yared's comment is seriously misleading. Please follow the pointer and read the entire post. To the extent that I'm questioning anything, I'm questioning PHP specifically; anyone who actually reads my blog (implemented entirely in Perl/Apache/MySQL BTW) knows that I've been banging the dynamic-languages drum long and hard. Jeepers.

Posted by: Tim Bray at March 16, 2006 08:54 PM

Microsoft Mini Spotlight
  • Get Started
  • Port 25 Blogs
  • OSS News
  • Join a Project

{Open Source} Heroes Happen Here

Start today and order your own Hero Hack Pack – which includes Getting Started with Open Source, Windows Server 2008 and Visual Studio 2008 Trial. Each pack is a chance to win a free pass to OSCON 2008.







Technology White Papers

 

InfoWorld Technology Marketplace

» Technology White Papers Library

Technology White Papers by Topic

Technology White Papers E-mail Alert

Find out when the latest white paper is available:
 
 
» BUY A LINK NOW

Sponsored Technology Links