News for hackers. Stuff that matters.
Re:Eclipse OpenJ9 – Open-source JVM by kodablah on Saturday September 16, 2017 @02:26PM (#15265886)
So is this OpenJDK-derived? If so, too bad, I've been hoping for a truly independent implementation. If not, does it pass the TCK?
Re:Eclipse OpenJ9 – Open-source JVM by lobster_johnson on Saturday September 16, 2017 @02:46PM (#15266009)
This is IBM's formerly-proprietary J9 JVM, which I believe was developed entirely from scratch, independently of Sun's HotSpot JVM.

J9 actually has its roots in an earlier Smalltalk VM (VisualAge Smalltalk, I think). The source copyrights go back to 1991. Eclipse, of course, was what IBM started after abandoning VisualAge.

It's not a JDK/JRE. J9 must be combined with OpenJDK to be able to run apps.

Re:Eclipse OpenJ9 – Open-source JVM by merb on Saturday September 16, 2017 @03:19PM (#15266196)
> It's not a JDK/JRE. J9 must be combined with OpenJDK to be able to run apps.

well yes and no. if you don't use anything from the standard class library (that's impossible) than not. what I also guess is that you need a java compiler, since it reads that it uses a ibm created "rom file" that comes from java bytecode.

what the most interesting thing about that vm is, is a shared class cache. which is like a *.so file, if one program loads a library and the library is already in memory another program won't add additional memory to the computer, this is a huge win, especially for memory hungry java applications (this already speeds startup extremly)

Re:Eclipse OpenJ9 – Open-source JVM by emmelaich on Saturday September 16, 2017 @03:57PM (#15266419)
They already have a compiler, ECJ, which is included in Eclipse and Tomcat among other things.
Re:Eclipse OpenJ9 – Open-source JVM by merb on Saturday September 16, 2017 @05:02PM (#15266739)
does ecj support indy and newer bytecode? I do not think so, but I guess openj9 already supports java 9 bytecode I'm not sure about the actual bytecode version I guess it was 52 on java 8 but I'm not totally sure about it.

I mean ecj is also not included in openj9, so if you want to strip out any openjdk dependency one would need at least a really basic class lib and a compiler (either ecj or anything else), (but I also think it hears that openj9 includes a compiler https://www.youtube.com/watch?v=96XoG6xcnys at the end he only says that they use the class library from openjdk, but he does not say if anything else and it also looks like it only uses that).

Re:Eclipse OpenJ9 – Open-source JVM by oblio on Saturday September 16, 2017 @04:25PM (#15266557)
ECJ is in Tomcat? What for?
Re:Eclipse OpenJ9 – Open-source JVM by emmelaich on Saturday September 16, 2017 @04:27PM (#15266569)
Compiling Java :-)

To be more precise, a compiler is required for JSP, which is a mixture of html and java that is compiled to servlets.

Theoretically you can compile them ahead of time (before deployment) but as far as I can tell no-one does.

Re:Eclipse OpenJ9 – Open-source JVM by solarengineer on Saturday September 16, 2017 @07:37PM (#15267354)
Those who want to provide only class files and no jsp code use the JSP pre-compilation approach. The JSP folks get compiled to Java servlet byte code the same as at runtime.
Re:Eclipse OpenJ9 – Open-source JVM by dlandis on Saturday September 16, 2017 @09:13PM (#15267714)
> J9 must be combined with OpenJDK to be able to run apps.

No IBM has its own full JDK that you can download, but the rest of it other than the JVM is not being open sourced at this time. That's my understanding at least.

Re:Eclipse OpenJ9 – Open-source JVM by mstoodle on Monday September 18, 2017 @02:14AM (#15273725)
The IBM SDK for Java is based on OpenJDK, just like most (not all) other Java releases that are out there. IBM does not have "its own full JDK".
Re:Eclipse OpenJ9 – Open-source JVM by filereaper on Saturday September 16, 2017 @03:10PM (#15266143)
Ex-J9 engineer here, J9 was built completely in a clean-room. It does pass the TCK tests.
Re:Eclipse OpenJ9 – Open-source JVM by kodablah on Saturday September 16, 2017 @06:47PM (#15267171)
Will they now be denied to use the TCK going forward like Harmony was? If not, why? Because they were proprietary first? Because Oracle likes the Eclipse license better than the Apache one?

Oracle has stated that for open source, only OpenJDK derivatives get access to the TCK.

Re:Eclipse OpenJ9 – Open-source JVM by xbeta on Saturday September 16, 2017 @05:13PM (#15266792)
I was intern'd at IBM Toronto Lab about 10+ yrs ago to add instruction sets for this compiler/JVM. It was fucking awesome experience back then!
Re:Eclipse OpenJ9 – Open-source JVM by nickhalfasleep on Saturday September 16, 2017 @08:58PM (#15267655)
What is the 9 for? Jackknife? Jabbering?
Re:Eclipse OpenJ9 – Open-source JVM by filereaper on Saturday September 16, 2017 @09:26PM (#15267750)
There's some mythology here, perhaps another J9 greybeard can answer. The story I've heard so far goes as follows...

There was some constant for 8K that was mistyped incorrectly, something like instead of:

#define 8K 8192

They mistyped and wrote:

#define 8K 8096

This caused all sorts of bugs and was known internally as the 8K bug. When time came to write the Java VM, they wanted to name it as "post 8k bug" they named it K9, but K9 sounds like a dog (woof) so they decremented the K to land on J9.

At least that's what I've heard...

shrugs

Re:Eclipse OpenJ9 – Open-source JVM by rservant on Monday September 18, 2017 @01:57PM (#15278012)
Re:Eclipse OpenJ9 – Open-source JVM by rservant on Monday September 18, 2017 @01:37PM (#15277866)
This close, but not right. Dogs never entered into the equation. I'll post a blog somewhere with the history and come back here with a link.