Java the next generation, 5000 Euro Reward

From: Bernhard Fastenrath (Bernhard.Fastenrath_at_arcor.de)
Date: 03/11/04


Date: Thu, 11 Mar 2004 12:01:22 +0100



Java the next generation
Some ideas for a next generation Java:



Java TNG

Java the next generation

Some ideas for a next generation Java:
Java device driver
This would be a new flavor of Java designed for the use in ROM-abled device drivers. Have a look at jnode.sourceforge.net if you think that's not possible.
Multithreaded Java Desktop
The single-threaded model of Swing is okay for a single application. If you want to run several applications in a single desktop applicaton Isolates (Java 1.5) aren't really the solution. You need a Desktop that can run each Application on its own Swing thread but in a common JDesktopPane, for example.
POSIX
I suggest a javax.posix package that offers all of the missing (and often needed) functionality of a posix subsystem. Even windows is POSIX compliant to a certain degree.
java.io, java.nio cleanup
I think this is a bit of a mess. There are some other areas of Java which are in need of a garbage collection but java.io/java.nio would certainly require some improvements, even if backward compatiblity would be broken.
SDL AWT
An implementation of AWT on top of the SDL library would be a very good idea for desktop applications and games.
JavaCard
The JavaCard specification could be extended to include a profil for USB memory sticks. I think memory sticks are a much more useful and commonplace token to attach to your computer than a SmartCard. (just a thought: A 5-digit input device in the form of a combination lock on the memory stick would be a secure input device to enter a PIN :-)
Improved Exception handling
Exception handling could be improved by allowing lists of exceptions for the same catch block (e.g.: try {...} catch (Ex-A, Ex-B, Ex-C) {...}) and another bit of syntactic candy would be to catch Exceptions thrown in the exception handling code without an additional try-catch block but a specialized catch clause (e.g.: try {...} catch (Ex-A) {...} failsafe {...}). I think this would make it easier to enforce certain rules for exceptions in exception handling code. Entering a failsafe block could, for example, always be considered a programming error while exception handling can be both, the normal flow of control or a programming error.
Import-as
The import statement could allow to rename a class for local use. If you have two classes with the same name in different packages you have to uuse the fully qualified name to address the second class. An import-as statement would allow to use a different classname which doesn't have to be fully qualified:
import java.sql.Date as SqlDate.
Installation
An installation API (javax.install) could be an interface to the system's package management system and allow to install Java programs in a way the local package management understands and solve JAR versioning and classpath problems at the same time just by enforcing a certain set of rules.
A lightweight message passing API
Something like MessagePort would be nice: A standardized way to send an event to another thread. This is quite useful, especially for Swing programming but using invokeLater() and normal events is only about half the thing it could be.

I offer a reward of 5000 Euro if anybody tells me how a streetgame
(International Money Game) manipulates the people around the player.
I'm currently trapped in something like that and somebody manipulates
everybody I meet and radio or TV programs I watch or listen to.

http://www.fastenrath.net/, http://slashdot.org/~fastenrath/
Bernhard Fastenrath
Steinfelder Gasse 1, 50670 Koeln, Germany
fon: +49-173-5166326
fax: +49-69-13306976636
email: fasten@hrs.com



Relevant Pages

  • Re: On Java was Re: cross language encryption library for c++ and java
    ... Yes, straight C can be highly effective, and ... For example in my recent work Java ... As for exception handling that's coo and all no real gripes there, ... So it isn't like you can't clump error checking/handling. ...
    (sci.crypt)
  • Java the next generation, 5000 Euro Reward
    ... Some ideas for a next generation Java: ... Exception handling could be improved by allowing lists of exceptions for the ... Entering a failsafe block could, for example, always be considered a programming error while exception handling can be both, the normal flow of control or a programming error. ...
    (comp.lang.java.databases)
  • Java the next generation, 5000 Euro Reward
    ... Some ideas for a next generation Java: ... Exception handling could be improved by allowing lists of exceptions for the ... Entering a failsafe block could, for example, always be considered a programming error while exception handling can be both, the normal flow of control or a programming error. ...
    (comp.lang.java.programmer)
  • Re: Exception Jargon
    ... Remember it is part of the exception handling, ... to execute it just prior to the exceptional function exit. ... stackframes) shouldn't bother you as a Java coder. ...
    (comp.lang.java.programmer)
  • Use Jesus Christ
    ... > programming until very recently. ... >, but I've occasionally tried to understand Smalltalk ... In Java I've mostly been limited to server-side ... Object oriented design is a mental picture of objects and messages. ...
    (comp.object)