this post was submitted on 23 Mar 2025
76 points (100.0% liked)

Minecraft

4825 readers
14 users here now

Welcome to the Minecraft community on Lemmy and Kbin!

The home for all posts related to the Minecraft franchise: from the classic game to the mobile ports, mods, adventure games, merchandise and similar!

Official Lemmy.world server available!

Lemmy.world hosts an official server that welcomes all players to contribute and have fun:

Minecraft Version: 1.20.x

Address: minecraft.lemmy.world

Please make sure you read our rules before posting.

Rules:

Rules can be clicked on to be expanded.

1: Treat all users with respect.

Bullying, threathening, doxxing, or toherwise hostile behaviors with any of our users will not be tolerated. Be civil, have fun.

2: Posts must be related to the Minecraft franchise.

This includes the main game, titles like Dungeons, fan art, wiki pages, toys, new feature votes, and similar content.

3: No advertising.

If you want to share a product you're a manufacturer or seller of, please contact the moderation team first. Affiliate links to online shopping stores or affiliate coupon codes are not allowed.

4: No piracy.

Links or discussions about cracked versions of games, unauthorized copies of copyrighted material and other similar piracy-related content are not allowed.

5: No NSFW or adult content.

This community is inclusive to users of all ages. Keep in mind Minecraft attracts children and adults alike. Therefore, no NSFW content is allowed.

6: No low-effort meme content.

Memes are allowed, and so are comics or other fan creations. However, low-effort reposts and otherwise overused memes will be removed.

Reddit reposts are allowed.

Reddit reposts are allowed, but you need to include the tag [Reddit] in the title.

Related communities:

founded 2 years ago
MODERATORS
 

Basically title, this thing with two editions of the game slows down development because they now have to write the same thing twice and it splits the userbase. They also don't want to make Bedrock edition for Linux for some reason.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 1 week ago (2 children)

Microsoft definitely has enough funds to rewrite java edition in C++. Would it be possible to ensure mod compatibility tho?

[–] [email protected] 10 points 1 week ago* (last edited 1 week ago) (1 children)

Would it be possible to ensure mod compatibility tho?

No. That’s the whole point of Java, it’s quite hackable.

It doesn’t need a rewrite TBH, it just needs a little optimization. Heck, a few performance critical components can be written in C++ or whatever within the Java code.

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

That’s the whole point of Java, it’s quite hackable.

Wouldn't being hackable allow mojang to add compatibly to the C++ edition? I do agree that it just needs optimization though, some mods like Sodium already do this. Check out Fabolously Optimized

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

The minecraft mod scene you are describing is built around Java and changing Java code within the game, there is no way around that.

Bedrock already has a modding API of sorts.

Sodium, Optifine and such are all living testaments that some random coder can run circles around Mojang in their free time.

I mean, I love mojang, but what you are asking for is basically not possible.

[–] [email protected] 6 points 1 week ago (1 children)

No, the Java version runs within the JVM and the C++ version would run via native code. That's effectively like having something work on an ARM processor and an x86 processor at the same time.

They both could be modded, but it's harder to mod C++ because the optimization phase is ahead of time. Minecraft modding is in part an accident because the optimization phase happens during runtime within the JVM ... that means the binary ".jar" files align much more closely with the code mojang wrote ... where as an ".exe" would be radically changed.

C++ modding would also be more difficult because it's harder to preserve stability in C++. In the JVM, basically the only way the program crashes is if an exception goes uncaught or the programmer explicitly asks the program to termite (which never happens). In C++ there are still exceptions but there are a whole lot of things that are exceptions in Java that aren't in C++ ... so you can't just fence off the modding API cleanly and say "if an exception is thrown while running this mod keep going."

Those two reasons are the major reasons that games pick Lua over native C++ based mods (that and you can secure Lua and prevent it from doing anything it wants ... Java and C++ mods can do anything they want, which is part of why the Minecraft modding scene is so good; if you want to connect to a database for administrative purposes, you can write that mod server side and have your database of block changes to find griefers, your plot database to protect plots, your store database to provide shops, etc).

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

TIL! Thanks for the explanation. What if they rewrote it in Lua :P

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

You would get 3 FPS 🙂