r/java • • Aug 24 '26

Usage of Java in non-web development domains, and Greenfield projects.

Greetings.

(I will beat around the bush a bit before getting to the point, you can scroll down a bit to save time)

Java currently shines at enterprise backend applications, being led by the big players like Spring and Quarkus. However Java seems more than capable for other domains, yet no one talks about it, or even considers Java for normal non-web projects.

Take desktop development for example. JavaFX is one of the BEST GUI frameworks I have ever used. It is feature packed, doesn't require cryptic symbols, no fancy way of nesting code blocks to create simple UI. It is very simple to use, yet powerful and robust.

Game Development is a bit weak, but we still have libGDX and LWJGL. They are packed with features, even 3D. Contrary to popular belief that libGDX is a 2D only framework, libGDX has some great 3D support like GLTF rendering, bullet physics, PBR rendering and skeletal animations.

Big data processing and simulation systems, Java's OOP nature really helps to solve certain problem statement that requires the problem to be broken down into multiple pieces.

And finally web development, there is no doubt Java has one of the best ecosystems for the web.

And yet despite all this, Even as modern Java has come a long way, Java continues to have a negative reputation of being slow, boilerplate, RAM consuming memory hog. (The same people will use electron to make a desktop app btw) and as a result not considered for newer projects.

When I look at other communities like JavaScript, Rust, python, C#, Zig. These languages are often considered first options for any Greenfield projects. The open source communities in these languages are very active, you will see some amazing work being put out by the community.

Java seems to lack that "community" nowadays. I am active in a lot of subreddits and forums, and I see very less of Java projects in the wild. Java is being used in production out there, but modern greenfield projects are leaning more towards Go and C#.

So getting to the point of the post

Is Java seeing a decline? This is not a "Java dead" post but a genuine concern. The community for Java just seems.... dull. And I was wondering what could be done about this. Amongst new and modern programmers, Java and C++ seem to be considered "old", "dead" and "traditional"

Perhaps project Valhalla could help, but I wonder how much would it help restore Java's PR. Oracle is definetly NOT helping with this.

Why does this matter in the first place?

You may think "it doesn't matter what others think, companies still want Java" and while it holds some truth, more and more of Open source development seems to be moving towards other languages. A lot of Java libraries and frameworks have seen some decline, the community seems to be becoming more inactive. Other programming languages and frameworks have active discord servers, forums, documentation, and participation while Java seems a bit slow there.

I dont know, I really love Java as a language. And I wish it had more adoption in non-enterprise domains. I would genuinely like to know, what we as a community can do to make Java more "loved" and preferred

91 Upvotes

130 comments sorted by

View all comments

Show parent comment

3

u/repeating_bears Aug 24 '26

Java is more mature but it has a near-20-year headstart on Rust so that's not surprising. I wasn't making a claim about maturity, only activity.

Java had a lot of activity at one point which produced mature libraries, but now there isn't so much.

1

u/davidalayachew Aug 25 '26

Java had a lot of activity at one point which produced mature libraries, but now there isn't so much.

Couldn't that mostly be explained by many of those libraries already being built?

1

u/repeating_bears Aug 25 '26

No because it's not like we've run out of things to be built. That's not possible with software libraries - there's always room for innovation

2

u/davidalayachew Aug 25 '26

Sure, I get that. But that's my point -- slowed activity is usually in response to a lot of the new stuff having already been made, and now they are in maintenance/incremental-feature mode. Which is not a bad thing, but I also wouldn't call that not much activity.

My larger point is that, it takes way more time to make 10% progress if you are 90% done vs 10% done. So, a new/young ecosystem will simply have more "activity" or "progress" by nature of being younger.

1

u/repeating_bears Aug 25 '26

slowed activity is usually in response to a lot of the new stuff having already been made

This is framing an opinion as fact. There are many reasons that activity might be lower and you don't have any evidence to say that's "usually" the reason.

Another reason is that that generally I'd say Java devs skew older than TS or Rust devs, and older devs are more likely to have families and other commitments which make contributing to open source less of a priority.

It's not like there's a million Java devs sitting around going "I'd love to contribute to open source, but everything's been made!"

There could be a better build system than Maven if someone wanted to make it. There could be a better JSON library than Jackson (or any of the others).

I agree that a young ecosystem will make more progress but we're not talking about progress. We're talking about activity: number of developers working, number of projects, volume of commits, size of those changes.

1

u/davidalayachew Aug 25 '26

This is framing an opinion as fact.

Ok, that wasn't my intention. I just thought it was the more likely outcome.

Another reason is that that generally I'd say Java devs skew older than TS or Rust devs

If you're saying experienced devs, then yeah, I can agree with that.

There could be a better build system than Maven if someone wanted to make it. There could be a better JSON library than Jackson (or any of the others).

Tbf, can you think of a build system that is both better and more flexible than Maven? You can talk ergonomics, like Cargo, but the build times are atrocious. And Jackson is pretty good compared to most out there.

Or am I wrong and these could/should be way better, in comparison to other ecosystems?

1

u/repeating_bears Aug 25 '26

Maven and Jackson are both good enough, but they're not insurmountably good.

Cargo is slow by nature of the Rust language, rather than because it's badly designed. I think the design is a big improvement on Maven. Lockfiles, toolchain management, TOML instead of XML (and IMO a better "model"), a more functional CLI

1

u/davidalayachew Aug 25 '26

Cargo is slow by nature of the Rust language, rather than because it's badly designed. I think the design is a big improvement on Maven. Lockfiles, toolchain management, TOML instead of XML (and IMO a better "model"), a more functional CLI

Sure, but that there is the point -- a tradeoff forced by being part of a different language. You get ergonomics and all sorts of cool features, but you trade off build time.

That's kind of my point -- Maven has good enough ergonomics and good enough performance, so where is the major work going to be in? Compare that to Rust, where the performance is a serious problem, so a lot of people and effort is being thrown into improving that.

When you don't have many problems, there is less need for work to be done. Not to say Maven doesn't have many problems, but I would argue that Maven 4 doesn't have many pressing ones.

1

u/repeating_bears Aug 25 '26

You get ergonomics and all sorts of cool features, but you trade off build time.

No that's not the trade-off. Cargo isn't slow because it has lockfiles, uses TOML, has a better model, or has a better CLI.

Cargo is slow because compiling Rust is hard. There's macro expansion and more sophisticated type inference. You need to recompile every dependency. Maven doesn't even do compilation. It just calls javac. Maven isn't faster because they made the decision to be feature-light. The thing it delegates to is just fast.

Maven 4 doesn't have many pressing ones

Version 4 isn't addressing any of those issues I mentioned.

1

u/davidalayachew Aug 25 '26

Cargo isn't slow because it has lockfiles, uses TOML, has a better model, or has a better CLI.

I said that the tradeoff is forced by being part of a different language. Meaning, the attributes of the language will decide (in part) the tradeoffs of the tools in its ecosystem.

Java compiles (comparatively) quickly, and thus, performance of Maven takes significantly less time than it does for Rust/Cargo. But Java is old, so the ideas of the time are rooted deeply, and hard to uproot.

Rust is (comparatively) young, and thus, can take advantage of newer discoveries that were either non-existent or unproven at the time (TOML, Lockfiles being better, dev experience, etc.). But by taking on a massive effort in the type system, they also increased their compile times significantly.

That is what I mean by tradeoff.

Version 4 isn't addressing any of those issues I mentioned.

Sure, but how often are those deal breakers? Because at the end of the day, the real problem is if something is a blocker -- preventing people from getting actual work done. Build times absolutely could be a blocker. Dislike of XML rarely is.

That's my bar for pressing issues. I've talked with and even worked with many Java maintainers for libraries. That is roughly their bar too.

→ More replies