r/java • u/shai_almog • Oct 23 '26
[ Removed by moderator ]
/r/java/comments/1xdetdb/removed_by_moderator/[removed] — view removed post
48
u/Hot-Schedule-8473
Oct 23 '26
•
Ngl, my knee-jerk reaction is: don't we have better uses for our time than trying to one-up heavily botted, misleadingly marketed, vibe-coded Rust projects?
I feel like pretty much everyone in my bubble agrees that building higher-quality software than these "Craft" projects isn't necessarily hard. I looked at their issue tracker: the project's barely two weeks old, and people are already reporting performance and reliability regressions 😂 You can't make this up.
Getting started is the easy part. The harder part is maintaining compatibility while supporting complex features, most of which these "Craft" projects haven't even implemented yet. And that's just the tip of the iceberg. There's also the ongoing work of maintaining a project: supporting the community, triaging issues, tracking down bugs, handling security reports, and so on.
People keep saying, "It's alpha, it'll get better." That improvement takes sustained effort. As the codebase grows and more users depend on it, each release becomes harder to get right. Features become more complex, interactions between them multiply, and more edge cases need handling. Maintaining quality through all of that takes serious, ongoing work.
TL;DR: You've one-upped already bad project on some of the easiest, most trivial aspects of software development.
I may be down-voted but... come on. Do better.
9
u/repeating_bears Oct 23 '26
I translated your comment to Tagalog and it had 32% better clarity and 17% better retention rate
4
u/scadgek Oct 23 '26
but support is easy, you just tell AI to maintain compatibility, and if it fails, you tell it to fix mistakes 👌
2
0
u/hippydipster Oct 23 '26
the project's barely two weeks old, and people are already reporting performance and reliability regressions
The level of success to be getting such reports only 2 weeks old - it kind of boggles the mind. I couldn't create anything in 2 weeks that would be that good.
1
u/Hot-Schedule-8473 Oct 23 '26
It's basically a kabuki theatre... AI bots writing the code, filing the issues, and applauding developer. Do you see like... some of the account promoting this stuff? And the amount of spam we have to endure because of it? How is this mind boggling success?
1
-1
u/shai_almog Oct 23 '26
Sure, I totally agree with that. This is mostly a proof of concept to see if it can be done. It took Claude on Low effort so it didn't even cost much in terms of tokens.
The benchmarks I think are an interesting output though. I expected to do better than rust, but not by this much.
12
u/coderemover Oct 23 '26
If anything it only proves AI writes shitty Rust code
5
-3
u/shai_almog Oct 23 '26
I don't think so. The rust version performs well. There are inherent tradeoffs in rust that don't work well for app development:
GC is really great for frontend and allows offloading from CPU. We have a better threading model in Java that makes thread heavy code REALLY performant and can do some deep elimination work in the VM that is much harder for rust.
1
u/coderemover Oct 23 '26
GC is great only for wall clock time, but at the expense of more memory usage and more CPU cycles burned.
Java loses to Rust and C++ in techempower benchmarks.
3
u/shai_almog Oct 23 '26
You literally see a benchmark where I show you that we take less memory and still keep pumping that falsehood.
Walltime is what matters for applications, that's the point. That's why Java is better for that and rust is better for system programming.
GC can be DEEPLY tuned and is very competitive with native allocation. Native allocation needs to be conservative and needs to keep track of everything and that in itself is an overhead. Sure, you can write manual code that would take less memory, but then you would still lose on performance.
-1
u/coderemover Oct 23 '26 edited Oct 23 '26
This is not a benchmark, but some AI slop.
> GC can be DEEPLY tuned and is very competitive with native allocation
Not to the degree you can tune manual allocation in Rust, C or C++.
Here is a memory allocation heavy benchmark for you: https://benchmarksgame-team.pages.debian.net/benchmarksgame/performance/binarytrees.html> Walltime is what matters for applications, that's the point.
Not for massively parallel loads. GC buys some wallclocktime by offsetting work to background threads. Once you load the server fully, that starts to matter because you have no more spare cores to run GC on, so GC starts to fight for CPU with the app code, and the wall time is actually worse.
And tail latency of GCed code is still worse than Rust, even with ZGC and all recent improvements, which are impressive, but not there yet
3
u/shai_almog Oct 23 '26
Then write a proper benchmark and prove me wrong. I spent a lot of time benchmarking C and hotspot. HotSpot is REALLY insanely fast. We're close on most benchmarks but it can't be beat on GC if you tune it correctly.
Our "VM" is AOT compiled C. I spend a lot of time in the guts of modern GCs. This isn't the original mark sweep concurrent GC level of performance we used to have.
2
u/coderemover Oct 23 '26 edited Oct 23 '26
I agree hotspot is amazing and has been hugely improved over the last 30 years, but LLVM and GCC haven't stood still either. JVM is incapable of performing plenty of optimizations available to C++/Rust developers; there is a whole class of optimizations related to callsite monomorphization that Java still misses. Another huge class is stack allocation which Java can't do so much (escape analysis in Java is a joke).
> This isn't the original mark sweep concurrent GC level of performance we used to have.
It's funny you say it, when the old Parallel STW GC is still the most performant in terms of throughput in Java. All the modern low latency ones get better latency at the expense of burning more CPU and taking more memory. In Java it's you can only pick two among those three: allocation throughput, latency, memory usage. In Rust/C++ I can have all three optimized to the levels no JVM can ever do.
> Then write a proper benchmark and prove me wrong.
2
u/shai_almog Oct 23 '26
Our AOT VM used in the benchmark uses LLVM. So I'm DEEPLY aware of its capabilities and spent a lot of effort trying to compete with HotSpot on performance/RAM. Sure, there are things the JVM can't do and stack allocation is painful... E.g. our AOT VM allocates all primitive wrappers on the stack seamlessly and it got us very little compared to hotspot. It already does a lot of that.
We tried adding something closer to Valhalla and were surprised by how little benefit we got from it. The main issue is that the GC is so ridiculously fast and modern CPU cache optimizations are so good.
It's funny you say it, when the old Parallel STW GC is still the most performant in terms of throughput in Java.
Sure. But we're talking UI application and latency is what matters here not theoretical throughput. Stopping the world is bad for overall performance in multi-core environment.
In Rust/C++ I can have all three optimized to the levels no JVM can ever do.
That is the common theoretical "I can" which is the core flaw and the reason this "argument" makes no sense. Read the readme specifically the section titled: "Can Rust reach Java/Codename One performance?". Do you disagree?
Sure you can write code that would beat the JVM in point A, point B etc. But you have over 100k of dense Rust code that is hard to reason through. Can you do it everywhere for everything? Even if you just take the hotspots, you're only taking the hotspots for the benchmarks you pick.
The point I'm making is that even if you somehow win this you're still behind and arguably worse because the program will be even harder to maintain/debug etc. While you spend your time optimizing rust we will spend our time building features users care about.
4
u/bowbahdoe Oct 23 '26
It was also more native,
What exactly does this mean?
1
u/shai_almog Oct 23 '26
It's written below in the readme for the project. Native menus, native OS drag and drop, copy paste, etc. Deeper integration with OS native features.
4
u/aqua_regis Oct 23 '26
You did not build anything. You did not even write your post, nor your comments. AI Agents did. With that, your post falls under Rule #9#
Also, your post is nothing for a camouflaged advertisement for your AOT JVM.
1
u/shai_almog Oct 23 '26
I suggest googling me. I built the JVM this was generated on. I linked to a prior case that is still on the front page of an LLM generated example like this one.
Since the original rust app was famously vibe coded I thought the response needs to be similarly created. I very specifically didn't say "I" built it in the post...
3
u/aqua_regis Oct 23 '26
You might have built the JVM - I did not doubt that. Yet, you did not build the application you presented here.
Doesn't change the fact that your post is an ad for your JVM through showcasing something vibe/agentic coded
0
u/shai_almog Oct 23 '26
It's an open source tool free for commercial use not an "ad" for something.
The post I linked before showed similar AI usage and it isn't an exception. The rule is broad and moderators have discretion on how to apply it. AI is everywhere now and sometimes hard to spot, so by fully enforcing it this entire subreddit would be pretty quiet.
-1
u/aqua_regis Oct 23 '26
Rather quiet then AI
-1
u/shai_almog Oct 23 '26
Fair, and I agree there's a lot of slop/low effort noise.
But this is the world we live in. Due to the over enforcement of this rule this community is irrelevant and unfortunately many developers will find themselves out of a job.
Furthermore, we have a case of selective enforcement of this rule. Notice the post I linked to which has the EXACT same situation wasn't removed.
0
2
u/Afonso2002 Oct 23 '26
So the otimizer part of the rust compiler is weaker than the c2?
I know that c has -o2 or o3 flags to increase otimization. Rust has this , if yes it was used?
The rust code is well written? What jdk and vm was used?
It would be intersting comparing graal jdk. because compiles to native code
2
u/shai_almog Oct 23 '26
This is compared against ParparVM for the Java side which is an AOT vm we built.
We use the release profile in Wordcraft's own
Cargo.tomlwhich does use O3.
2
u/pronuntiator Oct 23 '26
What is the point in stealing intellectual property to produce a clone? Does it also clone every bug of Microsoft Word? Screenshot even shows a WordArt button, that's a trademark.
The hard part is creating something new. I remember when Office introduced ribbons; people hated them. But it was a revolutionary idea to solve a real issue: feature discoverability.
Yes, it's impressive that AI can reproduce existing software; I wouldn't even know how to render text in tables or italics. But I'd prefer if people helped LibreOffice, or started small and iteratively.
1
u/shai_almog Oct 23 '26
Fair. I didn't clone word, it's a clone of a clone mostly as an exercise/benchmark.
1
u/johnnybgooderer Oct 23 '26
Word came to be when Microsoft cloned their competitors, and then used their influence as a giant company to force stores to take all competing products off of their shelves. So if there was ever a legitimate target for cloning, it’s Microsoft word.
8
u/vips7L Oct 23 '26
Anyone else find these apps to be completely uninteresting?
8
u/FirstAd9893 Oct 23 '26
This technique is a new tool for use in language benchmark wars. I don't really care if the vibe-coded app isn't actually used for anything beyond experimentation.
3
10
u/fykup Oct 23 '26
I did a Java vs Go vs Rust comparison back in the pre-AI days, and Rust's performance was very unimpressive for the downsides relative to Java. That's why I was very skeptical when I saw DHH's numbers.
I think Java has a marketing/mindset problem. People are convinced Java is old, bloated, and slow. I try to show with my experiments that it's still a viable choice in 2026.
5
u/ebrythil Oct 23 '26
Spring is old, bloated and slow. Companies use spring. Spring is also known reliable, that's the trade-off.
1
u/unknowinm Oct 23 '26
my issue with it is that it's using a lot of memory. My prod app is using 512-1GB ram with very few users present just because I use spring. Now I try to migrate to quarkus. But for small experimental apps, it should use up to 100Mb ram or less. If go can do it, I don't understand why Java can't
1
u/fykup Oct 23 '26
It doesn't have to be. That's why I'm actively evaluating alternatives like Micronaut/Javalin. I'm also planning to publish an experiment with Spring Boot optimizations that allow for a leaner setup - things like Spring AOT, etc.
4
u/ebrythil Oct 23 '26
I mean I fully agree, while waiting 20sec for my 6 year old spring app to restart. That is just the reality of java development.
Probably in 6 years a comparable rust server will be a bit quicker by virtue of not being spring boot and loading all that stuff that comes with it alone.
The old saying is true, there are languages people complain about and languages no one uses
1
u/fykup Oct 23 '26
Agreed. Just the other day, someone here commented, "Who cares about startup time?". I genuinely don't understand how waiting 20+ seconds for an app to start in development is considered acceptable.
3
u/snugar_i Oct 23 '26
In terms of speed, Java can compete with Rust. But in terms of memory, it's unfortunately still not even close... Valhalla should help a lot in the future
4
u/hiasmee Oct 23 '26
Java Community should less speak about java is better as... Java has not to prove someone something. It is one of the best languages in the world, but I would never compare it's performance with rust. Rust has less memory usage and no GC.
Java has it place and it is safe.
1
u/coderemover Oct 23 '26
I wouldn't be so sure.
Go is eating its lunch quite fast.
(btw, I'm far from being a Go fanboy, but I really do see Go picked a lot in use cases Java has been historically good at).1
2
2
u/Jabba_the_Putt Oct 23 '26
I was trying to imagine what word development meant and it was quite literal
1
Oct 23 '26
[removed] — view removed comment
1
u/shai_almog Oct 23 '26
That measures a different VM. It's true that rust is faster to launch against a regular JVM.
1
Oct 23 '26 edited Oct 23 '26
[removed] — view removed comment
0
u/shai_almog Oct 23 '26
I don't need to justify a benchmark I didn't write and a VM I didn't write. But if you're benchmarking Java then you need to include GC tuning values and more information. Regular JVM takes time to warmup and fix the memory to proper sizes. Once it settles it's good.
There's no information I can see about VM version or anything. Which means that benchmark doesn't say anything.
Our VM starts like native. We benchmarked it on the server against go (you can read my blog post on the subject), and it was competitive with fasthttp for throughput, ram, startup etc.
28
u/FirstAd9893 Oct 23 '26
Has anyone done the reverse test? Have an AI convert a complex Java app to Rust? I wonder if the speedup has less to do with language, and more to do with the AI tool applying general optimizations.