r/admincraft • • 27d ago

Discussion Rust language hype. What do you think?

So with all the hype around the recoded minecraft servers and clients in Rust I have some questions/hopes:

If one or more of these projects actually manage to replicate the whole vanilla experience, how fast do you think modders will make rust mods/plugins, if they even will at all?

How good will java to rust ports be? Especially performance wise.

Do you think there will be things like waterfall, just for rust-java instead?

I have no clue if these things will ever be something, but I do have high hopes. Especially for vanilla-esk servers. I have multiple servers running in containers and this might be the solution to have good performance with limited hardware.

12 Upvotes

59 comments sorted by

24

u/spacewulf28 27d ago

I think the main places it would catch on are dedicated games servers like hypixel and others like that. The main issue with using a rust-coded server is vanilla functionality, but if they don't have to worry about the quirks that come along with new server technology, they'll take the performance in stride.

I would doubt a rust server will ever overshadow the main forks, but who knows.

1

u/ErikderFrea 26d ago

I was actually more guessing that vanilla servers would use it since there probably will be less plugins and mods.

But you give a good point. The big server code most of their plugins themselves either way.

1

u/leaf_26 Developer 26d ago

if that's the case then they're not competing with paper as much as minestom

13

u/Jwhodis 27d ago

Pumpkin already has mods

10

u/Icy_Cardiologist3238 27d ago

Pumpkin has forks people are vibecoding to have hard-coded mod support. The average user expects Pumpkin "having mods" to being able to drag and drop a file into a 'mods' folder.

(By hard-coded, I mean they specifically vibe code it to have only Create mod support or whatever)

1

u/ErikderFrea 26d ago

Yeah. That’s what I was thinking about. If I as an admin would use a rust based server it will be hard enough to get my friends to use a rust based client already.

4

u/JVAV00 26d ago

You don't need rust client

2

u/ErikderFrea 26d ago

Depends on which rust server you use. I think pumpkin is vanilla java compatible? But horizon I’m pretty sure isn’t.

4

u/Dykam OSS Plugin Dev 26d ago

If you need a custom client for a custom server, is it still Minecraft or are you playing a Minecraft clone?

Otherwise it doesn't make much sense.

1

u/ErikderFrea 26d ago

If the player doesn’t notice a difference besides better performance it’s essentially Minecraft in my eyes.

Technically it might be a clone. But if it’s free and doesn’t impede on Mojanga terms it might as well be a “big performance mod” for the end user.

2

u/Fearless-Ad1469 Former hosting provider 27d ago

Bruh

6

u/ColdDelicious1735 26d ago

The real issue here is not the rust language, the current projects are making moding part of the intent of the program.

So this gets rid of the need for neoforge/forge/paper etc that act as a layer in-between.

So by getting rid of this your in theory will reduce overhead and improve performance. You will also decrease issues with the mods working with the server files.

Then, we get to the language benefits over Java.

1

u/ErikderFrea 26d ago

Ah. So modders would have it even easier?
Just with the issue that you now would have to make mods for an additional language?

4

u/LoadingStill 26d ago

Rust seems cool but I am at the point in my life that stability of a program means more to me then the newness. And I could be wrong here but I dont think rust has a stable release yet. Meaning todays code and plugins might need to drastically change sooner then expected to keep up with security and releases for stability.

With that said. I am testing a pumpkin server for fun and it is fast. I look forward to seeing how pumpkin progresses.

2

u/ErikderFrea 26d ago

True. Tho it could be stable for specific versions of rust and Minecraft.

So if you don’t need to update often it might do the trick.

1

u/frygod 26d ago

That should actually weigh in rust's favor, since a large portion of the whole point of the language is to enforce safer memory usage, which should in turn increase the stability of programs written in it.

0

u/LoadingStill 26d ago

When the language is released as a stable version hes I agree. But until rust stable v1 is here it will just be the fancy new language with some cool features that breaks on updates.

2

u/ThunderChaser 26d ago

Rust Stable 1.0 was released in May 2015?

2

u/LoadingStill 26d ago

Yup looks like I was mixing something up.

1

u/frygod 26d ago

I think you're confusing the language being used with applications written in that language...

1

u/dontquestionmyaction 26d ago

It... is stable. Has been for years.

1

u/LoadingStill 26d ago

Yeah I mixed something up.

1

u/Icy_Cardiologist3238 26d ago

Rust had its first stable release in 2015...

Maybe you are talking about the ABI?

1

u/LoadingStill 26d ago

Yeah I mixed some things up. My bad.

1

u/Icy_Cardiologist3238 25d ago

it's okay i figured that's what you meant

2

u/Gabin293 26d ago

Servers might be adopting Rust sooner than we thought, because PumpkinMC already looks good and has potential

But I think it’s a whole different story with clients: how many people switched from java to bedrock when it came out? Almost nobody.
And because rust ports are not official and there will be LOT of them (mainly because of how easy it is to make one by vibecoding), absolutely none of them will really become popular…

1

u/ErikderFrea 26d ago

Then it probably will become a question of which of the server softwares will be compatible with Java clients.

I mean I’m definitely gonna switch my server to rust if it would support the datapacks we use and would be compatible with Java clients.
Mods aren’t even needed, since we only have performance mods.

2

u/Reged1tFox 25d ago

TL;DR: The only way to make this work is rewrite legacy architecture and add multiple cores support. In the end we even can stay on java and have good performance.

Hype about rust client will continue until people realize that rust client still doing everything in 1 core rather than using many cores. Folia on the other hand using many cores to process chunks and gonna do better than rust server vibecoded in 1 hour with 0 errors simply because microslop didn't fix old architecture and now doing it today will cost like few millions. Rust client doing good performance since its memory safe but it doesn't mean rust client will perform well on server with 1000 players/mobs.

Making mods/plugins will be hell for newbies and im sure debugging this would be worse.

Im not telling rust is bad or java is cool the main problem here basically legacy architecture that still gonna make you suffer supporting the game or developing mods/plugins.

1

u/ErikderFrea 25d ago

As far as I understand changing processing to more than one thread would change the predictability of Minecraft. This could break a lot of farms.

But I would be glad to be corrected. :D

2

u/Reged1tFox 25d ago

Well... yes and no

Minecraft tick can be visualized as a journal

Is player dies this tick? Is crop will grow this tick?

When tick starts it checks everything and in the end makes a final verdict what should change and what should stay, do nothing, be deleted, etc.

For 1 core its VERYYY hard job since this core asks what changed and then checking what changed to answer the question.

With multiple core scenarios the main core just tells other cores what they should do and then tell the result and since some jobs can be so hard that even can break the server (like large tnts explosions) using many workers will help to proceed faster since some jobs are not relying on others.

As an example vanilla minecraft uses few cores: 1 for client itself, 1 for render, 1 for internal server (single player). Render core relying on client core so if client dies or not answering render core just cant draw you new image so its stuck. Internal server on the other hand is used only to play single player and does not need any info from those 2 so it can work even if client is not answering. Now imagine if those 3 jobs would be only in 1 core. 1 core doing server, render, client things. Either you will get 1 fps or you will need 10+GHz 1 core CPU to make this thing even work.

If you dont know what is GHz: 1 GHz = 1 billion instructions that CPU can execute in 1 second. Nowadays programms can use like few millions instructions per function. For example python print function can actually call cpu like 5 times (not real number btw) just to print a text. 1 core game like minecraft relaying on how much your CPU can execute per second (aka GHz).

Async programming is actually hard but when dealing with multi-core support its starting to hurt

1

u/ErikderFrea 25d ago

Ah. Interesting. So deterministic progresses should still be done by one thread, but things like generating chunks, different dimensions and so on could be done but different cores?

1

u/Reged1tFox 24d ago

Basically yeah and that we have now in modern minecraft but we still can do some hard work on other cores. But to make good multi-core support we need rewrite basics of minecraft systems like block handling, AI decisions and path systems. Modern minecraft can only use multiple cores to generate chunks, handle audio, render and some other client stuff

2

u/thelurkmasterr 26d ago

Minecraft is fundamentally object-oriented, while Rust does not support OOP. I don't understand how a Rust rewrite of the server would even be possible. If it is possible, it would probably be awful for modders, as Rust is not a good language for rapid iteration and is very difficult to learn.

3

u/AmperDon 26d ago

Rust supports core OOP ideas like encapsulation (via pub visibility and impl blocks) and polymorphism (via traits and generics), opting for composition and ownership models instead of class trees.

2

u/ErikderFrea 26d ago

You lost me there. :D
Could you give me a dumbed down version? ^^

2

u/AmperDon 26d ago

No. 😈

3

u/ErikderFrea 26d ago

Evil

2

u/AmperDon 26d ago

Muhahahaha

2

u/[deleted] 25d ago

[removed] — view removed comment

1

u/ErikderFrea 25d ago

Ahhh. Thanks!

4

u/ThreeCharsAtLeast 27d ago

Rust is a good programming language and it compiles directly into instructions your CPU can understand, removing Java's overhead.

I just don't think the Rust rewrites will ever be popular.

2

u/ArcticDev_ Chai Tea Enthusiast 26d ago

I think the "popularity" isn't there because of how large the support for Paper/Spigot/Fabric there is. There's no 1:1 replacements for all the mods/plugins that servers use to operate on a daily basis and that's where the popularity is hard to find. I think its more likely someone would work with Minestom than choose a rust implementation for that exact reason.

3

u/leaf_26 Developer 26d ago

I don't think there's much overhead left to remove in java as a language.

the game itself is slow from how much it does, a perfect reimplementation would run into similar deficits. even the disk format can be shrunk by 50% and the decompression overhead all but removed, I've tested such.

for pumpkin to stay "fast" it has to sacrifice something about how minecraft runs, same way papermc did.

3

u/RyanCheddar 26d ago

part of why minecraft (server) is slow comes from tech debt and spaghetti code by mojang, and a rewrite gives an opportunity to fix those issues

1

u/leaf_26 Developer 24d ago

that's true, but there's also inherent design choices that have minimum algorithmic requirements, like noise generation, that aren't necessarily "faster" when reimplemented 1:1, I think in some cases we'd all be better off with better design choices than vanilla parity

2

u/lorenzo1142 Developer 24d ago

part of why the rust version is so fast is because it only does a fraction of what a java server does. it's not an apples to apples comparison.

3

u/NuclearMagpie 26d ago

Java does still have a lot of overhead and it always will due to its design. The JVM is an extremely well optimised thing and the JIT certainly has hands, but it'll never be able to beat out the optimised machine instructions that the likes of C/C++/Rust spit out (excluding niche circumstances). As for pumpkin, while they certainly will take shortcuts, native machine code and being built around multithreading goes a very long way. I think another thing that helps is rust's encouragement of pulling in small crates for things you need. If you need a super high performance concurrent hashmap, you just pull in dashmap and get community reviewed and benchmarked code instantly instead of writing your own or pulling in a bulky suite of stuff you mostly don't need which is common in Java.

2

u/lorenzo1142 Developer 24d ago

all those crates being pulled in also adds overhead and security exposure.

3

u/NuclearMagpie 24d ago

Security risks is certainly true, pretty sure there was a thing not long ago with a widely used stack based array crate getting compromised. But im not sure what you mean by overhead? The compiler is pretty good at stripping out code that's not used so can't really say its binary bloat and while there's certainly an argument for the 3rd party crate being less efficient/slower, likewise implementing it yourself could be slower.

2

u/lorenzo1142 Developer 24d ago

well... there's overhead to compile, and rust already being not so fast at compiling.... I'm just shocked it has been 2 hours and I haven't been down voted or attacked for my opinion.

I love when a project has very few dependencies. I worry when my dependencies have dependencies which have dependencies, and who is actually checking these things.

2

u/NuclearMagpie 23d ago

The compilation overhead is generally a one-off cost and only paid by the developer, so i wouldn't consider it that big of a deal. Also its a several day old thread in a subreddit focused on a Java program with your comments being reasonably deep in a chain, don't see why you'd be attacked for reasonable criticisms of using many dependencies.

1

u/leaf_26 Developer 24d ago

dashmap is literally a Rust port of Java's java.util.concurrent.ConcurrentHashMap

that accessibility argument is hard to make here.

1

u/NuclearMagpie 24d ago

Didn't know that, but you get my point. Pulling in small crates to provide the thing you need is much easier than doing the same in Java.

1

u/leaf_26 Developer 23d ago

agreed

1

u/lorenzo1142 Developer 24d ago

I wonder how many days it takes to compile

2

u/Most-Post-3002 24d ago

bit late to the party but all the rust hype has Claude hyped too.

i say this figuratively, but all of the new rust ports of java Minecraft have been heavily vibe coded or look like they are vibe coded. The exception of pumpkinmc (i think? I'm not sure). A whole port to rust is an insane task, insane to say the least. And we all know, ai makes stability issues, security, blah blah. I'm very optimistic for pumpkin and rust in general but take everything with a grain of salt. That being said, any new innovation has its bugs at first, so I am very excited to let this run its course :D

1

u/MercDawg 27d ago

I think it depends. Can these support existing mods/plugins out there, without issue, or is it going to be a separate set of plugins? Do Rust-based servers match Vanilla gameplay and rules? Could it be easily customizable, similar to Paper or Fabric? Are they well tested and battle-proven?

A lot of this can make or break adoption.

0

u/lorenzo1142 Developer 24d ago

it will never be as good as the java versions of servers. rust is a lot of hype and not everything they claim it to be.

0

u/[deleted] 27d ago

[deleted] — view deleted comment

1

u/Gabin293 26d ago

<insert 1000th vibecoded rust client> this is what you mean