News for hackers. Stuff that matters.
Re:Users don't care about your tech stack by ben_w on Friday February 21, 2025 @08:15AM (#43127049)
> Users don't care what language or libraries you use. Users care only about functionality, right? But guess what? These two things are not independent. If you want to make something that starts instantly you can't use electron or java. You can't use bloated libraries. Because users do notice. All else equal users will absolutely choose the zippiest products.

Semi-dependent.

Default Java libraries being a piles upon piles of abstractions… those were, and for all I know still are, a performance hit.

But that didn't stop Mojang, amongst others. It can be written "fast", if you ignore all the stuff the standard library is set up for, if you think in low-level C-like manipulation of int arrays (not Integer the class, int the primitive type) rather than AbstractFactoryBean etc.

Of course, these days you can't run applets in a browser plugin (except via a JavaScript abstraction layer :P), but a similar thing is true with the JavaScript language, though here the trick is to ignore all the de-facto "standard" JS libraries like jQuery or React and limit yourself to the basics, hence the joke-not-joke: https://vanilla-js.com

Re:Users don't care about your tech stack by jcelerier on Friday February 21, 2025 @08:22AM (#43127105)
> But that didn't stop Mojang, amongst others

Stop them from... Making one of the most notoriously slow and bloated video game ever? Like, just look at the amount of results for "Minecraft" "slow"

Re:Users don't care about your tech stack by ben_w on Friday February 21, 2025 @08:50AM (#43127368)
> Like, just look at the amount of results for "Minecraft" "slow"

My niece was playing it just fine on a decade-old Mac mini. I've played it a bit on a Raspberry Pi.

The sales figures suggest my nice's experience is fairly typical, and things such as you quote are more like the typical noise that accompanies all things done in public — people complaining about performance is something which every video game gets. Sometimes the performance even becomes the butt of a comic strips' joke.

If Java automatically causing low performance, neither my niece's old desktop nor my Pi would have been able to run it.

If you get me ranting on the topic: Why does BG3 take longer to load a saved game file than my 1997 Performa 5200 took to cold boot? Likewise Civ VI, on large maps?

Re:Users don't care about your tech stack by jcelerier on Friday February 21, 2025 @08:53AM (#43127415)
> I've played it a bit on a Raspberry Pi.

I actually tried it in a pi literally a few days agod (came across an older pi which had it preinstalled) and it's pretty much unplayable

> Why does BG3 take longer to load a saved game file than my 1997 Performa 5200 took to cold boot? Likewise Civ V, on large maps?

I believe there should be the possibility for legal customer complaints when this happen just like I can file a complaint if I buy a microwave and it takes 2 minutes to start

Re:Users don't care about your tech stack by ben_w on Friday February 21, 2025 @08:56AM (#43127454)
> I actually tried it in a pi literally a few days agod (came across an older pi which had it preinstalled) and it's pretty much unplayable

Huh. Weird. Fine for me. Glad I'm not the QA/dev that has to sort out why.

Re:Users don't care about your tech stack by Ragnarork on Friday February 21, 2025 @08:56AM (#43127452)
> one of the most notoriously slow and bloated video game ever?

I like how you conveniently focus on that aspect and not how that didn't prevent it from being one of the biggest video game hit of all time.

Those two can be true at the same time. And that's one thing that a lot of technical people don't get. Slow is generally bad. But you cannot take it out of context. Slow can mean different things to different people, and slow can be circumvented by strategies that do not involve "making the code run faster".

Re:Users don't care about your tech stack by harperlee on Friday February 21, 2025 @08:31AM (#43127184)
The fact that it was later bought by Microsoft (and rewritten in C++ so it can run on consoles[1]) is not relevant to the argument that you can, in fact, write a successful and performant game in Java, if you know how.

[1] My source is just comments in HN.

Re:Users don't care about your tech stack by vips7L on Friday February 21, 2025 @11:32AM (#43129508)
I’m sure the C++ version is more performant, but that doesn’t strictly mean it was ported for performance. Is there even a JVM on those consoles? I suspect the answer is no and it was easier to remake in C++ than to port OpenJdk to the Xbox 360.
Re:Users don't care about your tech stack by genewitch on Friday February 21, 2025 @10:19AM (#43128422)
Runs fine on an essentially single threaded 7350k with a 1050ti I built 8-9 years ago.

The server runs on a single thread on a NUC, too.

Re:Users don't care about your tech stack by sensanaty on Friday February 21, 2025 @03:19PM (#43132446)
Are we talking modded? Cause Vanilla minecraft runs on a potato, especially if the device is connecting to a server (aka doesn't have to do the server-side updates itself).
Re:Users don't care about your tech stack by gizmo on Friday February 21, 2025 @08:26AM (#43127144)
Microsoft rewrote Minecraft in C++, so maybe not the best example?