Java 27: What's New?

(loicmathieu.fr)

34 points | by loicmathieu 3 hours ago

10 comments

  • Alifatisk 56 minutes ago
    Java 27 already? I just learned about Java 26. But I’m not complaining, the JEPs that is getting introduced on every release are quite exciting features. I highly recommend following the Java official YouTube channel, they publish entertaining, yet informative videos/shorts about tips/tricks/features.
  • throwaw12 8 minutes ago
    Give us some break we just recently migrated to Java 11 from Java 8
  • nerdile 16 minutes ago
    > tests showed that for environments with one CPU (or fewer)

    Article seems AI generated. Is there an official announcement we could be discussing instead?

    • stanac 5 minutes ago
      It's probably comment on shared CPUs. Like in kubernetes where you can assign 300 milliCPUs.

      I didn't read the article, it doesn't open for me (HN hug?).

    • atomicnumber3 9 minutes ago
      I wonder if it's a joke about oversubscribed environments (cloud VPS) or a real remark about fractional CPU budgets in container environments
  • mountainriver 22 minutes ago
    The best thing to ever happen to the software world was Oracle buying Sun and consequently Java.

    Java was great at its time but then had to go. Oracle gaining control over them sped up this process.

    Poor Android got caught up and now half our phones don’t work

    • UltraSane 18 minutes ago
      What are you trying to say?
      • stanac 8 minutes ago
        I think they are saying Java is dead?! Not sure how else to interpret the comment. If that's the case I have to disagree. There are probably billions of lines of Java in enterprise, it will never die.
        • UltraSane 3 minutes ago
          Java is still very popular and even being used for new projects.
  • robmccoll 21 minutes ago
    Non-nullable reference types at the language level? Null coalescing operator? Safe navigation accessors? Record composition?
  • Borborygymus 30 minutes ago
    Java is swell and all, but having seen how the vendor treats even their large customers, I could never in good conscience recommend them to anyone I do business with. Better to miss out on the latest features and work with more respectful vendors IMO.
    • speed_spread 8 minutes ago
      What vendor? OpenJDK is free and libre. If you mean Oracle, then that's a choice your employer made and yeah, you're SoL, especially for working in such a place.
  • zelphirkalt 1 hour ago
    Is it just my personal feeling, or are Java version numbers becoming as inflationary as browser version numbers?
    • doikor 1 hour ago
      They moved to a schedule instead of waiting for features to be finished.

      Basically we get a new major version release on a schedule. Everything that is finished gets packaged in and everything else pushed to the next release.

      The issue before was that they marked beforehand "version X will contain feature Y" and then feature Y got delayed by 3 years which means everything else in version X also got delayed by 3 years even though they were done 6 months ago.

      • this_user 54 minutes ago
        It's too many releases now. At some points, the numbers just become noise. I think most people will stick to the LTS releases, but even those come out every two years.
        • bmacho 43 minutes ago
          The numbers have become meaningless noise already. This release should've been called 26.1, then 27.0, 27.1, 28.0 and so on. Year.version. How Canonical does it with Ubuntu.

          The current numbering scheme is annoying and distracting, bears no information yet is still error prone.

          • the-smug-one 1 minute ago
            I don't see the point, just increment it every release. Don't see what errors are prone either
          • samus 10 minutes ago
            [delayed]
        • OtomotO 43 minutes ago
          Unless you're forced at gunpoint, how can there be too many releases?

          Rust releases every 6 weeks, since 2016...

          If you don't want to update, just don't?

          If you feel (!) pressured, you should work on that.

          • ptx 34 minutes ago
            With each new Java release the previous one becomes instantly unsupported (meaning that it receives no security updates), unless you pay Oracle (or another vendor). So you are forced to update if you want security updates (or run only LTS releases, or pay a vendor).
            • pgwhalen 15 minutes ago
              So if the matters to you, run the LTS release, right? I'm not sure I follow the concern.
          • robertjpayne 39 minutes ago
            Rust releases are just compiler toolchain, maybe some new syntax features. Java includes the JVM which is subject to way more security issues and needs much more frequent updating.
            • wtetzner 26 minutes ago
              But can't you continue to run older bytecode versions on newer JVMs? I think you can also specify the source version separately.
              • samus 6 minutes ago
                [delayed]
            • OtomotO 12 minutes ago
              > Java includes the JVM which is subject to way more security issues and needs much more frequent updating.

              Then releasing more often is better, because the security fixes get out of the door faster?!

              If previously a Java Update took 3 years, then the corresponding JVM version would be 3 years old as well.

              If there were patch release in between, I see no difference to now.

              • samus 5 minutes ago
                [delayed]
        • ivan_gammel 41 minutes ago
          [dead]
      • mountainriver 27 minutes ago
        Do they have backwards compatibility guarantees?

        Otherwise what are we doing here?

        • cogman10 20 minutes ago
          They do, some of the best of any language.

          That said backwards compatibility problems still hit as some libraries enjoy using internal APIs.

          It's not an every time thing and it's been easier and easier with updates.

        • collabs 20 minutes ago
          I work with dotnet but my understanding is that some applications/ teams are still on java 8 with spring boot or whatever so it isn't like they aren't modernizing but they are choosing to do so at their own time which is fine I think
    • mkurz 1 hour ago
      Its just your personal feeling.
  • StefanBatory 53 minutes ago
    Does the website have geoblocking or did HN gave it a hug of death?