← Back to context

Comment by pshirshov

3 days ago

Well, it's complicated. The original jdk compliance tests are notoriously hard to deal with. Currently I parse nearly 100% of positive testcases from JDK 7 test suite (in one of Java 7 branches) but I only have several dozens of true end to end tests (build .java with jopa, validate classfile with javap, run classfile with javac).

So, I can't tell how good it actually is but it definitely handles reasonably complex source files with generics (something the original compiler was unable to do).

The actual goal of the project is to be able to build at least ANT to simplify clean bootstrap of OpenJDK.

That is perilously close to the usual:

"AI DID EVERYTHING IN A DAY"

"How do you know it works?"

"... it just looks like it does"

Like when I ask AIs to port sed to java, and it writes test cases ... running sed on a CLI and doesn't implement the full lang spec no matter how much prompting I give it.

  • Well, at least the emitted bytecode validates with javap and a lot of stuff definitely runs on real jvm.

    • I think the criticisms are too often dismissed as moving the goalposts or ignorant of potential, but short of recreating the active open bugs in Java, you've created a different thing whose differences have to be managed and it is unclear how helpful that may be despite the working implementations of subsets.

      1 reply →