Hi,
I had another idea: Why not release main as 10.0.0 *NOW* and create
branch_10x (with Java 17) minimum, stop working on 9.x, and move main
branch to 21?
I would be happy to remove the MmapByteBuffer directory in Java 18.
Unfortunately in Java 21 we still need a hack top compile the
MemorySegment classes because of the preview flag. And for the incubator
we also need the APIJAR files. But we can do this then without MR-JAR
unless we need a new version for Java 22, 23 of vectors. My idea would
be to patch in the api JAR during compile of "main" sourceset classes.
Uwe
Am 03.11.2023 um 13:20 schrieb Chris Hegarty:
Hi,
I would like to start the discussion and gather feedback on bumping the
minimum Java version requirement to 21.
I have no particular timeline in mind, but these kinda bumps often
require dependency updates [*], small code refactorings, etc, and can
take some time to plan and execute. It's best to at least have a plan
for when, rather than if! Any bump would of course be limited to the
_main_ branch, and therefore targeting a major Lucene release (no
changes to branches targeting minor patch releases).
I'm sure subscribers to this list are already familiar with the various
goodies that have been added between Java 17 and 21, so I'll not
enumerate them here, but rather callout just two particular benefits
that I think are significant to the Lucene project.
1) Put a lower bound on the number of memory segment mmap and Panama
Vector similarity implementations that we need to carry. This not only
reduces maintenance cost, but avoids additional consideration and
experimentation for performance improvements.
2) Support for half float, Float::float16ToFloat and Float::floatToFloat16,
which will likely be beneficial in several places.
More concretely, and somewhat orthogonal to the discussion of when, I
would like to create a meta-issue capturing the prerequisites to a
version bump.
Your thoughts, comments, and feedback are very much welcome.
-Chris.
[*] we need at least an ECJ JDT dependency update, that supports
Java 21, https://www.eclipse.org/lists/eclipse-dev/msg12203.html
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org
--
Uwe Schindler
Achterdiek 19, D-28357 Bremen
https://www.thetaphi.de
eMail: u...@thetaphi.de
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org