Lemmy Today
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
FilthyShrooms@lemmy.world to Gaming@lemmy.ml · 1 年前

Classic Microsoft

lemmy.world

message-square
112
link
fedilink
675

Classic Microsoft

lemmy.world

FilthyShrooms@lemmy.world to Gaming@lemmy.ml · 1 年前
message-square
112
link
fedilink
  • Mango@lemmy.world
    link
    fedilink
    arrow-up
    15
    arrow-down
    5
    ·
    1 年前

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

    • Xatolos@reddthat.com
      link
      fedilink
      arrow-up
      55
      ·
      1 年前

      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).

      • Mango@lemmy.world
        link
        fedilink
        arrow-up
        8
        arrow-down
        3
        ·
        1 年前

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

        • EatATaco@lemm.ee
          link
          fedilink
          English
          arrow-up
          9
          ·
          1 年前

          You forget consoles exist?

          • Xatolos@reddthat.com
            link
            fedilink
            arrow-up
            4
            ·
            1 年前

            I think they meant JVMs.

          • Mango@lemmy.world
            link
            fedilink
            arrow-up
            3
            arrow-down
            3
            ·
            1 年前

            Yeah, except retro consoles.

    • Olgratin_Magmatoe@lemmy.world
      link
      fedilink
      English
      arrow-up
      7
      arrow-down
      2
      ·
      1 年前

      C++ is generally more performant than Java.

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

      • Mango@lemmy.world
        link
        fedilink
        arrow-up
        2
        arrow-down
        1
        ·
        1 年前

        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.

        • kewjo@lemmy.world
          link
          fedilink
          arrow-up
          4
          ·
          1 年前

          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.

        • Olgratin_Magmatoe@lemmy.world
          link
          fedilink
          English
          arrow-up
          2
          arrow-down
          4
          ·
          1 年前

          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.

          • Mango@lemmy.world
            link
            fedilink
            arrow-up
            1
            arrow-down
            1
            ·
            1 年前

            Oh yeah that totally explains why it’s always been perfectly fine for me as long as I’m not looking at a giant wall of those shelves that display their contents from whatever modpack that was.

            • Olgratin_Magmatoe@lemmy.world
              link
              fedilink
              English
              arrow-up
              1
              ·
              edit-2
              1 年前

              Bedrock routinely outperforms java.

              https://piped.video/watch?v=qLjOIulsNcM

              https://piped.video/watch?v=Z4GrbD2MA5o

              https://piped.video/watch?v=p_mCekWWW_8

              Just because you’re perfectly fine doesn’t mean all other machines are.

              • Mango@lemmy.world
                link
                fedilink
                arrow-up
                1
                arrow-down
                1
                ·
                1 年前

                So? What’s that got to do with making it cross platform?

                I could ask what makes food hot and you would come in here telling me your refrigerator brand uses less electricity.

                • Olgratin_Magmatoe@lemmy.world
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  edit-2
                  1 年前

                  I wasn’t strictly talking about cross platform. I was talking about performance, which is tangential to the cross platform thing.

                  If you’re planning on making a game cross platform, you should choose a language that performs well for gaming on all platforms. Java ain’t that. Which answers your question:

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

                  C++ is better for this application.

Gaming@lemmy.ml

gaming@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !gaming@lemmy.ml

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.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 20 users / day
  • 204 users / week
  • 642 users / month
  • 5.55K users / 6 months
  • 71 local subscribers
  • 22.9K subscribers
  • 1.42K Posts
  • 16.2K Comments
  • Modlog
  • mods:
  • Lilium@lemmy.ml
  • peternile@lemmy.ml
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org