Backend Server in C++

Client in Java

Content scripting in LUA

Website in PHP

  • Azzu@lemm.ee
    link
    fedilink
    arrow-up
    5
    arrow-down
    1
    ·
    6 days ago

    Why the fuck would you go for Backend in C++ and frontend in Java 🤣 just the wrong way around

    • The Octonaut@mander.xyz
      link
      fedilink
      arrow-up
      1
      ·
      6 days ago

      Because in theory you know what the server is running on, and can optimise for that with C++, while supporting the front end on multiple architectures using one codename with Java.

      • Azzu@lemm.ee
        link
        fedilink
        arrow-up
        1
        ·
        6 days ago

        The JIT compiler of Java does the optimization you’re talking about. So that advantage of C++ is not really there.

        You can compile C++ for all architectures you want as well. The reason you don’t normally use Java for clients is that the garbage collector runs at undefined times, causing stuttering. This has been rectified through new algorithms though, so the real reason why you don’t wanna use Java is because it simply doesn’t have the best tooling and libraries that C++ has, no Unreal engine and no Godot.