|
|
Friday, February 07, 2003 |
Generate the Policy.
I think it would be cool if there was a flag on the Java runtime that just generated a policy file automatically as you ran the app...as the developer you could quickly get a nicely fine-grained policy file appropriate to your app and distribute it. As a user, you could look at the generated policy file and see if it makes sense to grant the application the rights it wants... 1:19:46 PM |
JDK 1.5 EnumsNo sir, I don't like it. Enums in JDK1.5 are a good idea -- they make your code a hell of a lot more readable. But doesn't anybody get that sets of enums are just great? Delphi had a set construct. Each enum gets a unique identifier. You can declare a set of enum. The compiler handles these very efficiently, and just uses numbers for them whenever possible. If the number of bits in an integer is exceeded, you can use a bit vector or something like that. Very fast set operations are possible (then again, Pascal had set operations built into the language).
Why does such a simple concept have such inefficient implementation in Java, and most other languages? |