From Panama 17 to 19, ability to get M1?

Gavin Ray ray.gavin97 at gmail.com
Wed Dec 28 16:25:41 UTC 2022


There is no jextract for JDK 20 or Panama JDK20 Preview API with the Arena
refactor available at the moment, you'll have to build both of them from
source unfortunately
The OpenJDK 20 EA26 builds don't contain the Arena changes or the jextract
tool

On Wed, Dec 28, 2022 at 11:24 AM Martin Pernollet <
martin.pernollet at protonmail.com> wrote:

> Hi,
>
> About JExtract containing samples seamingly to JDK20 : where can I find
> JDK20 for Panama?
>
> I just downloaded JDK20 EA Build here <https://jdk.java.net/20/> but
> jextract was not part of the distribution.
>
> Thanks,
>
> Martin
>
> Envoyé avec la messagerie sécurisée Proton Mail <https://proton.me/>.
>
> ------- Original Message -------
> Le mercredi 28 décembre 2022 à 17:01, Martin Pernollet <
> martin.pernollet at protonmail.com> a écrit :
>
> Thank you. I know these documents and rather lacks complete exemples that
> can work for an identified JDK version.
>
> I went back to JExtract samples, especially the opengl teapot
> <https://github.com/openjdk/jextract/blob/master/samples/opengl/Teapot.java>,
> but I can't compile it with JDK 19... seamingly the imports refer to the
> JDK 20 package names
> <https://github.com/openjdk/jextract/blob/master/samples/opengl/Teapot.java#L32>
> .
>
> What I still miss is
>
> import static jdk.incubator.foreign.CLinker.C_INT
>
>
> and other C_TYPE.
>
>
> They where static constants in JDK17 but then have gone. Where should we
> find this as of JDK19?
>
> Thanks in advance!
>
> ------- Original Message -------
> Le mercredi 28 décembre 2022 à 14:34, Maurizio Cimadamore <
> maurizio.cimadamore at oracle.com> a écrit :
>
> Hi,
> I suggest you start looking at some of the documents we have available to
> get started - for JDK 19 you can look here:
>
>
> https://github.com/openjdk/panama-foreign/blob/21452ec32b27ba906ec06253e4a7af9037728174/doc/panama_memaccess.md
>
> In short, you always need to provide a layout constant of the right kind
> when doing allocation using an allocator (and also when doing dereference).
>
> Value layout constants are provided in the ValueLayout class (e.g.
> ValueLayout.JAVA_DOUBLE).
>
> If you use jextract, additional constants (e.g. C_INT, C_LONG, ...) will
> be provided.
> On 23/12/2022 16:20, Martin Pernollet wrote:
>
> Hi,
>
> Would anyone suggest examples showing how to use Panama 19 instead of 17?
> A couple of things have changed ( e.g. how to use the new
>
> locator.allocateArray(new ValueLayout.OfDouble(
>
> , and deal with all other datatypes, strings, etc).
>
> One additional question : when will ARM be supported to run panama on
> Apple M1?
>
> Apple M1 is mostly supported on JDK 19 - modulo few corner cases which
> have been addressed in Java 20.
>
> Maurizio
>
>
> Regards,
>
> Martin
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/panama-dev/attachments/20221228/f4466708/attachment.htm>


More information about the panama-dev mailing list