Hacker Newsnew | past | comments | ask | show | jobs | submit | sideeffffect's commentslogin

Zulip

> Ridiculous performance, near-instant startup, radically less memory consumption.

It seems like your use case is rather not a good fit for Java.

Java shines best with large applications, where more abstract source code is desired and when you care more about typical performance, not the worst case performance. And if you can afford the cost of all those benefits, which is higher RAM usage.

At least that's the theory :)


Think about most software running SaaS's - you don't think they would appreciate "Ridiculous performance, near-instant startup, radically less memory consumption"? Especially if there's not really a downside?

I mean, I've been writing JVM based software for 27 years now, but it was written for a different world (that never came), and it just isn't a perfect fit for most of our needs any more.


It's not like typical performance of Java is great and only GC pauses (or whatever) drag it down. In other words, Java is no match for Rust / C / C++ even comparing "good runs only" of both.


There are no GC pauses in modern Java implementations, and there are plenty of systems written in C and C++ that have been replaced by Java, I took part in such projects.

Companies like PTC and Aicas stay in business, because there are plenty of industries that pay for their embedded JVM implementations instead of keeping legacy C and C++ infrastructure running.


Every GC in Java involves synchronization points and the pausing of application threads.


I'm arguing against "Java performance is as good as it gets" in this thread, but the best Java GCs have sub-millisecond pause times for huge heap sizes and, apparently, such a GC even became the default recent-ish-ly: https://inside.java/2023/11/28/gen-zgc-explainer/

The JVM is amazing technology for what it is, but what it is still limits how fast it can go.


We are really talking about different categories of software. The C++ / Rust world typically operates at a different one than where Java does. It used to be manual memory management was a burden that the biz wasn't willing to invest in for typical software - with LLMs, the trade-off landscape has changed (sounds like buzzword BS, but it's true).

When you can get the benefits and let the LLMs pay for the downsides you'd otherwise have to handle - that's a change of circumstances that we really ought to pay attention to as software devs.

Can you write very fast Java software, yes - LMAX is a great example. Can you write slow Rust/C++ code, absolutely. But the values, community and tech built around the latter really does make it a lot easier when that's your (and your LLM's) goal.


Not every GC, better learn the ecosystem.


Provide the GC name.


> Deployment of Java applications continues to be a mess

If it could help you, we're using JIB. We're on Scala and so we're using sbt-jib. Zero issues, works like a charm, deployment (on k8s) is just not a problem for us. But I would expect that it should work well for Java too.


On a related note.. The JDK developers could learn a thing or two from Scala, which comes with the really handy scala-cli. The JDK should have something similar.


> Java continues to try and catch up to Kotlin

Does it, really? Java has had pattern matching since 21 (2023). Kotlin still, to this day, the year of our Lord 2026, doesn't...


Kotlin had it since 1.0, it's just called `when` instead of `match`.

https://kotlinlang.org/docs/control-flow.html#expressions


Kotlin does not have inline destructuring in pattern matching.


Pattern matching with only positional destructuring is a bad feature. I've written enough Scala to say this with confidence.


That’s just fancy switch statement.


Kotlin has always had smart-casting in if and when (sort of switch) expressions, which are strictly more powerful than the current version of Java "pattern matching". Both don't do de-structuring which I would consider a basic requirement for pattern matching, but at least Kotlin didn't call it pattern matching.


Wait, what do you mean Kotlin smart-casting is more powerful than pattern matching? Like what example?


strictly more powerful than what Java currently calls pattern matching, not nearly as powerful as eg Scala or Haskell


But what example would you have to demonstrate it's more powerful? As a matter of fact, Kotlin smart-cast approach can't tolerate mutability because it can't guarantee safety, yet Java guarantees.



Bob Martin uses that already for tests. And I think it's a much better analogy for that.

That being said, I myself do prefer types over tests. I just don't know of a better analogy...


The official VS Code extension from Oracle with an LSP server:

https://marketplace.visualstudio.com/items?itemName=Oracle.o...


If you're interested in this, then you should check out https://github.com/golemcloud/golem

Golem is a durable workflow platform and can run any wasm.


Or maybe you can solve it like I did -- by using a font that does the (IMHO) right thing with regards to ligatures

https://github.com/0xType/0xProto#4-ligatures-that-dont-defo...

I can't recommend 0xProto enough, the only thing I'm sorry about is that I didn't find it sooner :)


Going to give this one a try; I'm still partial to Atkinson hyper legible, but this one looks fun.


https://reactnative.dev/docs/out-of-tree-platforms says otherwise

React Native Skia allegedly runs on Linux too


React Native Skia seems abandoned. But maybe this will make React Native on Linux viable

https://github.com/gtkx-org/gtkx


React Native Skia last commit is three years ago.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: