News for hackers. Stuff that matters.
Re:Java 21 makes me like Java again by pjmlp on Sunday September 17, 2023 @03:38AM (#37542481)
Unless dynamic linking is used, or OS APIs change between version, or specific OS files change location.
Re:Java 21 makes me like Java again by pkolaczk on Sunday September 17, 2023 @04:39AM (#37542853)
Go binaries are traditionally statically compiled.
Re:Java 21 makes me like Java again by pjmlp on Sunday September 17, 2023 @04:50AM (#37542920)
Hence my 2nd and 3rd points.

Also DNS uses dynamic linking unless configured otherwise, while being OS specific, then that are the libraries that rely on cgo.

Re:Java 21 makes me like Java again by ashishb on Sunday September 17, 2023 @05:27AM (#37543132)
Yeah, you can list 100 such cases.

Let me tell you the most common scenario. I have a fairly popular FOSS CLI tool written in Python. I cannot use the features from the latest version of Python or else I will alienate ~50% of the userbase. This problem does not exist with Rust or Go.

This problem would have existed for Java on Android except Google took the burden of "desugaring" the Java 17 code -> Java 8 compatible bytecode for the old devices.

Re:Java 21 makes me like Java again by kaba0 on Sunday September 17, 2023 @05:48AM (#37543242)
Google dug their own grave here, Java is as backwards and forward compatible as it gets.
Re:Java 21 makes me like Java again by lern_too_spel on Monday September 18, 2023 @12:12PM (#37558206)
You cannot run Java 17 code on a Java 8 runtime without "desugaring."