r/ProgrammerHumor • • Oct 07 '26

Meme minecraftException

Post image
9.3k Upvotes

830 comments sorted by

View all comments

Show parent comment

10

u/A_Canadian_boi Oct 07 '26

Mojang should have switched to C# honestly. It's very similar in principle and style to Java, it's used by probably a solid 1/3 of video games out there, it works on console, it doesn't require much installation, and guess what? It's literally developed by Microsoft

edit: It also is extremely moddable, just like Java

4

u/21839 Oct 08 '26

In most games like Unity games C# only runs the business logic, the game engine being in C++. Minecraft is so unoptimized because everything was coded in Java from the ground up.

2

u/Newe6000 Oct 08 '26

Nothing stops Mojang taking the same approach with the Java version. In fact, there was a rumour that Bedrock's rendering engine was intended to be callable from a Java runtime so it could be used by the Java edition.

1

u/gregorydgraham Oct 08 '26

This explains why Java suddenly got serious about fixing JNI

1

u/Ok-Scheme-913 Oct 09 '26

Minecraft is big, but not "steer the OpenJDK's design decisions" big

1

u/gregorydgraham Oct 09 '26

That depends on how many Minecraft developers have offered to work on the JCP

1

u/Ahmouse Oct 13 '26

Maybe not, but Microsoft sure is.

0

u/awesome-alpaca-ace Oct 08 '26

Not enough to fix versioning issues apparently 

1

u/Fadamaka Oct 08 '26

it's used by probably a solid 1/3 of video games out there

For scripting. For actual engine there is only a handful notable ones being Stardew Valley Space Engineers and Terraria.

It's literally developed by Microsoft

Other then the cult followers themselves no one think this is a plus.

2

u/gl1tch3t2 Oct 08 '26

I think the MS point was more so they have ownership of both so why wouldn't they use it.

1

u/TheOtterMonarch Oct 09 '26

a lot of games use C# because a lot of games use Unity

1

u/Fadamaka Oct 09 '26

Yes and unity is written in C++ not C#. You only write the game logic in C#.

0

u/TheOtterMonarch Oct 09 '26

the games themselves are in C#, the game developers use C#

1

u/Fadamaka Oct 09 '26

The discussion is about switching the Java language to the something that is used more in the industry. As I have already said Unity is written in C++, only the gameplay is scripted in C#. For an indie game that means that 99% of the game is in C++. Even for non idie that means that 90% of the game is in C++ only the reamining 10% is in C#. Since now 100% of minecraft is in Java, switching to unity would mean switching to C++ not C#.

1

u/Cebular Oct 08 '26

C# might be marginally better than Java, you don't really want to make games with garbage collected languages.