That’s One Gallopin’ Mustang, Sun!



Email    print   
October 1, 2006 —  (Page 1 of 2)
Unlike some of my more austere colleagues, I find what Sun is doing with the new releases of Java to be mostly good, and certainly exciting. Personally, I have felt this way since the Java 5 release. In my coding work these days, I use nearly all the features that release gave us. Generics, enums, annotations, varargs, printf(), the new for-loop—pretty much everything. I like the syntactic sugar and the convenience they bring, so I use them wherever I can.

We can all debate about whether these additions were too little, too late. However, as I have pointed out before, I really don’t think it’s too late for Java in the way Bruce Tate (of “Beyond Java” fame) and the legions of Ruby enthusiasts do. The changes might be too little, but Sun has a bunch of new stuff in store for Java 6, code-named Mustang, that’s got me wondering whether I should switch over even before its final release (currently set for October). Mustang also has one peculiar addition, which I’ll discuss shortly.

An improvement that will be of interest to many readers is the incorporation of a bunch of XML and Web services technology from Java EE, combined with some annotation magic. You now can define a function and, with the single @WebService annotation, convert it into a Web service. (And if you want to test it on the spot without uploading your classes to the corporate Web server, you can use the built-in, barebones HTTP server.) It’s pretty much that simple: An annotation and a pair of import statements are also needed.

Another feature, which will gladden the hearts of the scripting enthusiasts budding within us all, is the addition of a new bytecode, invokedynamic, that makes scripting engines embedded into Java much more efficient. The bytecode facilitates the execution of methods in the absence of type information. (Essentially, it permits the code to do non-Java things. While this addition is being done strictly to support embedding languages that use duck typing, one has to wonder whether this is not laying the groundwork for more scriptinglike Java syntax in the future.)




Pages 1 2 


Share this link: http://sdt.bz/29602
 
Most Read Latest News Blog Resources

Add comment


Name*
Email*  
Country     


  • Comment
Loading




close
NEXT ARTICLE
SOALink Alliance to Go One-on-One
What is a service-oriented architecture? What’s the best way for two companies to connect their data systems as trading partners? Read More...
 
 
 
 
News on Monday
more>>
SharePoint Tech Report
more>>


   

 
 

Download Current Issue
FEBRUARY 2012 PDF ISSUE

Need Back Issues?
DOWNLOAD HERE

Want to subscribe?


 
blogs tab
Are you at risk for burnout?
Burnout is a severe problem and it can strike at any time. Here's how to tell if you are nearing the edge.
02/09/2012 02:16 PM EST

Agility, mom, and apple pie
If we're to evaluate the state-of-the-art in software development, we should start with the values espoused in the Agile Manifesto.
02/07/2012 11:57 AM EST

RIM woos developers with free tablet
How do you get more apps ported to the BlackBerry PlayBook? By giving every developer a free tablet, of course!
02/04/2012 01:57 PM EST

GitHire: Use Headhunters to Find Your Perfect Programmer
Are you a hiring manager tired of scouring the job boards? Check out this new service that will find 5 people interested in your jobs.
02/03/2012 12:17 PM EST

Facebook claims hacker cred
Facebook's SEC S-1 filing form includes a short essay on the Hacker Way by Mark Zuckerberg himself.
02/02/2012 08:26 AM EST

Ryan Dahl steps down
Ryan Dahl, creator of Node.js, steps back from his position as gatekeeper for the project.
02/01/2012 04:58 PM EST

 
Events calendar tab
2/13/2012 to 2/16/2012
Santa Clara
TechWeb

2/26/2012 to 2/29/2012
San Francisco
BZ Media

2/27/2012 to 3/2/2012
San Francisco
RSA

3/4/2012 to 3/7/2012
Las Vegas
IBM Tivoli

3/5/2012 to 3/9/2012
San Francisco
TechWeb