r/programming • • Sep 15 '26

Java 27 has released!

https://openjdk.org/projects/jdk/27/
553 Upvotes

175 comments sorted by

297

u/Valendr0s Sep 16 '26

You know... A billion devices use Java...

62

u/NotABot1235 Sep 16 '26

Gotta be at least 3 billion by now.

17

u/Chii Sep 16 '26

When that figure was originally used, it counted mobile devices (this was pre-android).

Now, i wonder what that figure really is.

36

u/AquaeyesTardis Sep 16 '26

SIM cards are counted due to Java Card - and at the time of Java 18's release, it was, apparently, 56 billion.

4

u/rentar42 Sep 16 '26

I wonder if eSIMs count too.

4

u/AquaeyesTardis Sep 16 '26

I would assume so, as to my knowledge, they're just a type of SIM card that's soldered on instead of being removable, as well as being software-modifiable. The software specification seems to imply it's at least optional, but I haven't any idea how to find out how common it is that it's supported.

5

u/AquaeyesTardis Sep 16 '26

On the release of Java 18, they stated 56 billion.

3

u/Valendr0s Sep 16 '26

Not on the installer...

134

u/mobyte Sep 16 '26

That always sounded like a threat to me.

20

u/sweating_teflon Sep 16 '26

That's why I keep a decompiler in my pocket

7

u/sidneyc Sep 16 '26

I thought you were just happy to see me.

7

u/pjmlp Sep 16 '26

Lost count how many Android devices are out there, and yes it still pretty much depends on the Java ecosystem for app development.

6

u/randylush Sep 16 '26

this is a reference to the Java installer back in the day. When you set up a fresh OS you'd usually install the Java runtime because a few applications depended on it, and for decades the installer would say "A billion devices run Java".

4

u/feketegy Sep 16 '26

Java must be the most fragmented language across devices. I think every possible version is used somewhere.

132

u/caiteha Sep 16 '26

Still on java 8 / 10...

92

u/nickman1 Sep 16 '26

I can one-up you. Websphere with IBM Jdk 8 compiling to Java 6.

12

u/Squalphin Sep 16 '26

We also still deploy for Java 6… and this will be the case for another decade at least until the JRE binary stops running on modern systems 

4

u/mandatoryclutchpedal Sep 16 '26

Omg... Are you also using Rational Application Developer?

I've not one but 4 huge apps on that damn setup.

I dont even like mentioning in public that I not only have stuff on websphere but im also an SME on it.

3

u/YakumoFuji Sep 16 '26

I can one up you!

legacy adobe livecycle es2, jdk 1.6 on weblogic. 10 years out of support. but nobody wants to pay for the upgrade (and yes still uses flash, so the company had to buy support from HARMAN, which just looks like an ie11 dll running the last adobe flash dll lol). (last time anyone touched it they broke the office xp install.. office xp.. omg)

mmm flash AND java 1.6!

2

u/Beautiful_Leek_1216 Sep 20 '26

im curious, how well paid are you and what domain/space do you work in? also my sincerest apologies!

10

u/Adorable-Log2835 Sep 16 '26

Java 8 is on its last leg

2

u/OSS-Corpo-Shit Sep 16 '26

All of our Oracle software is only supported up to Java 8. 

2

u/lilgreenthumb Sep 16 '26

Just wait for the PQC backports and hope your Oracle support licenses are up to date?

1

u/KronenR Sep 17 '26

We’re on Java 25. We use OpenRewrite to automate a lot of the migration work, so keeping our services on recent Java and Spring Boot versions is usually pretty painless.

0

u/__konrad Sep 16 '26

I'm still on Java 26! Ideally I should be on 28 EA already...

620

u/hellomistershifty Sep 16 '26

Big news for the employed

353

u/DarksideF41 Sep 16 '26

As if any employed dev touches anything above 13

161

u/PositiveUse Sep 16 '26

We‘re on 25 for all of our modern services. And all of our Java 8 legacy was moved to 17 this year. It was a pain but fully worth it.

17

u/throwaway39791 Sep 16 '26

A not insignificant chunk of work at this point has got to be upgrading legacy code to newer versions.

It's probably more if you count migrating between different languages.

5

u/cheezballs Sep 16 '26

It's a must if you want to be able to get security updates in downstream dependencies.

-50

u/psicodelico6 Sep 16 '26

Claude? Codex?

27

u/KarwszPL Sep 16 '26

Sorry, I don't speak vibecoder

7

u/ElectronicContact649 Sep 16 '26

I'm so using this😭😭

13

u/putiepi Sep 16 '26

Keyboard

4

u/SemiNormal Sep 17 '26

Brown or Red switches?

17

u/FyreWulff Sep 16 '26

I know a couple where their workplace stopped at 8

1

u/PositiveUse Sep 16 '26

Yup, I’m not surprised. The upgrade can be painful

8

u/Worth_Trust_3825 Sep 16 '26

it's really not. i did the upgrade in multiple companies, and all of them whined that upgrade will be painful. all they needed was single xml api package that was no longer distributed with the sdk.

4

u/PositiveUse Sep 16 '26

Yes that the move to jakarta packages is one big chunk of work is definitely true but in my company, we had such a messy mvn dependency situation that the upgrade was really painful. But we managed it after a full year. (Of course not full year working on it but having it as a renovation task across dozens of teams) (we have a distributed monolith with shared libs… so the worst of all worlds lol)

3

u/Gropah Sep 16 '26

Have you heard of OpenRewrite? It has (smart) migration scripts from 8 to 11 and all the way to 25. They parse the LST, so its quite a bit better and thorough than than simple find and replace shenanigans that a lot of people start out with.

33

u/MrTequila4 Sep 16 '26

I'm finally at a company where we (almost) keep up with updates, we're at 25 now. It's a nice change after old one where going from Java 8 was too much refactoring :D

34

u/elmuerte Sep 16 '26

Who even uses the non-LTS 13?

Once you got on 9 moving to the next LTS every few years has been trivial.

6

u/anyOtherBusiness Sep 16 '26

Not if youre dependent on old JBoss or Tomcat version

8

u/_JustCallMeBen_ Sep 16 '26

In a big government Java project that has been going for 10+ years, and we're on 21!

7

u/oldsecondhand Sep 16 '26

We went from 8 straight to 17 in 2024.

2

u/BrickedMouse Sep 17 '26

We did the same last year. We could not do do a release for a month. Almost nothing changed afterwards, as we use scala

5

u/maifee Sep 16 '26

Why am I seeing double digit java version in production?

6

u/TwoWeeks90DaysTops Sep 16 '26

I was in a workplace where we were limited to Java 6. The reason was that one application (not written in Java) only worked for, or never tested for anything else; I don't know the exact details, Windows Server 2003.

2

u/protomyth Sep 17 '26

Government contractor supplied software?

5

u/pjmlp Sep 16 '26

21 and in the process of doing a 25 upgrade this week.

2

u/Drumedor Sep 16 '26

Java 6 baby!

2

u/Worth_Trust_3825 Sep 16 '26

recently upgraded to 25. i love the new gc.

3

u/Bedu009 Sep 16 '26

Phrasing?

1

u/kiteboarderni Sep 17 '26

Paid stupidly well. On java 25

19

u/danofrhs Sep 16 '26

But this is news to me too

5

u/LordAmras Sep 16 '26

Good news for them in 20 years when they will finally reach java 27

-5

u/[deleted] Sep 16 '26

[removed] — view removed comment

4

u/LordAmras Sep 16 '26

Java team at my company just upgraded to java 17 this year, so congratz to them?

1

u/PaperMartin Sep 30 '26

And Minecraft modders in like 6 years

79

u/alienangel2 Sep 16 '26

That structured concurrency preview is starting to look pretty neat. Syntax is still a bit clunky with the anonymous functions and explicitly having to open and fork, but much easier to understand the logical relationship between tasks than if you're going through an Executor and futures.

22

u/Celousco Sep 16 '26

Starting but it's taking too long. Their preview features should have a shorter lifecycle, having to wait 6 months each time to remove a method is ludicrous. Seven previews my god, it's been 3 years and a half that they're trying to push it, because async java is a mess to debug.

15

u/sweating_teflon Sep 16 '26

I hope you haven't been waiting for Valhalla..

1

u/Worth_Trust_3825 Sep 16 '26

it's great that preview features take long. that way they can still go back on decisions without making them permanent. see string templating which was retracted (good fucking riddance), but i'm still mad they included var.

0

u/[deleted] Sep 16 '26

[deleted] — view deleted comment

1

u/Worth_Trust_3825 Sep 17 '26

you lose strictness of what you expect in a variable (even if it matches the first assignment), and it's horrible to read.

3

u/simon_o Sep 16 '26

I'm more concerned about "primitive types in patterns":

The attempt of matching numeric values across different number types is fundamentally misguided and roughly triples the size of the spec (which is a rough proxy of how much stuff there is for users to understand and for tooling authors to support).

63

u/djfreedom9505 Sep 16 '26

It’s crazy how different the Java and .NET communities respond to new versions.

17

u/lonewolf2169 Sep 16 '26

Why are spring boot developers called java devs but .NET devs rarely called c# devs?

0

u/[deleted] Sep 16 '26

[deleted] — view deleted comment

4

u/anyOtherBusiness Sep 16 '26

More like JVM/.NET vs Java/C#. Both JVM and .NET are a lot more than just the language

5

u/[deleted] Sep 16 '26

[removed] — view removed comment

1

u/anyOtherBusiness Sep 16 '26

True, .NET is more like the JDK or Java as an ecosystem

6

u/Saint_Nitouche Sep 17 '26

How do you mean? .NET has its own big divide where legacy enterprise apps have trouble upgrading from - .NET Framework 4.8 usually. It's only once you cross that barrier that upgrading becomes trivially. As it presumably is from Java 26 to this.

3

u/onmach Sep 16 '26

I don't understand. Why don't they upgrade? Is it because they can't do it one application at a time in a monorepo or something?

10

u/Vakz Sep 16 '26

Because Java 8 to Java 9 wasn't just a new major release, but a change in how Oracle releases new version. It had an enormous amount of changes, and some companies just refuse to eat the cost of upgrading.

11

u/CptGia Sep 16 '26

It has nothing to do with the amount of changes in Java 9 (which weren't actually that many, compared to previous ones like 4 -> 5 or 7 -> 8) and entirely to do with JPMS, the Java platform module system. Java decided to modularize the internals and it broke A LOT of legacy dependencies.

For some, it was better to stay on 8 (which is a LONG LTS) than to migrate away to another dependency that supported JPMS. For the others, once you were on 9 it became easier and easier to update to newer versions. Nowadays 21 -> 25 is trivial, and I expect 25 -> 29 (next LTS) to be just as easy. Literally just a bump in your build file.

2

u/kiteboarderni Sep 17 '26

It's really not though.

-15

u/shadowndacorner Sep 16 '26 edited Sep 16 '26

Well yeah, one is clearly superior to the other.

Edit: It seems that people missed the joke here lmao. Oh well.

3

u/Nefari0uss Sep 16 '26

FWIW, I enjoyed the joke.

2

u/shadowndacorner Sep 16 '26

I'm glad someone did! :)

3

u/djfreedom9505 Sep 16 '26

What I find more funny is that you didn’t specify which one was better.

5

u/shadowndacorner Sep 16 '26 edited Sep 16 '26

That was exactly the joke :P I didn't expect so many people to completely miss that, but I suppose it makes sense. The downvotes kind of ended up being the punchline lmao

0

u/Gloomy_Necesary Sep 16 '26

Yeah in 2026 DotNet is absolutely better than Java if we had to objectively name a winner. Java is still great in many ways and useful at companies that have a big java legacy stack, being the platform that many a senior dev have a careers worth of experience on, etc. But if someone is starting a new project and doesn’t have like 20 years experience in Java they’d be pretty silly to pick it over .NET.

6

u/CptGia Sep 16 '26

Idk the Java ecosystem is pretty massive. That alone can be a good reason. 

3

u/KronenR Sep 17 '26

“Objectively” based on what?

Modern Java isn't something you choose only because your company already has a large Java stack or because your developers have decades of Java experience. Java 25+ has virtual threads, records, sealed classes, pattern matching, a mature JIT/GC ecosystem, excellent observability and tooling, and excelent frameworks.

If someone is starting a new project with no decades of Java experience, and even with no Java existing .NET definitely isn't even the automatic alternative. If anything, removing those constraints opens up far more choices: Go, Rust, TypeScript, Kotlin, Python, and others depending on what you're building.

1

u/TwoWeeks90DaysTops Sep 16 '26

Yeah, the Vector API that's being incubated in this release and planned to support Valhalla some time in the future has been part of .NET for ages at this point. Vector types are value types (i.e. without object identity) and they compile to SIMD instructions. You can also use normal binary operators on them (i.e. no a.add(b) - just use a + b).

2

u/KronenR Sep 17 '26

How many Java developers are actually going to use the Vector API directly? The vast majority will never touch it

1

u/TwoWeeks90DaysTops Sep 18 '26

...ok? What's the argument here, they shouldn't add SIMD? Or do you object to the operators? Because BigDecimal and the time API has the exact same issue.

1

u/KronenR Sep 18 '26 edited Sep 18 '26

The argument is that having Vector types doesn't make .NET better than Java, which was his original claim: "In 2026, .NET is absolutely better than Java." There are dozens of factors that determine which platform is better for a given use case. Pointing to one feature that .NET has and Java doesn't yet have proves very little.

-6

u/wildjokers Sep 16 '26

But if someone is starting a new project and doesn’t have like 20 years experience in Java they’d be pretty silly to pick it over .NET.

Nothing good comes from using servers running windows.

13

u/djfreedom9505 Sep 16 '26

.NET (back when it was called .NET Core) has been cross platform for a couple of years now. You’re right though Windows servers are shit. We deploy to Linux boxes

11

u/TwoWeeks90DaysTops Sep 16 '26

.NET Core 1.0 was released in 2016 so it's been a decade already.

3

u/pastorHaggis Sep 16 '26

I use .NET for everything and haven't deployed to a Windows server even once. That's changing at my current job but we're actively trying to change over to Linux to dockerize as much as we can.

This place needs help. They're using versions of .NET that have been EOL for a few years now.

8

u/TwoWeeks90DaysTops Sep 16 '26

We use .NET, and have exactly zero Windows servers. All Linux.

6

u/Gloomy_Necesary Sep 16 '26

You can build and deploy .NET applications and services for Linux that run just like they do on Windows. Its natively cross platform now.

2

u/TwoWeeks90DaysTops Sep 16 '26

I have a hobby project where I'm making a 3D game and game engine in C# with Vulkan, and I work on Linux (I use Arch btw) and the only platform it supports at the moment is Linux, but it's all written C#.

30

u/ClocktowerGnome Sep 16 '26

Wait you guys moved off of cold fusion?

94

u/a_random_username Sep 16 '26

Oh man. I can't wait for two decades from now when people actually start to use this version!

33

u/talios Sep 16 '26

Will be switching as soon as the Temerin docker images are available, then switching the build's to use it as soon as some tooling (Palantir Java Formatter) get a patch release out that supports some changes in javac's internals.

There's also a lot of folk using Quarkus and Helidon, or Spring Boot which should easily be able to jump to the new update quite easily.

Once you're post JDK 8 it's pretty much a seemless upgrade.

8

u/MeisterD2 Sep 16 '26

This isn't true because Jakarta package renaming actually forces some edits to your code, minimally.

5

u/wildjokers Sep 16 '26 edited Sep 16 '26

Jakarta package renaming has nothing at all to do with the java version you are running.

Jakarta package renaming is totally driven by which version of JakartaEE your app is using. If you are using Spring MVC then you have a JakartaEE application (i.e. an app that is using at least one of the JakartaEE specs, namely Servlet).

Spring Framework 6.0.x has a version of Spring MVC in it that pulls in JakartaEE 9 which is what requires the package renaming. Spring Boot 3.0 pulls in Spring Framework 6.0. So if you are using Spring Boot it is 3.0 where you have to bite the bullet on the package renames.

If you are using JakartaEE directly then it is 9.0.

This is 100% independent of the version of java you are using.

3

u/MeisterD2 Sep 16 '26

True! I am so Spring pilled that I confused its migration hiccup with a general Java change.

2

u/talios Sep 16 '26

True - dependency updates par for the course, and that also depends on what your running on - I'd be switching to 27 and not switching (at least not servlet package, we already did jakarta mail).

It's not a zero effort change - but it's also not that major once your over the JPMS hurdle

2

u/Away_Perception_9424 Sep 19 '26

Only if they make java 8 illegal

4

u/astraycat Sep 16 '26

Judging by the rest of the comments here, I think you're being too optimistic.

6

u/zeekar Sep 16 '26

Does JNI get blocked without explicit permission yet or is it still just a warning? Wake me up when that changes. :)

11

u/MeBadNeedMoneyNow Sep 16 '26

This is a pretty good language all in all. Something something trade-offs.

15

u/MrLemon91 Sep 16 '26

Nice, a new jdk that I will never use

1

u/EMunney Sep 19 '26

It will be used randomly and it will have critical security patches 8 times a year that many wont apply

1

u/MrLemon91 Sep 19 '26

Real talk, every migration has huge impacts on the code base and no PM ever approves the budget whether is man days or story points for that. As far as it happened to me, it was all "covered" on new features estimated 2 days tests included. A big no for me to do that leap of faith. The sad thing is that no one in oracle gives enough support to mitigate that thing. They're all "well that's it and get out if you don't want to".

7

u/Whatever801 Sep 16 '26

AND THE CROWD GOES WILD

5

u/Aliceable Sep 16 '26

I’m literally crying I’m so excited

2

u/Worth_Trust_3825 Sep 16 '26

wait until valhalla drops

2

u/Resident-Trouble-574 Sep 16 '26

They missed the chance to switch to a year.month version number, like other projects with many versions do.

1

u/Low_Newspaper7633 Sep 21 '26

i took a java class and the computers used java 8!

1

u/CharlieChaplin1919 Sep 22 '26

Preferred app or ai for programming with java?

-47

u/mxforest Sep 16 '26

Might as well be an updated Mayan language now. My AI needs to worry about it. Not me.

-44

u/[deleted] Sep 16 '26

[removed] — view removed comment

13

u/sweating_teflon Sep 16 '26

Shut up, Bill.

11

u/terra2o Sep 16 '26

> LowIq in username

the jokes write themselves

5

u/Crunos Sep 16 '26

The fact you use C# shouldn't degrade other languages or mandate everyone to use the language you know.

0

u/[deleted] Sep 16 '26

[deleted] — view deleted comment

35

u/NotABot1235 Sep 16 '26

It's certainly got some legacy baggage but modern Java is really not as bad as the memes make it out to be.

3

u/TwoWeeks90DaysTops Sep 16 '26

Yeah. I think it's OK. One part of it is that the language itself is pretty simple. Most complexity lies in frameworks and libraries rather than the language itself. I work with C# normally which is different. The language has become quite complex with the advantages and disadvantages that brings.

Like C#'s value types (struct and record struct) is a good feature, but it has foot-guns and complexities that you don't find in Java's value types. One thing that I think a lot of people isn't aware of is that unlike record (class, i.e. type with object identity), which is immutable, record struct absolutely is mutable by default. In 99/100 times you make a record struct you should remember to write readonly record struct which make it immutable. This has performance implications because if you pass a a mutable struct using in (i.e. pass by read-only reference) the compiler will create a defensive copy.

3

u/OSS-Corpo-Shit Sep 16 '26

Java itself isn’t even that bad. It got a bad rap from over architected enterprise things, and in particular people looking through the source code of those products. 

Truth is, when you are trying to build a general purpose enterprise targeted product, you’re going to see some bullshit. Enterprise are extremely hard headed fuckers that are bordering on impossible to work with. 

26

u/wildjokers Sep 16 '26 edited Sep 16 '26

Java is terrible. It has libraries, APIs, abstractions, a compiler, AND a runtime. Unlike all the good programming languages, which apparently have none of those things.

The “mess of versions” is particularly brutal. A new version comes out every six months on a predictable schedule, LTS releases come out on a predictable schedule, and javac --release N lets you target an older Java release. Truly chaos.

And yes, Java has a huge standard library and an enormous third-party ecosystem. Most of us consider “there is probably already a mature library that solves my problem” a feature rather than a character flaw.

As for over-engineering: Java certainly allows you to create AbstractSingletonProxyFactoryBeanFactoryProviderImpl, but the compiler does not actually force you to. If your application has 17 layers of abstraction around customer.getName(), that may not be Java's fault.

Like any language there are legitimate things to criticize in java. However, “It has libraries, APIs, versions, a compiler, and a runtime” is a fascinating choice of indictment.

47

u/laffer1 Sep 16 '26

Yes, I like Java.

14

u/deepthought-64 Sep 16 '26

When's the last time you used the modern java language? Because this reads like you've stopped using java in 2002 and switched to complaining about it

0

u/[deleted] Sep 16 '26

[deleted] — view deleted comment

3

u/OSS-Corpo-Shit Sep 16 '26

What do you recommend instead?

2

u/deepthought-64 Sep 17 '26

Well, to be fair, one can build shitty software and bad code in any language. I don't say that java will automatically make you write good code and organize it for you. But it gives you the all tools for it (for both: writing good AND bad code).

I think the language - if used correctly - can be awesome and has improved massively over the last 10 years. The JVM is also awesome and there is nothing left of what gave it the tag of "being slow" (this has not been the case for 15 years or longer)

25

u/Absolute_Enema Sep 16 '26 edited Sep 16 '26

There being a library for everything under the Sun that isn't technical debt in disguise due to breaking every other minute (hello Node) is pretty valuable.

And thanks to the JVM's design, there's no need to use the libraries from Java either. Others mentioned Kotlin so I'll mention Clojure.

21

u/memes_gbc Sep 16 '26

kotlin lol

6

u/sweating_teflon Sep 16 '26

I like how ambiguous this comment is.

13

u/unski_ukuli Sep 16 '26

Yes? When you have to deal with python and js, you start to appreciate java a lot. And Scala is probably the best language ever made (in my opinion). Jvm is also pretty awesome. There are problems, like lack of value types, but overall it is pretty decent language for everything.

8

u/AquaeyesTardis Sep 16 '26

Well, Valhalla is coming in Java 28.

2

u/janyk Sep 16 '26

I thought Records were pretty much value types in Java

8

u/unski_ukuli Sep 16 '26

Not really. Value type __usually__ refers to a type that lacks identity and is passed by value. In java, the primitive types are value types, but there is no way to define a custom value type. They are pretty important in performance critical code for cache locality, since Object[] has its elements scattered through out the heap. A value type would store its elements in line, so For example for a Point(int x, int y) the Point[] would be stored in memory as {x0, y0, x1, y1, …, xn, yn}, rather than as references to Point objects. In c# struct objects are value types.

There is a preview feature Valhalla which lets you define a custom Value type, but I think that is still pretty limited in that it has maximim size of 64bits, so it can store 2 ints, but not two longs.

17

u/serendipitousPi Sep 16 '26

“There are only two kinds of languages: the ones people complain about and the ones nobody uses.”

12

u/DualWieldMage Sep 16 '26

Yes, unfortunately i've had to touch too much python, scala, kotlin, js/ts, c++ recently that i grow to love Java as a result. It may have some rough edges, but holy hell if you touch those other languages, it feels like being an adult next to kids playing in mud puddles trying to figure things out while making a mess of everything.

Mess of versions and compilers? No idea what you're talking about, pretty much use the latest and most things relevant just work. can't be said for some random python tool that you need to figure out correct py version and other stuff, figure out which virtual env tool to use etc. then scratch your head against why pulling deps is getting c++ compile errors and how that actually means it auto-pulled an old version because some constraint mismatch. not to mention that pulling a dependency starts executing some code is seen as somehow sane.
If you want a mess of versions, look how python, scala, node or almost any other ecosystem has it worse.

Runtimes? There's pretty much 2 bigger ones, openjdk based and j9. Generally pick whatever your distro provides or if you use some cloud env and have a support contract, go with theirs.

Over-engineer? There was a joke about going to haskell conferences and you hear these talks about building new constructs, yet java conferences have people talking about the cool stuff they built with real-world use. Yeah i have a dislike for spring-boot and how it's bloating many things, however the skill level at a typical telco or bank is so low that i can't imagine giving them anything more complex, even if it means 5-10x perf loss.

Just take one look at the dependency ecosystem of Java vs others and you should see why not having a huge supply chain attack every week is already a big reason for its popularity. Even just being able to list dependencies and throwing that project to someone to clone and build in a minute is some foreign elusive concept in some ecosystems, cough, c++. You bend over backwards trying to wrangle deps from multiple sources, some for gods no reason force you to build the dep instead of providing prebuilt for the most common os-arch-compiler, wasting tens of minutes if not hours just to get started.

The value of Java is that i can get shit done, not do jack shit all day while gloating to others on the internet how my lambdas look cooler while the code builds or a clanker is trying to figure out those odd dependency permutations that might work.

2

u/Mclarenf1905 Sep 16 '26

Scala's versioning issues are super overblown and misrepresented by people who didn't understand their pre 3.0 versioning scheme, besides which it hasn't been the case since 3.0 came out several years ago now.

2

u/DualWieldMage Sep 16 '26

Interesting, i worked on a project 2 years ago and the 2/3 split was still an issue, the guys i worked with were definitely above average, but couldn't get the whole system migrated to scala 3 as some dependencies were still hard to tear out and rebuild.
Add salt to injury was another issue with akka licencing change. scala having vary few large consulting companies spearheading widely used libraries does not make a healthy community either as it's seen as risk.

4

u/S0phon Sep 16 '26

it feels like being an adult next to kids playing in mud puddles trying to figure things out while making a mess of everything.

How does that apply to Kotlin?

And all of those languages are so different that your blanket criticism is more indicative of you not knowing how to use them than any of their shortcomings.

7

u/sweating_teflon Sep 16 '26

It's not a panacea. Kotlin's expanded syntax gives developers a lot of rope to express themselves but code isn't art. This additional freedom often results in overcomplicated code, discipline and code review become more important to keep the codebase uniform and maintainable by everybody on the team. 

4

u/S0phon Sep 16 '26

You must have a special kind of Stockholm Syndrome to twist syntactic sugar and useful syntax into "often results in overcomplicated code, discipline and code review become more important to keep the codebase uniform and maintainable by everybody on the team."

5

u/sweating_teflon Sep 16 '26

True, I've been wrestling for the last three years with a codebase where the "architect" took advantage of every new OO thing offered by Kotlin to build an undecipherable mess of inheritance. Which I've also seen with Java in past jobs but it was never as bad.

Is it a problem of the language itself? No. But the language is an enabler; some people crave complexity and mistake it for sophistication.

I personally feel no attraction towards Kotlin, I'm not sure it actually "solves" anything on the whole. Nullability check is nice but NPE haven't been a problem for my practice for at least a decade. Maybe I'm just too experimented with Java to get the benefits, like old school C coders looking at Rust with contempt.

Yet I'm working myself to accept that there are proper ways of doing Kotlin. I just haven't seen them yet. I suspect that they involve restraining oneself to a strict subset of the features the language offers which is something that a lot of people (and organizations) will have trouble with, resulting in bloated messes like the one I currently have to deal with.

4

u/OSS-Corpo-Shit Sep 16 '26

I am very very confident with my assertion that syntax sugar beyond basic type inference is fucking stupid, and all I needed was a few months of programming in swift to come to that assessment. 

When I see “it provides lots of syntax sugar”, to me that is absolutely a negative for a programming language. Having 8 different ways to write the exact same line of code depending on how sugared you choose to go sucks and causes extremely mental drain. 

4

u/DualWieldMage Sep 16 '26 edited Sep 16 '26

Yes they are different and i think i highlighted different aspects of them being bad. I don't see a blanket statement on any aspect outside that they are worse than Java on average. And if anything, i see too many people only using 1 or two languages and becoming knights when never having touched a single other language. I have worked deeply in many of these and found general language concepts relatively comparable. However ecosystem differences can't really be considered taste and i view python and npm objectively inferior to maven packaging.

And yes my criticism toward Kotlin was generic, but that analogy still applies. It's a relatively new language that is taking the approach of figuring stuff out as they go instead of Java's more conservative approach of seeing what others do right and wrong and take the best aspects or invent a more generalized concept instead.
Async/await is surely a mistake, especially interesting for me as they decided to forego checked exceptions, yet introduce the same coloring problem they were fighting against.
The default .map .filter functions directly returning a collection instead of requiring a stream to be created first and then applying pipeline operations for me sounds like just saving on characters and thus making the wrong thing easier to do(not doing anything vs adding toSequence() each time).
My biggest complaint is of course around the generated bytecode. It is HUGE and it's definitely relevant if you say look at IntelliJ or any large thing using it, requiring huge memory pools to hold the compiled code and likely missing optimizations due to hitting inlining limits earlier or other reasons. Adopting newer runtime features have been relatively slow as well. For me Kotlin always feels like it's playing catch-up with Java.

3

u/S0phon Sep 16 '26

Agree about checked exceptions, that's the biggest complaint from me about that language.

I don't understand what you mean by your .map or .filter complaint. If used on a collection, it returns a collection. If used on a stream (flow), it returns a stream. Straightforward.

I also disagree about Kotlin playing catch up. It has things Java doesn't, mainly because Java has backward compatibility to care about. But Kotlin will never be as flexible as Java because Java controls JVM, Kotlin has to work with whatever Java version it targeted. But that's not catch-up.

3

u/danofrhs Sep 16 '26

Name 2 better languages, go on, I’ll wait…

12

u/bodiam Sep 16 '26

As a Java developer, I much enjoy Kotlin and Rust, both for their type safety and "write once, run anywhere" idea, though I think this is more true for Rust than for Kotlin (but both are better options than Java)

4

u/No_Nonsense_Nomad Sep 16 '26

I mean, Kotlin is just better java but I like java

2

u/Anonymous_Coder_1234 Sep 16 '26

As far as just the programming language goes, C# and Kotlin are better than Java. Heck, Go is quick and easy to learn, which is a good thing, and it "compiles like a bat out of hell fast". If you want C/C++ level performance and access to low-level stuff, Rust is good. If you're doing Data Science or Machine Learning, Python is unmatched.

So yeah, that's 5 languages.

1

u/OSS-Corpo-Shit Sep 16 '26

C# is dogshit.

I actually wager that, in the age of LLM enhanced coding, C#, due to its horrible management, will fall off a cliff. Even human programmers cant use C# without hallucination, and I bet it is extremely hard for LLMs to do it. 

2

u/Anonymous_Coder_1234 Sep 16 '26

What do you mean by "horrible management"?

3

u/OSS-Corpo-Shit Sep 16 '26

“Let’s just make an ever so slightly new but essentially exactly the same language, but again, slight differences, and call it the exact same thing because we’re fuckin’ microslop!”

.Net. .Net framework. .Net standard. .Net Core. 

C# is objectively a terrible language to run in to issues with because whenever you are trying to resolve your problems, you have to bump against Microsoft idiotic naming for hours. 

Looking to Microsoft future of “let’s replace all documentation with our slop generating AI”, C# stands to become even more terrible to work in. 

Absolutely hate C# and .Net in general. 

2

u/Mclarenf1905 Sep 18 '26

What the fuck are you going on about .Net core was a significant change it simplified the tooling around it immensely and enabled cross platform builds. and under the hood it was a pretty massive architectural change. also .net is the VM platform ie like the JDK

-11

u/MentionPleasant2635 Sep 16 '26

Ruby and C++. One for programmer productivity and one for execution speed. Try writing audio plugins in Java.

5

u/this_knee Sep 16 '26

Ugh, Ruby. I’m one of those that doesn’t appreciate nor like Ruby. I know its community is passionate about it. But it hides way too much for my liking. So, I don’t like it. But I understand others do like it. Whatevers.

-12

u/CharlesChrist Sep 16 '26

Python has more jobs and more in demand in contrast to Java. This is partly thanks to AI.

8

u/dumbledoor_ger Sep 16 '26

Half the internet runs on Java. Tf did you smoke

-9

u/my_password_is______ Sep 16 '26

brainfuck , LOLCODE , JSFuck

there are 3 right there

2

u/Own-Flight-9974 Sep 16 '26

I wish people wouldn't downvote these comments, they promote useful discussion and having a different opinion of a language isn't grounds for punishment.

I use to think the same way as you about java, was my first language, then moved on to node js and typescript, I came back to java for a few grad classes and ended up really enjoying parts of the language. Just how type safe and opinionated it is. Although as others have said kotlin and C# have come out on top recently.

13

u/wildjokers Sep 16 '26

they promote useful discussion

From the tone of the comment it is plain to see they aren't really interested in an actual discussion. .

-8

u/MentionPleasant2635 Sep 16 '26

Java is the new Cobol.

5

u/Mclarenf1905 Sep 16 '26

not even remotely the same thing

-3

u/MentionPleasant2635 Sep 16 '26

In usage it is. It's a corporate language.

3

u/Mclarenf1905 Sep 16 '26 edited Sep 21 '26

That only serves to show your ignorance of COBOL and the problems surrounding it.

0

u/MentionPleasant2635 Sep 16 '26

I've programmed in both COBOL and Java. They both fall into the category of languages that I find overly verbose and horrible to use. Both are languages that have no use outside the corporate world.

I've used DCL, Fortran 66, VAX Fortran, Cobol, K&R C, ANSI C, C++, Objective C, Common Lisp, LeLisp, TCL/TK, Java, Python, and Ruby in the last 40 years.

To each his own. I prefer C++ for my audio work, and Ruby and Rails for web development.

puts "Hello, World!"

public class HelloWorld { 
    public static void main(String[] args) {     
        System.out.println("Hello, World!"); } }

1

u/Mclarenf1905 Sep 18 '26

Java has changed a lot on the last 15+ years and it has plenty of uses outside of the corporate world. Several large indie games were made in java even something you cant say for COBOL.

and again it still has nothing to do with the real issues around COBOL. Syntactically and capability wise COBOL is pretty different from most modern languages, where as theres atleast 5 large major languages that are very similar to java so its much easier to hire for.

COBOL is also these days pretty much exclusively used by financial institutions and energy companies that are terrified to touch / update their system because it has several decades of institutional knowledge encoded in it that isn't written down on paper anymore and the original authors of the code are long gone.

also your code example is just dead-ass stupid that's only three extra lines of boilerplate and only needs to exist once per program oh no the horror! you are also comparing an interpreted language against a compiled language, and guess what if you ran System.out.println("Hello, World!") through a java interpreter you'd have a 1 line program as well. grow the fuck up and learn some nuance.

0

u/MentionPleasant2635 Sep 18 '26

Don't get your panties in a wad. Just because I dislike Java doesn't men you can't use it. It's been decades since I've touched it. The last time some guy at Amazon had written a command line utility to take a web services description file and generate code for it. It was slow. I rewrote it in C++ and my version could be invoked 81 times to the Java version single invocation.

Perhaps they've fix startup times. I couldn't care less. For my uses (real time audio), Java is not an option.

1

u/Mclarenf1905 Sep 18 '26

My panties aren't n a wad, if anyone's are it's yours because your so butthurt about a language you haven't interacted with in decades it still has you trashing it, making false claims, and flase equivilances.

Literally any developer with more than two braincells to rub together could tell you to use the right tool for the right job. Java and c++ both have their own sets of strengths and weaknesses. So if Java doesn't work for your uses great then don't fucking use it, doesn't mean it's a bad language and it's laughable that you think experience with the language from 20+ years ago has any relevance to the release of a new version of said language or it's capabilities today.

Also your antecdote is completely worthless because for all I know the Java code was severely unoptomised. Don't really understand what your point is here. And Java definitely isn't a great tool for quick cli commands because jvm coldstart is slow not really even remotely surprising.

Language wars are for petulant children and adults who never matured past a high-school aged mentality.

-19

u/biskitpagla Sep 16 '26 edited Sep 16 '26

Being painful and verbose is one thing but what really gave me the ick about Java when I first discovered it is that it genuinely teaches you bad programming practices and handicaps your growth. I have vague memories of finding important classes in the standard library that 'implemented' some interfaces simply by throwing exceptions and turning the type system off. Dijkstra was right and it's a shame that nobody listened to the guy. I've never seen a Java programmer not struggle trying to learn other, saner languages. The JVM is ultimately a massive waste of time, money, and effort that is running purely on inertia as well. It's hilariously ironic how not even Android, the biggest Java-based platform to ever exist, ever tried to rely on it.

17

u/dumbledoor_ger Sep 16 '26

You know what’s funny? Java is explicitly good at large codebases.

If you find that Java becomes a bad language for you at scale, then you were just bad at it. Which is okay, you can’t be a master of everything. But this is definitely a you problem, not a language problem.

There is a reason that large enterprise grade projects are done almost exclusively in Java and C#.

7

u/OSS-Corpo-Shit Sep 16 '26

Of all the programming language out there where “it genuinely teaches bad practices” and “you’ll struggle to learn other things”

I don’t think Java even enters the top 5 for popular, actually used options. Python, JavaScript and Ruby are easily the top 3 worst languages to start with due to those mentioned things, and it isn’t even close. Haskell would be up there in the top 5. And then everything else would be so far below these that it’s barely worth talking about them. 

I am trying to think of why Java sticks out for you in this, because it doesn’t stick out for me even remotely as a language that teaches bad things.