Growing jextract

Christoph Läubrich laeubi at laeubi-soft.de
Fri Feb 16 16:14:14 UTC 2024


Hi Maurizio,

that sounds interesting, jextract is really a very useful tool, so maybe 
its a good opportunity to ask will it be part of the standard jdk 
distribution one time so one don't need to download it separately?

I also wonder now that it will become final in 22, will there be some 
kind of --release flag so one can generate code that is compatible with 
Java 21 and 22 (e.g. only using API that has not changed?), maybe even 
if the API evolves in later versions? or will one always need to make 
sure our self in some ways?

best
Christoph


Am 16.02.24 um 16:50 schrieb Maurizio Cimadamore:
> Hi,
> with JDK 22 near us, we have spent some quality time with jextract, to 
> make sure the code it generates is as good as it can be ahead of the 
> finalizaton of the FFM API. This resulted in several changes, both in 
> the implementation (so, invisible to jextract users) and in the 
> generated code, as we cleaned up the translation strategy to better 
> adhere with the core principles behind the jextract tool. These changes 
> are captured in details in this document:
> 
> https://cr.openjdk.org/~mcimadamore/panama/jextract_changes.html
> 
> It might be a good time to take the latest jextract for a spin (using 
> your favourite C library!) and report back, in case we missed anything. 
> You can find the latest sources in this branch:
> 
> https://github.com/openjdk/jextract/tree/panama
> 
> Binary snapshots of this newer version are also available here (note 
> that MacOS/Arm64 builds is also supported now):
> 
> https://jdk.java.net/jextract/
> 
> Cheers
> Maurizio
> 


More information about the panama-dev mailing list