this post was submitted on 20 Jun 2023
275 points (96.3% liked)

Programmer Humor

32054 readers
1593 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] minorninth 24 points 1 year ago (28 children)

I also feel like it's not accurate anymore.

Java doesn't run on iOS. Period. In fact it's almost impossible to build an iOS app using Java - the only ways to do it are essentially to transpile Java to some other language, so Java isn't running on iOS at all.

iOS is one of the most popular operating system in the world by any measure. It supports a lot of languages.

But not Java.

[–] [email protected] 21 points 1 year ago (10 children)

But that is not Javas problem, but IOS. They could use available languages, but they refuse and instead make you use their own programming language, swift. Even more vendor lock-in. Once you start using Apple shit, you join a cult of technology dictatorship.

[–] joneskind 1 points 1 year ago (8 children)

Contrary to Java, Swift is open source. Compilers also are open source and available on Windows and Linux besides macOS.

And it’s actually pretty easy to build apps in Swift using Visual Studio Code (you know, the Electron app available on every platform?)

Now, have fun with Android Studio and your transpiled BS Kotlin

[–] Daniikk1012 6 points 1 year ago (1 children)
[–] joneskind 1 points 1 year ago* (last edited 1 year ago) (1 children)

Does it change the fact that Oracle JDK, hence the Java programming language is not open source though? Or the fact that OpenJDK performs even worse than Oracle JDK?

[–] Daniikk1012 2 points 1 year ago (1 children)

It doesn't perform worse tho - OpenJDK is developed by Oracle themselves, and Oracle JDK is literally built on top of that with a couple of extra pieces of proprietary stuff that most don't need + longer support

[–] joneskind 1 points 1 year ago (1 children)

https://www.baeldung.com/oracle-jdk-vs-openjdk

When it comes to performance, Oracle's is much better regarding responsiveness and JVM performance. It puts more focus on stability because of the importance it gives to its enterprise customers.

OpenJDK, in contrast, delivers releases more often. As a result, we can encounter problems with instability. Based on community feedback, we know some OpenJDK users have encountered performance issues.

[–] Simpsonator 1 points 1 year ago (1 children)

Do you have a source other than some random blog talking about Spring? Any kind of metrics? Is it 5%, 50%, etc slower? Is that just for Spring?

My group switched from Oracle JDK to a different open source JDK and the difference was either non-existent or too negligible to notice. I'll refute your blog's anecdotal evidence with my own.

In the end, we're comparing the top speed of two buses here. If performance is of primary importance for you, Java probably wasn't the right choice to begin with.

[–] joneskind 1 points 1 year ago (1 children)

There are tons of articles on the web. I just took the first I found on DuckDuckGo.

I'm glad to hear that you didn't find any issue when switching from Oracle JDK, and I won't debate your good faith nor the exactitude of your particular experience.

My point was to answer the Swift shitposting nonsense in the previous post.

[–] Simpsonator 1 points 1 year ago (1 children)

Here's an article with real data. It sure looks like OpenJDK is at least on par with Oracle. I think Oracle was much better 4-5 years ago and that's why you get a lot of results. https://www.diva-portal.org/smash/get/diva2:1597213/FULLTEXT01.pdf

All I see is shitposting on Java. I haven't seen one negative word about Swift. Can we agree that OpenJDK is both open source and performant? That's the only point I'm trying to make.

[–] joneskind 1 points 1 year ago

Can we agree that OpenJDK is (...) open source (...)?

Yes.

Can we agree that OpenJDK is both open source and performant?

I can't agree with something I don't know enough about, and about what I have read opposite statements and experiences.

I have no doubt that in some context, OpenJDK could perform as well as OracleJDK. Some APIs and methods can have been well written from the start. What I do know about software engineering though is that Alpha and Beta stages exist for some reasons.

I haven’t seen one negative word about Swift.

Seek for the root of the thread.

load more comments (6 replies)
load more comments (7 replies)
load more comments (24 replies)