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
 
top 45 comments
sorted by: hot top controversial new old
[–] [email protected] 44 points 1 year ago

This is why I don't leave Java developers alone with my pets

[–] minorninth 24 points 1 year ago (5 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 (2 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.

[–] [email protected] 7 points 1 year ago

That's right. Through the claim that java runs everywhere is still falsified by the fact.

[–] joneskind 1 points 1 year ago (1 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.

[–] [email protected] 13 points 1 year ago (3 children)

iOS is one of the most popular operating system in the world by any measure.

iOS has a market share of around 30% worldwide and Android being close to 70%.

[–] candyman337 7 points 1 year ago (1 children)
[–] [email protected] 7 points 1 year ago (1 children)

Its half of what Android has and its clearly not "most popular operating system in the world by any measure".

[–] [email protected] 3 points 1 year ago (2 children)

They said one of the most popular operating systems by any measure.

It beats out all the BSD flavours, RedoxOS, TempleOS, MacOS (by an order of magnitude, I might add), Haiku, AmigaOS, Minix, just to name the more known ones. If you discount servers, it's nearly 30x as popular as Linux. It's on track to having more users than Windows. It gets beaten only by Android, Windows, and potentially Linux because of all the data centers (honestly kinda hard to get a real number on how many Linux servers are out there, especially since a lot are also virtual machines, etc)

As far as operating systems go, iOS is in the top 0.5%, so definitely one of the most popular.

[–] pete 1 points 1 year ago

Well, in theory, minix is the base of the Intel management engine so I probably has a pretty good share and probably beats out most things on that list based on deployments.

So, not sure that it would beat minix but the rest of the post stands.

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

If there is a competition of 3 systems and you're on 3rd place, then yes, you're "one of". But you're still the last.

[–] [email protected] 0 points 1 year ago

There are hundreds of operating systems, multiple are in the category of "actually used by tens of millions of people": Windows, MacOS, Linux, ChromeOS, Android, iOS, webOS, Tizen, etc are the first that come to mind. iOS gets 3rd place out of those (assuming you don't count billions of virtual machines running in data centers for Linux, in which case Linux also beats out Android). iOS will also beat out Windows soon enough because computers aren't really a thing for normies anymore, most people just get by on a smartphone.

If you only consider the 3 most popular operating systems in the world to be operating systems, then sure, iOS is in last place. But maybe broaden your horizons on operating systems and you'll realize that iOS is ridiculously popular in the grand scheme of things. One day it might even reach #1 as 3rd world countries catch up economically and start buying more expensive phones, but that's just speculation of course.

Your argument is like "Athlete X was in last place in the olympics, so they're nowhere near the top of their sport", ignoring the hundreds of thousands of other athletes who didn't make it to the olympics and never will.

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

And that only includes mobile phones.

[–] [email protected] 3 points 1 year ago* (last edited 1 year ago)

Of you count in desktop operating systems, too, then it's 3rd place with ca. 17%.

https://gs.statcounter.com/os-market-share

[–] [email protected] 0 points 1 year ago

And that's just mobile

[–] [email protected] 10 points 1 year ago

By "most popular" you mean most used, right? I'm asking because the word "popular" sounds like people would actually like the OS. I am using android solely because of the lack of alternatives (iOS being even worse). In general, mobile OSes are complete horseshit if you ask me.

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

Well, anal sex does not work on jelly fish so both statements are equally generalized

[–] [email protected] 1 points 1 year ago

The ratio of iOS to all operating systems is way higher than the ratio of jelly fish to all species.

[–] [email protected] 15 points 1 year ago (2 children)

I'm not seeing a problem with that statement

[–] [email protected] 4 points 1 year ago (3 children)
  • Cloaca
  • those mites that can't poop, so they explode and die
[–] [email protected] 4 points 1 year ago

Wow, what a shitty way to die

[–] [email protected] 1 points 1 year ago

That's why you duct tape them before you fuck them. You know, like hamsters or babies.

That got dark fast

[–] [email protected] 1 points 1 year ago

Probably an implicit "mammal" in front of species.

[–] [email protected] 1 points 1 year ago

I do! Some animals don't have anuses. Like jellyfish

[–] [email protected] 9 points 1 year ago

anal sex is good, tho

[–] [email protected] 8 points 1 year ago

You know what works on all operating systems? Writing a makefile that compiles for all operating systems (unless you are using windows for development but then you are too far gone from the path of truth)

[–] [email protected] 6 points 1 year ago

Java is good because it pays the bills.

[–] SirShanova 5 points 1 year ago

But not on birds. Birds have a cloaca. You have cloacal sex.

[–] ghariksforge 5 points 1 year ago

Java does not run on all operating systems. You still need to implement a JVM.

[–] [email protected] 4 points 1 year ago

Works for me 🤣

[–] [email protected] 1 points 1 year ago

I mean, java is fine when you use Graal, it even loads up the Clojure repl in less than a second

[–] [email protected] 1 points 1 year ago
load more comments
view more: next ›