News for hackers. Stuff that matters.
Re:Java 18 / JDK 18: General Availability by dfee on Tuesday March 22, 2022 @11:20AM (#30767153)
I think it has a relative speed performance over languages that are interpreted (runtime).

It also has an ecosystem of tooling to monitor and profile built both into the JDKs and by teams across Silicon Valley (eg first class bazel support).

I’m in one of these companies now, and while I’m certainly productive using Java, it’s also got huge downside in the community which these companies don’t really care about.

Never have I seen so much cargo cult practice. The ecosystem isn’t great, with hard to google docs and everything pointing you to a poorly written baeldung article.

Java gets no one excited. And, it gets no one fired.

Re:Java 18 / JDK 18: General Availability by fifticon on Tuesday March 22, 2022 @11:26AM (#30767230)
Actually, i like it for basic desktop apps, because it just works, and i stay clear of the last 12 years of front-end dumpster fires, where nothing that is over 18 months old, can build, compile or get support anymore. In my day job, I inherit "fun" tasks as 'get this thing someone glued together with webpack4 and frontend-du-jour to work with webpack5 in 2022. Java thank you, any day of the week.
Re:Java 18 / JDK 18: General Availability by dfee on Tuesday March 22, 2022 @11:34AM (#30767356)
There are a lot of problems in the JS and Swift communities, as there are for Java.

I think you’ve got to meet your customer where they are, and if you can ship Java desktop apps, and they’re happy… keep going.

But you’re not shipping apps to their iPhones using Java. It’s either JS or Swift.

And, on Android it’s JS or Kotlin.

So the common target is JS.

Re:Java 18 / JDK 18: General Availability by ohgodplsno on Tuesday March 22, 2022 @12:34PM (#30768228)
Or Kotlin Multiplatform, which generates .frameworks/cocoapods/spm files that you can use, and all you have to do is write your UI layer in Swift.
Re:Java 18 / JDK 18: General Availability by native_samples on Tuesday March 22, 2022 @02:08PM (#30769394)
You can ship to iOS with Java actually. That's the business model of Gluon:

https://gluonhq.com/

It's a combination of JavaFX, a custom controls library that implements Material Design and GraalVM native image. Whether you want a non-native UI toolkit on iOS is a separate matter, but it can be done technically.

In fact, you can ship JavaFX apps to the web too. It doesn't compile to megabytes of JS either - instead, the JavaFX app runs on the server and the UI is projected to divs and SVG elements on the fly. The browser provides native scrolling and text selection. If you have low latency to the server (e.g. same continent) it can work remarkably well. Check out https://www.jpro.one/ - the entire website is a JavaFX app.

Re:Java 18 / JDK 18: General Availability by matsemann on Tuesday March 22, 2022 @11:49AM (#30767539)
I feel like those crying cargo-cult or enterprise never stopped to look at the alternatives they use. Like Django or Rails. It's in many ways worse than java when it comes to conventions, abstractions doing magic, and weird rules for structuring code.
Re:Java 18 / JDK 18: General Availability by dfee on Tuesday March 22, 2022 @05:05PM (#30771533)
i've got tons of open source packages on my github with interpreted languages :p

But yeah, I guess i first started using Django ~2008 if I recall correctly, and switched over to Pyramid in 2010. Since then, I've used many other frameworks – in Python, Ruby, JS, C#, Java, and Go. Regardless of the language, I always try and go closer to the metal when I can.

I think your assessment about the others being potentially worse is fair: they're all bad in their own ways. I think it just takes time (and experience across many different teams) to develop good taste.