Improving The Java Core Library 37
dautelle writes "Many Java developers are frustrated by the not-so-open process to improve/correct/augment the Java core libraries. Unless you work for Sun or belong to a JSR expert group, there is very little you can do to influence the future of the Java platform. Even the JCP route can be a frustrating one (e.g. JSR-108 withdrawn by Sun because not enough progress made in a timely manner). To address this serious issue, the charter of the Java Addition to Default Environment (JADE for short) has been extended, along with the release of JADE 7.0. Participation to the jade.* package development is truly open (unlike javax.*). The library already provides numerous useful classes, bug fixes, enhanced implementations of existing classes, etc. Hopefully in the near future, the library could become so useful that it becomes a de-facto complement to the JDK."
Interestin library ... this jade ... but ... (Score:4, Interesting)
the thing that disturbs me about this article is that, it seems like the author would like to have this lib in java. i'm against it. because it provides tools to improve your code in many ways, but at the same time, it somewhat brings java down to the c++ like level, where memory losses and "forgotten" objects are quite common mistakes.
as a separate library, i think jade is great and the next time i'm writing something really complicated i'll surely have a look at it. but at the same time i think it should not be included in java's original libraries cause java newbies would surely make a lot of mistakes by using it and then everyone would blame Java for being so buggy and unusable for them. java has a strong and stable baselib which doesn't provide many ways to make mistakes, jade surely has greater opportunities but also greater flawsources.
however i think that sun should somehow support jade's development and offer at least a link to it under it's downloads page, so people could see that the usual oop model is not the limit and also would avoid inventing the wheel in a lot of cases.
i think sun is being conservative, cause it has always been that way, and it seems a quite secure and reasonable, cause most java apps are more secure and stable than anything else around. they are just concerned about java's reputation and dont want to rush items into their language which would overhaul new java developers and lead to popularity loss of java.
many cool libraries could be real battleaxes in the hands of java, but at the sametime, they could backfire, which sun is just trying to avoid.
keep up the good work on jade
Re:Interestin library ... this jade ... but ... (Score:4, Informative)
Valgrind only fixes memory allocation problems which you can reproduce in a test situation. It doesn't fix memory allocation problems which occur when your application reaches the field and can be subjected to long runs with unpredictable inputs.
Garbage collection IS a modern programming tool. Why are you so afraid of it?
Re:Interestin library ... this jade ... but ... (Score:2)
xml parser (Score:2, Interesting)
New Jade Version Released (Score:4, Insightful)
W3C use similar methods to develop the web standards we use every day.
Jade is a useful and in particular thier XML parsing libraries are interesting.
Look deeper and you see some interesting components. I am a little perplexed at the underlying ethos of trying to patch the core libraries with this library though.
I think the whole of Jade should be living in commons.apache.org somewhere, there is an example in invaluable libraries that I take for granted every day. That doesn't mean another programmer does, or that they should be shipped by default.
Kudos on the new version! If I ever need it, I will surely be grateful!
Re:New Jade Version Released (Score:4, Informative)
Apache Commons has been closed. Nothing lives there now.
Re:New Jade Version Released (Score:3, Informative)
jakarta.apache.org/commons/ (Score:1)
http://jakarta.apache.org/commons/
Re:New Jade Version Released (Score:5, Informative)
You mean: http://jakarta.apache.org/commons/ [apache.org]
The Jakarta project is Apache's Java efforts. commons.apache.org used to hold common libraries such as APR for Apache HTTPD. These were mostly C libraries, I believe.
Apache Jakarta Commons (ok, so Apache needs to clean up and simplify there project namespace), rocks.
Here's there summary for commons-collections
* Bag interface for collections that have a number of copies of each object
* Buffer interface for collections that have a well defined removal order, like FIFOs
* BidiMap interface for maps that can be looked up from value to key as well and key to value
* MapIterator interface to provide simple and quick iteration over maps
* Type checking decorators to ensure that only instances of a certain type can be added
* Transforming decorators that alter each object as it is added to the collection
* Composite collections that make multiple collections look like one
* Ordered maps and sets that retain the order elements are added in, including an LRU based map
* Identity map that compares objects based on their identity (==) instead of the equals method
* Reference map that allows keys and/or values to be garbage collected under close control
* Many comparator implementations
* Many iterator implementations
* Adapter classes from array and enumerations to collections
* Utilities to test or create typical set-theory properties of collections such as union, intersection, and closure
For those doing Swing programming, also check out Java Desktop Network Components (JDNC [java.net]) project (this isn't from Apache, unfortunately). The documentation isn't that great yet, but the API [javadesktop.org] is all you need.
Re:New Jade Version Released (Score:3, Insightful)
Also, some of the features you named are already in java 1.4, such as identity maps [sun.com], reference maps that allow garbage collection [sun.com], adapters for converting collections to/from enumerations [sun.com] and arrays [sun.com].
An alternative ... (Score:5, Insightful)
As an alternative to trying to contribute to the Sun java and javax libraries, people could contribute to the Classpath libraries [gnu.org]. Getting these complete means effort could then be expended on useful extensions and perhaps some optional improvements to the standard libraries. If Classpath could get some serious impetus (from IBM for instance), then Sun may have to open the development of their reference implementation or risk being left behind.
Re:An alternative ... (Score:4, Interesting)
I'm confused (Score:4, Insightful)
When I read the intro, I was expecting something like a Java version of C++'s Boost libraries -- things the standard library missed or didn't do well, peer-reviewed to keep the quality up, etc.
When I read the linked page, I found more like a Java version of C++ -- it looks as though a lot of those libraries are there to overcome the very strengths/weaknesses (depending on your application) that most differentiate the two languages. If you want to use C++, why not just use C++?
Alternative to the core libs (Score:2)
Re:I'm confused (Score:2)
When I read the linked page, I found more like a Java version of C++ -- it looks as though a lot of those libraries are there to overcome the very strengths/weaknesses (depending on your application) that most differentiate the two languages. If you want to use C++, why not just use C++?
I don't see why you think JADE is a "Java version of C++". If you're referring to the
How times change... (Score:5, Insightful)
What about MS? I think that they also wanted to "embrace and extend" Java as well at some point.
My point is, that sometimes I feel like people think free software should always get its way as a matter of principle. The truth is, that you are free to write an alternative classpath. and distribute it with your own VM as it is. Quit moaning and join in with the guys at GNU Classpath [gnu.org]. Sun doesn't mind. It's focusing on its own. That's what MS did.
And this is bad why? (Score:5, Insightful)
Yes, people could cram more and better functionality in there, and everyone is sure their idea will just make Java better; but every new version makes Java less and less portable. Adding the same functionality in a non-core library is every bit as effective, but doesn't add the additional requirement for a new version, and will avoid breaking and deprecating enormous existing bodies of code.
If you need new or better/differently implemented functionality, you are free to add it. If Java is unable to accomodate the addition outside the standard library, then the platform has failed.
Don't get me wrong -- I'm a fan of Java. But, if the core of a language needs to be constantly updated, its an unstable language, and bad for production development. I think Java can be stable, but it requires that the developers do just what they are. Keep the standard libraries standard, and not full of every shoehorned-in functionality they can think of. Its already bloated enough.
Universally true (Score:5, Interesting)
Re:Universally true (Score:2)
Re:Universally true (Score:5, Insightful)
Re:Universally true (Score:2)
Re:Universally true (Score:2)
OTOH, my guess is that having Sun provide such libraries makes life easier license-wise, but IANAL.
Re:Universally true (Score:2)
This is a little misleading. I sat on the ISO C++ committee's library working group for quite a while (and will resume doing so when circumstances permit), and we were always prepared to consider well thought-out proposals for library extentions (go check out Boost [boost.org] for several examples). All ISO committees have a route for interested parties to make changes to a standard, altho
cern.colt (Score:5, Informative)
the CERN Colt Libraries [home.cern.ch]
Perplexed (Score:4, Insightful)
It's cute, but it won't fly... (Score:3, Informative)
JVM and bytecode updates are painful (can you say "Porting and Deployment" without winceing?) so those bits are a non-starter for general use, and the rest of it could (theoretically; I don't know how much it depends on the parts I've just rejected out of hand) just as happily be in a third-party lib, and they're something that Java's really good at.