You are viewing a single thread.
View all comments View context
10 points

In what world is c++ better for cross platform than Java?

permalink
report
parent
reply
55 points

In a world with consoles. Java needs a JVM, and those aren’t typical with things like the Switch (2 soon), PS5, and Xbox Series (half the alphabet).

permalink
report
parent
reply
5 points

Oh ok that’s fair enough. I forget those exist sometimes.

permalink
report
parent
reply
9 points

You forget consoles exist?

permalink
report
parent
reply
5 points

C++ is generally more performant than Java.

https://programming-language-benchmarks.vercel.app/java-vs-cpp

permalink
report
parent
reply
1 point

What’s that got to do with making things cross platform? Java programs only need to run in a Java runtime environment of which there’s one for basically everything. If you make something that runs in a JRE, it’ll be able to run on any device with a JRE that’s up to date for it.

permalink
report
parent
reply
4 points

given how many targets are supported by llvm there’s really little difference in cross platform support asides from building artifacts for the specific target platform. wrapping package delivery in a package manager removes the additional complexity to the end user.

permalink
report
parent
reply
-2 points

Minecraft Java runs like dog shit. Making a faster port of it was worth it. They just botched it because Microsoft got its hands on it.

permalink
report
parent
reply

Gaming

!gaming@lemmy.ml

Create post

Sub for any gaming related content!

Rules:

  • 1: No spam or advertising. This basically means no linking to your own content on blogs, YouTube, Twitch, etc.
  • 2: No bigotry or gatekeeping. This should be obvious, but neither of those things will be tolerated. This goes for linked content too; if the site has some heavy “anti-woke” energy, you probably shouldn’t be posting it here.
  • 3: No untagged game spoilers. If the game was recently released or not released at all yet, use the Spoiler tag (the little ⚠️ button) in the body text, and avoid typing spoilers in the title. It should also be avoided to openly talk about major story spoilers, even in old games.

Community stats

  • 2.1K

    Monthly active users

  • 1.1K

    Posts

  • 14K

    Comments