-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate IR definitions by annotation processor #11498
Comments
Initial step: Which specific IR element should get reimplemented via these annotations and estimate |
To prove that the generated IR elements can work, let's start with migrating the simplest possible IR element: Empty. The new implementation with annotations is in Empty.java. I will try to fix all the tests if that is simple enough. |
Pavel Marek reports a new STANDUP for today (2024-12-03): Progress: - Figuring out the very first step in the PoC PR: Migrate CallArgument It should be finished by 2024-12-15. |
Pavel Marek reports a new STANDUP for today (2024-12-04): Progress: - Example of generated class published as gist - #11267 (comment)
|
Pavel Marek reports a new STANDUP for today (2024-12-05): Progress: - Revamped the implementation to the superclass approach.
|
Pavel Marek reports a new STANDUP for yesterday (2024-12-10): Progress: - Generated super class should be abstract.
|
Pavel Marek reports a new STANDUP for today (2024-12-24): Progress: - Generated super class is abstract
|
Pavel Marek reports a new STANDUP for today (2024-12-27): Progress: - Small refactoring of pattern matches - #11943
|
Pavel Marek reports a new STANDUP for today (2024-12-30): Progress: - The huge PR #11770 is now ready for review - I have managed to migrate |
Pavel Marek reports a new STANDUP for today (2025-01-03): Progress: - Generate jsut a single constructor matching subtype's ctor.
|
Pavel Marek reports a new STANDUP for the provided date (2025-01-06): Progress: - Fixing issues with |
Pavel Marek reports a new STANDUP for today (2025-01-08): Progress: - Still fixing some issues with
|
Done in #11770 |
In the current definition of the IR, there is a hierarchy of traits and case classes. Majority of the code inside these case classes is highly repetitive.
There is PoC in #11267 that already contains the definitions of the annotations and the processor.
The ultimate goal of this task is to:
runtime-compiler
that manipulates with IR either stays completely the same, or is changed just cosmetically, like adding few more named arguments to a method call that previously had a default value.The text was updated successfully, but these errors were encountered: