Add support for Ahead-of-Time (AOT) compilation
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 9.8k
- Forks
- 1.9k
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 41
Description
Will be great if Retrofit will generate interfaces implementation at compile time. Something like Micronaut does.
https://github.com/micronaut-projects/micronaut-core
Micronaut uses Ahead of Time (AOT) compilation to pre-compute your applications requirements at compile time. The result of this is significantly lower memory requirements, faster startup time, and reflection free framework infrastructure.
This will also make possible to better integration with GraalVM.
Another great example is Micronaut Data.icronaut Data is a database access toolkit that uses Ahead of Time (AoT) compilation to pre-compute queries for repository interfaces that are then executed by a thin, lightweight runtime layer.
https://github.com/micronaut-projects/micronaut-data
https://micronaut-projects.github.io/micronaut-data/latest/guide/
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No Feign files, tests, or entry points are identified in the issue. Start by reviewing Feign's existing Java interface implementation approach and the linked Micronaut and Micronaut Data AOT designs; done would require an agreed scope and compile-time generated implementations with the stated GraalVM and reflection-free goals.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100