!aRKdLCkUeIFjRPZuJT:nixos.org

NixOS JVM

129 Members
28 Servers

Load older messages


SenderMessageTime
19 Sep 2024
@benjaminedwardwebb:envs.netbenwebb joined the room.21:37:51
21 Sep 2024
@luna-null:matrix.orgluna-null joined the room.05:43:41
24 Sep 2024
@trexd:matrix.orgtrexd tad: Any updates on gradle2nix v2? Don't mean to pressure you. Just curious. 14:12:12
@emilazy:matrix.orgemily joined the room.18:12:28
@emilazy:matrix.orgemily hi there, I'm working on the JDK 22 EOL / JDK 23 update. I have some questions about the state of JDKs in Nixpkgs, especially after seeing Infinidoge 🏳️‍⚧️'s PR working on some of the cleanup 18:13:09
@emilazy:matrix.orgemilyby my count, we ship from-source builds of OpenJDK (bootstrapped through Temurin), and binary distributions of Zulu, Temurin, Semeru, and Amazon Corretto18:13:57
@emilazy:matrix.orgemilyI guess my big question is "why" :) we need a binary distribution for bootstrap so Temurin makes sense, Semeru has OpenJ9 instead of HotSpot which makes sense, I believe Zulu might have some kind of optimizations or something and we ship it for Darwin (I guess because source builds don't work? but why not Temurin as we use for the bootstrap?), but Amazon Corretto makes zero sense to me18:14:50
@emilazy:matrix.orgemilyit would be nice to deduplicate some of these definitions – OpenJDK versions are all copy-pasted from each other, Temurin and Semeru are copy-pasted from each other and the Linux and Darwin derivations of those are also copy-pasted from each other, etc. – but it seems a little absurd that we're shipping 5 different JDK options and I'd like to understand better which ones people actually care about18:15:39
@emilazy:matrix.orgemilyit's also not clear to me if we need to be shipping so many LTS versions – for instance Debian has dropped JDK 818:16:14
@emilazy:matrix.orgemily(if I had to make a concrete proposal it'd be OpenJDK source build, one of Temurin or Zulu, and Semeru, and shipping latest LTS, maybe latest stable version, and whatever minimum number of LTSes we can get away with (just 17? 11 too?) – but I'm not the expert here)18:41:18
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️
In reply to @emilazy:matrix.org
I guess my big question is "why" :) we need a binary distribution for bootstrap so Temurin makes sense, Semeru has OpenJ9 instead of HotSpot which makes sense, I believe Zulu might have some kind of optimizations or something and we ship it for Darwin (I guess because source builds don't work? but why not Temurin as we use for the bootstrap?), but Amazon Corretto makes zero sense to me
We ship Zulu as the source build for Darwin, itself bootstrapped off of Temurin, is my understanding
Not sure about Corretto, but I think it's a specific production-focused JDK
19:20:45
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️That said, my PR for cleanup was specifically about versions that are broken and long-disused, I don't want to go down the route of just purging JDK versions because they aren't used very much, since ideally Nixpkgs would package everything19:21:18
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️Those versions were purged because they made OpenJDK unmaintainable :)19:21:27
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️I think the only major thing that needs to be done for cleanup is deduplicating between the source builds, as that is a big mess so far19:21:59
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️
In reply to @emilazy:matrix.org
it's also not clear to me if we need to be shipping so many LTS versions – for instance Debian has dropped JDK 8

IMO we should keep all currently-supported LTS versions.

Not sur ewhere you got Debian dropping JDK 8 from, I can see it in the Debian package list, even in sid

19:23:00
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️
In reply to @emilazy:matrix.org
it's also not clear to me if we need to be shipping so many LTS versions – for instance Debian has dropped JDK 8
*

IMO we should keep all currently-supported LTS versions.

Not sure where you got Debian dropping JDK 8 from, I can see it in the Debian package list, even in sid

19:23:06
@emilazy:matrix.orgemilyit's only in sid, not in release versions19:23:09
@emilazy:matrix.orgemily(I don't know why)19:23:11
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️Hmm19:23:23
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️Weird19:23:24
@emilazy:matrix.orgemilyour Zulu package seems binary-only to me, could you point to where it's built from source?19:23:25
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️I thought it was built from source but I could just be misremembering19:23:38
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️Okay yeah no it was just substituted in where the source JDKs get built which is where I got it wrong19:26:11
@emilazy:matrix.orgemilyright. so it's unclear to me why we need both Zulu and Temurin, they seem quite redundant19:27:06
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️Not sure, I don't use Darwin so I just didn't touch that part lol19:28:19
@emilazy:matrix.orgemily(and Corretto also seems sufficiently niche that I question whether it's worth maintaining in-tree)19:28:26
@emilazy:matrix.orgemilymy fear about shipping 8 indefinitely, when Debian and Ubuntu have already given up on it, is that it has 6 years of life left. newer versions will continue to diverge from it, requiring more build conditionals and complexity, and it may become increasingly painful to keep building with the modern compilers and libraries in Nixpkgs19:29:16
@emilazy:matrix.orgemilyfor instance, I've had to manually backport FFmpeg support patches to older versions of OpenJFX, which is quite a maintenance drag19:29:34
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️That's the kind of situation where we keep JDK 8 but stop supporting it for stuff like that19:29:56
@emilazy:matrix.orgemily(not directly OpenJDK admittedly, but it gives an example of the churn caused by packaging many old versions of things)19:29:56

Show newer messages


Back to Room ListRoom Version: 6