Remix.run Logo
bearjaws 7 hours ago

JavaScript can be fast too, it's just the ecosystem and decisions devs make that slow it down.

Same for Java, I have yet to in my entire career see enterprise Java be performant and not memory intensive.

At the end of the day, if you care about performance at the app layer, you will use a language better suited to that.

maccard 7 hours ago | parent | next [-]

My experience with the defaults in JavaScript is that they’re pretty slow. It’s really, really easy to hit the limits of an express app and for those limits to be in your app code. I’ve worked on JVM backed apps and they’re memory hungry (well, they require a reallocation for the JVM) and they’re slow to boot but once they’re going they are absolutely ripping fast and your far more likely to be bottlenecked by your DB long before you need to start doing any horizontal scaling.

wiradikusuma 6 hours ago | parent [-]

Compile it to native (GraalVM) and you can get it fast while consuming less memory. But now your build is slow :)

maccard 6 hours ago | parent [-]

The minute a project has maven in it the build is slow. Don’t even get me started on Gradle…

j-vogel 7 hours ago | parent | prev | next [-]

Fair point on ecosystem decisions, that's basically the thesis of the post. These patterns aren't Java being slow, they're developers (myself included) writing code that looks fine but works against the JVM. Enterprise Java gets a bad rap partly because these patterns compound silently across large codebases and nobody profiles until something breaks.

pron an hour ago | parent | prev | next [-]

Well, JS is fast and Go is faster, but Java is C++-fast.

FatherOfCurses 6 hours ago | parent | prev [-]

"Enterprise Java"

Factories! Factories everywhere!

wood_spirit 6 hours ago | parent | next [-]

Yes! Obligatory link to the seminal work on the subject:

https://gwern.net/doc/cs/2005-09-30-smith-whyihateframeworks...

whattheheckheck 6 hours ago | parent | prev [-]

Why do you think this plays out over and over again? What's the causal mechanisms of this strange attractor