News for hackers. Stuff that matters.
Re:Java Criminally Underhyped? Not Back in 1997. (2021) by jasode on Sunday July 20, 2025 @11:10AM (#44625909)
The word "hype" is being used in 2 different ways.

definition #1 is about Java features : The original "Java is criminally underhyped" essay by Jackson Roberts is talking about "not over-hyped" in terms of Java's technical capabilities ... such as types and package manager, etc. E.g. Java has types which Javascript/Python do not and typing is a positive thing to help prevent errors -- therefore -- Java is "underhyped". The particular language capability not being used as much as the author thinks it should is the basis for defining what "hype" is.

definition #2 is about Java's marketplace effect: The "overhype" of Java in the 1990s was extrapolating and predicting Java's effect on the whole computing landscape. This type of "hype" is overestimating the benefits of Java and making bold proclamations. Examples:

- Java and JVM's WORA "Write Once Run Anywhere" will kill Microsoft's Evil Empire because it will render Windows irrelevant. (This didn't happen and MS Windows still has 70+% desktop market share today. 30 years later and Microsoft is one of the top 3 tech companies with a $3.7 trillion dollar market cap while Sun Microsystems was acquired at a discount by Oracle.)

- Java will make lower level languages with manual memory allocation like C/C++ obsolete because CPUs are getting faster. Let the extra "unused" cpu cycles do automatic garbage collection in Java instead of C programmers manually managing memory with malloc()/free(). (C/C++ is still used today for games, and tight loops of machine learning libs underneath Python.)

- Java plugins will enable "rich" web experiences. (It turns out that Javascript and not Java plugins won the web. Java also didn't win on desktop apps. Javascript+Electron is more prevalent.)

That's the type of overhype that Java failed to deliver.

Same situation with today's AI. Some aspects of AI will absolutely be useful but some are making extravagant extrapolations (i.e. "AI LLM hype") that will not come true.

Re:Java Criminally Underhyped? Not Back in 1997. (2021) by le-mark on Sunday July 20, 2025 @11:47AM (#44626320)
> Java and JVM's WORA "Write Once Run Anywhere" will kill Microsoft's Evil Empire because it will render Windows irrelevant.

There was the sentiment but this doesn’t fully capture what the hype was about. Java out of the gate had Suns network vision built in via jndi, rmi and object serialization. The hype was about moving applications onto the network and off of windows or any particular vendors OS.

And this did come to pass, just not how Sun was selling it with Java. For example; Office, Microsoft’s crown jewel and anchor into a lot organizations is now almost entirely web based.

Re:Java Criminally Underhyped? Not Back in 1997. (2021) by zozbot234 on Sunday July 20, 2025 @12:01PM (#44626474)
> Java out of the gate had Suns network vision built in via jndi, rmi and object serialization.

It's kind of obvious since having a standard, platform-neutral virtual machine doesn't just enable WORA; it enables sending binary code and program state over the network, which is quite handy for all sorts of distributed computing flows. We'll probably do the same things using Wasm components once that tech stack becomes established.

Re:Java Criminally Underhyped? Not Back in 1997. (2021) by ndiddy on Sunday July 20, 2025 @01:07PM (#44627115)
I think the "move applications onto the network" idea basically killed Java on the desktop and relegated it to a backend only language. It wasn't a bad idea, but it was too early. Because of the focus on network distribution, the two main ways to distribute desktop Java software were Java WebStart (lengthy start-up times on early 2000s internet speeds, integrated poorly with your OS) and applets (only viable for corporate environments where the IT department had control over the whole network and all the clients on it due to security problems, no integration with your OS). If you had to distribute software that ran locally, you had to roll your own solution or buy some third-party tool since Sun didn't have anything that made this easy.
Re:Java Criminally Underhyped? Not Back in 1997. (2021) by hedora on Sunday July 20, 2025 @01:57PM (#44627586)
It didn’t really come to pass.

Office web is comically slow, even when I have $5K of machines a 100ish GB of DRAM laying around my house.

In the java vision, it’d transparently offload to that network of machines. Also, the user could decide not to offload to untrusted hardware (e.g., I don’t want to trust Microsoft’s cloud compute).

Re:Java Criminally Underhyped? Not Back in 1997. (2021) by breve on Sunday July 20, 2025 @07:04PM (#44630202)
> And this did come to pass, just not how Sun was selling it with Java. For example; Office, Microsoft’s crown jewel and anchor into a lot organizations is now almost entirely web based.

But this will come full circle with the transition to WebAssembly. WebAssembly is like Java applets but it has the advantage of being built into the browser with nothing extra to install.

Google switched the calculation engine of Google Sheets to WebAssembly (rewriting it in Java as it happens) and got double the performance versus JavaScript:

https://web.dev/case-studies/google-sheets-wasmgc

Re:Java Criminally Underhyped? Not Back in 1997. (2021) by zozbot234 on Sunday July 20, 2025 @11:47AM (#44626317)
> Java will make lower level languages with manual memory allocation like C/C++ obsolete because CPUs are getting faster.

Except that this actually happened wrt. a whole lot of application code. Sure, Java was slow and clunky but at least it was free of the memory unsafety that plagued C/C++. What was the mainstream "safe" alternative? There was no Rust back then, even Cyclone (the first memory-safe C style language) was only released in the mid-2000s.

Re:Java Criminally Underhyped? Not Back in 1997. (2021) by jasode on Sunday July 20, 2025 @12:10PM (#44626554)
>Sure, Java was slow and clunky but at least it was free of the memory unsafety that plagued C/C++. What was the mainstream "safe" alternative? There was no Rust back then,

Before Sun Java in 1995, companies built enterprise CRUD apps with "safe" memory languages using MS Visual Basic, PowerBuilder, and xBase languages like dBASE and FoxPro. This allowed them to develop line-of-business apps without manually managing memory in C/C++.

Re:Java Criminally Underhyped? Not Back in 1997. (2021) by hedora on Sunday July 20, 2025 @02:04PM (#44627661)
On top of that, when I last had the misfortune of using Java, (17, maybe?) the GC still was a top cause of production outages and a massive productivity drag.

They claimed they fixed it a dozen times, starting with JDK 1.4, and continued to claim that with every major release since.

Re:Java Criminally Underhyped? Not Back in 1997. (2021) by holowoodman on Sunday July 20, 2025 @07:21PM (#44630330)
Java might be memory-safe. But it is "performance-unsafe".
Re:Java Criminally Underhyped? Not Back in 1997. (2021) by Tostino on Sunday July 20, 2025 @09:40PM (#44631037)
For certain problems. I'm looking forward to Project Valhalla finally landing, and the subsequent improvements that come later.

Getting the performance benefits of data oriented programming patterns is very exciting to me for allowing Java to run totally different classes of applications than haven't been practical until now.

Re:Java Criminally Underhyped? Not Back in 1997. (2021) by estebank on Monday July 21, 2025 @11:24AM (#44636290)
Valhalla is indeed the one effort that could close the biggest gap with native languages. Java Vs C or Rust for networked applications have comparable CPU utilisation with comparable throughput, but memory consumption can be >100x. Project Valhalla is the only thing that could potentially change that. The problem I do see is that even after the language and JVM have value types, the vast extense of libraries that people use are unlikely to change to leverage them. But for projects that control most of their own dependencies, it will be a clear win.
Re:Java Criminally Underhyped? Not Back in 1997. (2021) by Tostino on Monday July 21, 2025 @11:33AM (#44636402)
I think over a few years, most of the major dependencies will adopt some of the benefits of Valhalla; at least in the performance sensitive parts.
Re:Java Criminally Underhyped? Not Back in 1997. (2021) by Twirrim on Monday July 21, 2025 @10:15AM (#44635365)
It's perfectly fast. Slower than C/C++ under most scenarios, but not by a particularly large amount, and in some scenarios faster due to optimisations only possible from dynamic runtime observation.
Re:Java Criminally Underhyped? Not Back in 1997. (2021) by gf000 on Sunday July 20, 2025 @08:26PM (#44630691)
Top cause for production outages? Like what, did you get OOM errors? Also, how can a GC be a productivity drag?

Anyways, besides your very questionable "experience" with java, it literally runs half of the internet, and has by far the most mature and performant GC out of any platform, no one else is even close in this category.

Re:Java Criminally Underhyped? Not Back in 1997. (2021) by Twirrim on Monday July 21, 2025 @10:12AM (#44635336)
How the heck did you manage that? I've been working on two major clouds for well over a decade, both built primarily on Java, and not seen a single production outage caused by garbage collection. Not one.

Not even S3 in us-east-1 at its gobsmacking RPS rates had issues with garbage collection.

No special coding approaches were taken to achieve that, just standard stuff.

Re:Java Criminally Underhyped? Not Back in 1997. (2021) by gompertz on Sunday July 20, 2025 @11:58AM (#44626439)
Interesting! I never heard of Cyclone before. Looks like another Bell Labs contribution.
Re:Java Criminally Underhyped? Not Back in 1997. (2021) by majormajor on Sunday July 20, 2025 @06:41PM (#44630055)
Java wasn't particularly responsible for that. And non-GC languages didn't even become obsolete - they're so relevant that they're one of the buzziest new-language-development areas.

It didn't displace C-family languages on desktop OSes. There was a brief wave of Java-first desktop apps and people generally hated the UI toolkits and lack of first-party-feel and they went away.

And on the server, it was just one of many non-C things like Perl, PHP, Python, Ruby, etc. Java became a standard "our dynamic language is too slow, port it to something else" destination but honestly the interpreted languages did more for killing C/C++ from a perspective of "CPUs are fast enough, and we're not CPU bound usually, just write in whatever's easiest."

And now we have a whole wave of "rewrite something off of the JVM, or off of Go, or off of some other GC'd language in Rust" projects because "just let the CPU use the spare cycles to GC has never been fully realized.

Re:Java Criminally Underhyped? Not Back in 1997. (2021) by gf000 on Sunday July 20, 2025 @08:29PM (#44630708)
> And now we have a whole wave of "rewrite something off of the JVM, or off of Go, or off of some other GC'd language in Rust" projects

I think you vastly overestimate the size of that wave. Rust is a novelty in a specific niche and is changing/will change the low-level programming niche, but it won't noticeably alter how general business programming goes, not at all.

Re:Java Criminally Underhyped? Not Back in 1997. (2021) by pyuser583 on Monday July 21, 2025 @12:36AM (#44631843)
Java massacred COBOL and Ada. It was “the” web programming language for a while.