4 ms·
You do realise that Oracle's JVM isn't the only one and there are many open source JVM alternatives. Quite a few of which are designed for lightweight systems:
by threeseed 12y ago
You do realise that Oracle's JVM isn't the only one and there are many open source JVM alternatives. Quite a few of which are designed for lightweight systems:
http://en.wikipedia.org/wiki/List_of_Java_virtual_machines http://en.wikipedia.org/wiki/List_of_Java_virtual_machines
And I have no idea what you mean by baggage. I am assuming you mean "features" like JNI, JMX etc ?
If that is the case then the modularisation of the JVM is something that has been underway for a number of years now. It is targeted for Java 9 release:
http://openjdk.java.net/projects/jigsaw/ http://openjdk.java.net/projects/jigsaw/
And there is no difference in the way Oracle or Sun has managed the JVM. Changes are still made through the JSR/JEP process.
And finally again no idea what you mean by countess Java developers wanting to reuse their knowledge but in a different environment.
Android is already an option as is Swing but honestly does anyone care about desktop apps these days ?
- bjourne 12y agoBaggage: http://stackoverflow.com/questions/313584/what-is-the-concept-of-erasure-in-generics-in-java http://stackoverflow.com/questions/313584/what-is-the-concep... Yes there are many JVM:s but most of them aren't any good.
- mike_hearn 12y agoThey're working on real generics for the JVM, but it's a lot of work, especially to preserve compatibility (which is why it wasn't done beforehand). If you throw out compatibility it's still a lot of work though, plus you no longer have any of the libraries. I guess if you mean by "not any good" they're slower/less featureful than the original HotSpot JVM, then, well, yes..... you get what you pay for (in terms of resource usage).
- bjourne 12y agoWhere have you heard that? Generics were implemented using type erasure long ago because it was deemed to hard and would break to much existing code to implement them correctly. What has change to make it feasible now? Not saying you're wrong but I haven't seen any mention of any work in that direction.
- mike_hearn 12y agoLook for project Valhalla. It's doing value types, which means you will be able to write List<int> amongst other things. Obviously that means the int type cannot be erased in that context. Nothing in particular has changed, but full generics C++ style imply value types, and value types are now on the table whereas before they were not (other higher priorities, I guess).
- neilellis 12y agoI mean we carry stuff around from the days when we (the Java community) felt 'more is good' - you know the days of spit Java Blueprints. > And there is no difference in the way Oracle or Sun has managed the JVM Yet coincidentally more positive changes have happened to the language in the last 3 years than the previous 10? I see a language that was dying on it's feet coming back to life - so hence my feelings about Oracle's stewardship (right or wrong!). > And finally again no idea what you mean by countess Java developers wanting to reuse their knowledge but in a different environment. Almost every Java programmer I know and/or meet has their 'other language'. That they use to solve problems that Java has failed in. But a common frustration is the need to relearn a similar but subtly different syntax. Concrete examples are NodeJS (and hence Nashorn, Vert.x et al) for lightweight format neutral APIs. Android for mobile :-) so hat's a win. Go for systems (Python in the past). Objective-C et al Desktop. For me there is no concrete reason why we can't have these in Java (language). But in doing so we need to be willing to throw away components that don't fit. I.e. existing APIs, existing philosophies. Java is much more than the language, however so when tackling problems that aren't large scale serverside applications we need to adapt if we are to reuse. This is an area that I very much am interested in seeing develop. My specific case in hand is Android - which reuses Java skills but has a lot less to do with normal Java programming. Hope that clarifies a bit.