this post was submitted on 28 Mar 2025
748 points (99.1% liked)

Technology

68723 readers
3649 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related news or articles.
  3. Be excellent to each other!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, this includes using AI responses and summaries. To ask if your bot can be added please contact a mod.
  9. Check for duplicates before posting, duplicates may be removed
  10. Accounts 7 days and younger will have their posts automatically removed.

Approved Bots


founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] deranger@sh.itjust.works 27 points 2 weeks ago (29 children)

Non programmer but skilled with computers type guy here: what makes Java well suited for this?

This is probably an incorrect prejudice of mine, but I always thought those old languages are simpler and thus faster. Didn’t people used to rip on Java for being inefficient and too abstracted?

Last language I had any experience with was C++ in high school programming class in the early 2000s, so I’m very ignorant of anything modern.

[–] Feyd@programming.dev 33 points 2 weeks ago (18 children)

Java can be pretty damn efficient for long running processes because it optimizes at runtime. It also can use new hardware features (like cpu instructions) without having to compile for specific platforms so in practice it gets a boost there. Honestly, the worst thing about Java is the weird corporate ecosystem that produces factoryfactory and other overengineered esoteric weirdness. It can also do FFI with anything that can bind via c ABI so if some part of the program needed some hand optimized code like something from BLAS it could be done that way.

All that to say it doesn't matter what language they use anyway, because rewriting from scratch with a short timeline is an insane thing to do that never works.

[–] futatorius@lemm.ee 1 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

Yeah, Java can run maybe half as fast as equivalently complex C, while being far more maintainable. But to see that kind of performance, you'll want to use POJOs (plain old Java objects), not that enterprise bullshit. And there are many other optimization techniques that your average Java coder wouldn't see in their average coding job. I've been there, didn't like it. If I'm going to be dropping down to C for the hot spots, I'd rather use Python.

All that to say it doesn’t matter what language they use anyway, because rewriting from scratch with a short timeline is an insane thing to do that never works.

Schedule-driven development by people with no domain knowledge, with poorly understood requirements and life-and-limb-critical outcomes, led by an unpredictable moron. What could go wrong?

[–] Feyd@programming.dev 1 points 2 weeks ago

I wouldn't assume that Java is only half as fast as C for every workload. It's probably a lot closer than you think in a lot of real world scenarios.

load more comments (16 replies)
load more comments (26 replies)