Re: JEP 442: Foreign Function & Memory API => why is it again preview API?

2023-05-17 Thread Kasper Nielsen
> In contrast the foreign memory API is very stable already since Java 19 and > the changes were minimal in 21. If you take a look at differences from Java 20 to Java 21 on Java Almanac [1] for java.lang.foreign. I wouldn't really call it minimal. Lots of classes and methods were added and

Re: JEP 442: Foreign Function & Memory API => why is it again preview API?

2023-05-17 Thread Maurizio Cimadamore
On 17/05/2023 08:28, Uwe Schindler wrote: # You changed the lifetime abstractions in Java 20 and again in 21. To me this is 2 rounds. After 19 people were not happy, so you added 20. In 20 there was some additional cleanup (in my impression it was a step back to Java 18 state just with

Re: JEP 442: Foreign Function & Memory API => why is it again preview API?

2023-05-17 Thread Maurizio Cimadamore
Hi Uwe, * If there are changes again would that mean we get another preview round? --- unfortunate! This seems to be indeed the case for most of the stuff we finalize. E.g. Loom and amber feature were finalized pretty much "as is" after a round of very (very) light changes. In fact,

Re: JEP 442: Foreign Function & Memory API => why is it again preview API?

2023-05-17 Thread forax
- Original Message - > From: "Uwe Schindler" > To: "Remi Forax" > Cc: "core-libs-dev" > Sent: Wednesday, May 17, 2023 9:13:35 AM > Subject: Re: JEP 442: Foreign Function & Memory API => why is it again > preview API? > Hi

Re: JEP 442: Foreign Function & Memory API => why is it again preview API?

2023-05-17 Thread Uwe Schindler
, 2023 5:38:32 PM Subject: JEP 442: Foreign Function & Memory API => why is it again preview API? Hi, Hi Uwe, yesterday Apache Lucene got the information that JDK 21 got the project panama JEP 442 update and I implemented it already in our source tree. Unfortunately the API is again marked &

Re: JEP 442: Foreign Function & Memory API => why is it again preview API?

2023-05-17 Thread Uwe Schindler
Hi Remi, thanks for the reponse! yesterday Apache Lucene got the information that JDK 21 got the project panama JEP 442 update and I implemented it already in our source tree. Unfortunately the API is again marked "preview", but JDK 21 is "LTS release". Many of our users (Elasticserach, Solr)

Re: JEP 442: Foreign Function & Memory API => why is it again preview API?

2023-05-16 Thread Maurizio Cimadamore
On Tue, May 16, 2023 at 12:28 PM Remi Forax wrote: - Original Message - From: "Uwe Schindler" To: "core-libs-dev" Sent: Tuesday, May 16, 2023 5:38:32 PM Subject: JEP 442: Foreign Function & Memory API => why is it again preview API? Hi, Hi Uwe,

Re: JEP 442: Foreign Function & Memory API => why is it again preview API?

2023-05-16 Thread -
Liang On Tue, May 16, 2023 at 12:28 PM Remi Forax wrote: > > - Original Message - > > From: "Uwe Schindler" > > To: "core-libs-dev" > > Sent: Tuesday, May 16, 2023 5:38:32 PM > > Subject: JEP 442: Foreign Function & Memory API =&g

Re: JEP 442: Foreign Function & Memory API => why is it again preview API?

2023-05-16 Thread Remi Forax
- Original Message - > From: "Uwe Schindler" > To: "core-libs-dev" > Sent: Tuesday, May 16, 2023 5:38:32 PM > Subject: JEP 442: Foreign Function & Memory API => why is it again preview > API? > Hi, Hi Uwe, > > yesterday Apache Luc

Re: JEP 442: Foreign Function & Memory API => why is it again preview API?

2023-05-16 Thread Uwe Schindler
Hi Alan, Am 16.05.2023 um 18:07 schrieb Alan Bateman: On 16/05/2023 16:38, Uwe Schindler wrote: : Is it really needed to have a next round of preview API? Why not have Java 21 with Foreign API finalized in the same way like virtual threads? To me it is strange that an API like virtual

Re: JEP 442: Foreign Function & Memory API => why is it again preview API?

2023-05-16 Thread Maurizio Cimadamore
On 16/05/2023 16:38, Uwe Schindler wrote: It exists now since Java 14, where it first appeared as incubation. I know theres still work on the foreign linker, but why aren't the stable classes like MemorySegment, ValueLayout not public now? Hi Uwe, while I understand the frustration (and I'm

Re: JEP 442: Foreign Function & Memory API => why is it again preview API?

2023-05-16 Thread Alan Bateman
On 16/05/2023 16:38, Uwe Schindler wrote: : Is it really needed to have a next round of preview API? Why not have Java 21 with Foreign API finalized in the same way like virtual threads? To me it is strange that an API like virtual threads was thrown to end-users (it caused problems at many

JEP 442: Foreign Function & Memory API => why is it again preview API?

2023-05-16 Thread Uwe Schindler
Hi, yesterday Apache Lucene got the information that JDK 21 got the project panama JEP 442 update and I implemented it already in our source tree. Unfortunately the API is again marked "preview", but JDK 21 is "LTS release". Many of our users (Elasticserach, Solr) will be switching to this