Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Opening just for visibility, do not merge, this is debugging work done for:
memoryCopy#843People from the JDK are asking for a
.javasources reproducer.With the help of LLM and re-using most of the instruments we have in this repository(test-gen etc.), we built a compiler to Java sources(in
source-compiler) it already passes 25K tests from the testsuite and all the wasi tests too.It has been used to generate the source compiled
MachineofWat2Wasmindecompiled-wabt(it's actually compiled, not de-compiled 😅 all decompiler failed on the.classfiles).This produces a blob of 11Mb of Java source code file that does reproduce the JDK issue.
Hopefully we get it fixed sometime soon.
For the curious, porting highlights:
source-dump) of the generated code was great for both LLM and meDespite the high coverage of testsuite tests we don't want to maintain this code, I see no use cases where generating sources would be better than generating
.classfiles apart from hard core debugging.I'm opening this PR just for tracking purposes and to share what's possible.