Posted by editor
on July 15, 2005 at 5:15 AM PDT
Perl? Java? Yes! also...
Feature article: Perl meets Java in "Sleep"
Weblogs: JAXB XJC, J2ME interest, and joint copyright assignment
Also in Java Today: XML as SQL-WebApp bridge and Resource Description Framework
Projects and Communities: Open Language Tools and Dunamis
Forum Postings: GlassFish build problems and fixes and is "bigger" worse?
java.net poll: EE, SE, ME, or Card?
Perl? Java? Yes!
Perl and Java seem like unlikely bedfellows. If you measure lines of code, I think Java gets interesting right about the point that Perl stops being manageable. As always with these generalizations, your mileage may vary. Still, that's one of the reasons we have many different languages, each with their own sweet spots of functionality.
But why not have the best of both worlds? Rather than using Java's rather ornate regular expressions package, sometimes you do just want to throw down one or two lines of Perl code and be done with it, and then be able to continue with your Java work.
This is what led Raphael Mudge to create Sleep , a Perl-like language implemented in and with tight ties to Java. In the
Feature Article ,
Perl on Java? An Introduction to the Sleep Language , he writes: "Perl is an incredibly powerful language for text and data processing. Perl excels at taking input, extracting stuff from it, chewing it up several hundred times, and finally, outputting the mess however the programmer would like. Perl is often referred to as the duct tape of the internet. This is due to its many uses as a "glue"-type language." He goes on to show how Sleep can provide this type of "glue" for disparate parts of your Java work.
Jim Driscoll addresses the Newest Concern on Sun's Open Source Strategy in today's Weblogs . "OK, there's a new concern that a few people raised about Sun's Open Source strategy - the Joint Copyright assignment. I'll try to explain why its not a Sun Evil Plot(tm), and why we're doing what we're doing. I'll also give other examples in industry of folks who are doing the same thing, and explain why."
Kohsuke Kawaguchi has some advice for Invoking XJC from command line : "The JAXB RI distribution ships with xjc.sh and xjc.bat for invoking XJC from a command prompt. JWSDP also has xjc.sh and xjc.bat, but their contents are different. I'm sure these files are there for a reason, but personally, I hate those scripts. There's easier way to invoke XJC from command-line."
Raising interest in J2ME ? Vikram Goyal says "it will only take one well thought, commercially successful, mainstream application that will help lift the J2ME market. I am sure that the day is not too far."
In Also in
Java Today ,
relational databases return rows, object databases return objects. But
what if a database returned XML? Alexander Prokhorenko and Olexiy
Prokhorenko write: "although XML-oriented databases are already on the
market, they are not yet ubiquitous. Keeping in mind the popularity of
XML, the developers of relational databases are moving forward by adding
XML compatibility to their products." In the dev2dev feature XML as a Bridge between SQL and Web Applications , they show how this approach can
be made to work, and the advantages of taking this XML and producing
dynamic web pages by simply applying XSL to it.
"Similarly to how XML became the well-known standard adapted by many software vendors for data exchange, Resource Description Framework (RDF) is going in the same direction for describing and interchanging metadata." The article Easily maintain RDF metadata models explains how to use custom utilities developed with the Jena RDF API for managing RDF models stored in either a relational database or a file.
In Projects and
the Open Language Tools are a set of translation tools that aim to make the task of translating software and documentation a lot easier. Initially, they comprise of a full-featured XLIFF Translation Editor and a set of XLIFF file-filters for a number of documentation and software file formats.
One limitation of java.lang.reflect.Proxy is that it can only accept interfaces. The Dunamis framework uses a dynamic delegation pattern to provide Proxy-like behavior to abstract and concrete classes. This Patterns Community project is described further in an ONJava article .
In today's Forums ,
dbolla criticizes the thinking behind the assertion
Re: Bigger is worse for Java 6+ : "When I see this kind of bold statement I really start thinking of the reasons for the original post. Did the original post try to solve a problem ? Was it spreading FUD ? For what I understand the post says: Java is big -> therefore -> people do not use it. As a further claim .NET does not need downloading -> therefore -> people will use it. To me this is just professional FUD. A positive approach would be: How can we campaign to have Java in every desktop in the same way as Flash is available ?"
is working through a GlassFish problem where build fails on ReadOnlyBeanContainer
"I have tried multiple checkouts on multiple machines and it looks like HEAD has a syntax error in appserv-core/src/java/com/sun/ejb/containers/ReadOnlyBeanContainer.java. The inner class EntityContainer.CacheProperties is private and thus inaccessible to ReadOnlyBeanContainer according to my javac. I am compiling with JDK1.5.0_04, so maybe this is a visibility change introduced in Java5. I have a patch..."
The new java.net poll asks "Which Java platform are you personally most interested in?" Cast your vote on the front page , then join the discussion on the results page .
In today's java.net
News Headlines :
Registered users can submit news items for the
href="http://today.java.net/today/news/">java.net News Page using our
form . All submissions go through an editorial review before being
posted to the site. You can also subscribe to the
href="http://today.java.net/pub/q/news_rss?x-ver=1.0">java.net News RSS
Current and upcoming Java
Registered users can submit event listings for the
href="http://www.java.net/events">java.net Events Page using our
href="http://today.java.net/cs/user/create/e"> events submission form.
All submissions go through an editorial review before being posted to the
Archives and Subscriptions: This blog is delivered weekdays as
Today RSS feed . Also, once this page is no longer featured as the
front page of java.net it will be
archived along with other past issues in the
Perl? Java? Yes!