Thread regarding Oracle Corp. layoffs

Java is so YESTERDAY!!!

Apple developers reject Java, claim big savings from switch to Swift

An internal Apple developer team revealed in a new case study that “Java’s memory management approach no longer aligns with our growing demands and efficiency goals.”

The team is now looking for more efficient languages, and in this example chose Swift, achieving a claimed 50 percent reduction in hardware utilization, 90 percent less memory, and 40 percent more throughput.

The service is for password monitoring, checking user passwords against a list of those that have leaked. The application receives “multiple billions of requests per day from devices all over the world,” according to the post from the development team. The service runs on Linux and includes layered encryption which increases the compute resource needed for each request.

“For years, our team relied on Java to power large-scale, mission-critical services because of its proven stability and performance,” said the developers, but nonetheless decided to look for another language because of issues with garbage collection. Garbage collection (GC) is a technique for managing memory automatically, by freeing memory that is no longer required in regular sweeps, but despite improvements in Java’s GC there were still issues with GC pauses under load and its performance overhead.

Scaling is another issue. The service load varies substantially during the day and Apple scales the hardware in use accordingly. When firing up new hardware on demand, boot time becomes critical, and managed languages like Java tend to take longer because of their greater runtime requirements – a problem AWS has worked on with its SnapStart technology.

The team chose to rewrite the service in Swift, developed by Apple as a modern alternative to Objective-C. The web framework used was the open source Vapor. Swift also has automatic memory management, but unlike Java it is implemented with ARC (automatic reference counting). The pros and cons of ARC versus other approaches to GC are debated; but in this case the team found substantial improvements, including a 90 percent reduction in memory usage as well as half the hardware utilization, for a service running on Kubernetes.

https://devclass.com/2025/06/04/apple-developers-reject-java-claim-big-savings-from-switch-to-swift/

by
| 1271 views | | 4 replies (last June 17, 2025) | Reply
Post ID: @OP+1jwy52x40

4 replies (most recent on top)

java's fate was sealed when gosling was allowed to leave - they should have done anything he wanted to keep him. without gosling or another figure to be dictator for life the die was cast, a language lorded over by corpos.
by 2015 java's sizzle was all but gone.
impressive how far and wide and deep java penetrated in its time.

by
| | Reply
Post ID: @21n+1jwy52x40

Lol. Lmao even. It doesn't matter how efficient is technology, it will be driven to sh-t by our H1B friends.

by
| | Reply
Post ID: @zz+1jwy52x40

So you just realized this about Javs now?!? You must really follow tech closely and probably command top-consulting follars as a result..

by
| | Reply
Post ID: @q4+1jwy52x40

and so is worrying about it.

by
| | Reply
Post ID: @pw+1jwy52x40

Post a reply

: