It's pretty funny how many of these are "Is it a Minecraft server? No. It's a framework with which you can build your own rewrite of Minecraft server."
This got me thinking - is Rust really the right tool for the job? And I thought, Elixir/Erlang feels like the perfect tool. Sure enough, someone did it! Great reference material for someone learning how to do things on the beam https://github.com/thecodeboss/minecraft
Hilarious site but a little unjustified. Out of those, only Valence is a real "this already exists" argument. There's 7 total and the first 3 are dead and the latest 3 (incl pumpkin) are all 2024. And all of the 2024 ones explicitly differentiate themselves from Valence which is more of a framework that focuses on modularity. These latest 3 all look like healthy competitors that are all amicable towards each other
| | released | stars | last_update |
|----------|----------|-------|-------------|
| feather | 19aug | 2,614 | 2 years ago |
| mchprs | 20jun | 1,632 | last month |
| graphite | 22jun | 160 | 2 years ago |
| valence | 22sep | 2,731 | 3 days ago |
| hyperion | 24mar | 361 | today |
| pumpkin | 24jul | 965 | today |
| ferrumc | 24sep | 673 | today |
Its written from the ground up and has a clean foundation (which is not the case in vanilla minecraft server code). We also want to use cool modern features like multi-threading or the rust language which is a modern language designed to fix mistakes from older languages
The limitation isn't the Java version, it's the way the MC code was architected.
Iirc part of original Minecraft's performance limitations were high object create/destroy rate leading to lots of garbage collection. With that in mind, picking a non-GCd language isn't completely crazy.
java 1.0 (even 0.9) did have. The 1st language with a memory model was java 5 (1.5), which was back ported to 1.4.2. 1.4(.2) already had non-blocking I/O as well.
"Modern" seems to be used a loose adjective these days for "I rewrote $thing [in Rust]". Minecraft was created in 2011, and is Wikipedia says the last version of the 'classic' edition was released in 2017. So anything after 2017 is now defunct.
I don't mind people rewriting things in but "modern" as a value seems pretty loose, and it's often at least arguable whether it's objectively better!
“Modern” more usually means some new JavaScript thing. In JS land, they consider anything that hasn’t had a commit on main branch in over 3 days to be a dead old project in need of being replaced with something new and “modern” that is up to date with the latest trends and breaking changes from the previous 24 hours of their world.
Usually the hyperbolic superlative for Rust projects is “blazing fast”. Of course, any kind of benchmarks or comparisons with other implementations are completely optional. It is simply enough to “cargo init” and start hammering out code. You don’t even need to consider the characteristics of the algorithms you choose to use! If it’s Rust, it’s “blazing fast”.
Your most starred repo is inferior to a shell one-liner lol. Talk about pot calling the kettle black. Just use the system dict, shuf, grep, and head.
It’s bad form to badmouth someone’s earnest work for sure. I wouldn’t do it normally since I think it’s nice that you actually did something. But if you’re going to sit in a glass house and throw stones you should expect some back. Fortunately, my house is an underground burrow so I can throw stones with impunity. As ugly as it is to do.
Sorry, I may should not used the term Modern, Lets say the foundation is newer and more optimized than from the Original Minecraft server. Mojang developers have strict deadlines and do not care about performance (like basicly any big Studio today). This results in bad ugly code which only purpose it is to work nothing more. Minecraft was created 2009 btw
I'd argue they care about performance, but they also care about a whole slew of other things that also require prioritization to maintain the game and its cottage industry. Not a huge fan of the constant dogging on mojang everyone loves to engage in...
> "modern" as a value seems pretty loose, and it's often at least arguable whether it's objectively better!
Well, there is research on this! https://security.googleblog.com/2024/09/eliminating-memory-s... writes: > vulnerabilities decay exponentially. They have a half-life. [...] A large-scale study of vulnerability lifetimes² published in 2022 in Usenix Security confirmed this phenomenon. Researchers found that the vast majority of vulnerabilities reside in new or recently modified code Where ² goes to https://www.usenix.org/conference/usenixsecurity22/presentat... A study limitation is that they looked only at security-relevant bugs (vulnerabilities). As someone who writes code, I would tend to think that this also goes for bugs without a direct security impact, but I don't have the data to back that notion up
Love the idea. Especially as a learning example. Always fun to learn a language by implementing a popular game.
Am confused by these two lines. Maybe it is just difference between the 'goal' and the 'current state'. Goal: "Compatibility: Supports the latest Minecraft server version and adheres to vanilla game mechanics.
" But NOT: "Be a drop-in replacement for vanilla or other servers
" Will it be a replacement for Vanilla or not?
Compatibility: refers to the ability for client of the latest mincraft server version to be able to connect to the server (pumpkin) unmodified with all mechanics working.
Drop-in replacement: refer to the ability of a server operator to simply exchange the current installation/executable of the server (be vanilla, paper, cuberite, etc...) for pumpkin while maintaining data, configuration, scripts and mods installed. edit: grammar
Tell you the truth, that doesn't help clarify to me much.
If it is compatible, then can't I 'drop it in'. They sound like they are saying the same thing. It is compatible so clients can connect to the server and be fully operational, and thus, I should be able to drop in this server, and use it as a server? How can it be compatible if it doesn't maintain data, configuration, etc.. Edit:
or is this about Pumpkin files. Pumpkin will maintain it's own files, data, configuration. So it can't just use existing Minecraft data files. So if it was a new world, Pumpkin would generate new pumpkin formatted files. But couldn't just 'drop it in' on an existing world and use the existing Minecraft data files. Not sure of long term viability as far as effort, but if it is files, couldn't a converter from MineCraft to Pumpkin file structure, make the server 'drop in'?
Drop-in means replacing an existing thing with a new one without changing anything.
This is not compatible with other servers plugins/data/configurations, so just replacing the binary and expecting to continue where you left off is not possible.
I would say that Minecraft servers by some qualities are really hard to implement (for example generate world as Java would - using Java's random number generator to generate exactly the same world in Rust) or even impossible. But other usages, like walking through existing world with 1000 of your colleagues might be worth of writing a very fast but not a "drop in replacement" server. Or a massive minigame maybe?
* nginx is not a drop in replacement for apache But from a client perspective, both implement HTTP/1.1. * podman is not a drop in replacement for docker But from a client perspective connecting to a service hosted in docker, that connection can still occur over TCP. On the other hand: * pkgconf is a drop in replacement for pkg-config * cronie is a drop in replacement for vixie-cron
Hey, With Compatibility i mean be compatible with existing Minecraft vanilla client's and also use vanilla logic.
With "Be a drop-in replacement for vanilla or other servers" i mean that if you just replace the existing server file with pumpkin, pumpkin will not load configs/plugins from vanilla/other servers
I see it is not a drop in when using other tools, plug ins, 3rd party things. But what about just a plain vanilla world. Can Pumpkin read in and use the plain vanilla files? Does it do some kind of conversion and have it's own file structure? So if I had a simple server, it could be a drop-in. Or does the world need to be generated new inside Pumpkin? I can't use existing worlds.
Hi, Valence is a framework (similar to Minestom in Java). You have to build everything you self. Pumpkin is not a framework :D. Also Valence is bit unactive (look commits)
That's why I said "clean room implementation". Any reason why Pumpkin does not build on top of Valence?
Would be great to see a more cohesive ecosystem for Minecraft servers in the rust community rather than reinventing the wheel
Comments (153) 26 threads
Earlier commentsJava 6 had multi-threading
It was really funny. It felt like a Satire LMAO
Iirc part of original Minecraft's performance limitations were high object create/destroy rate leading to lots of garbage collection. With that in mind, picking a non-GCd language isn't completely crazy.
Continue this thread — 3 replies
Why pick 6, though?
Continue this thread — 1 reply
I don't mind people rewriting things in but "modern" as a value seems pretty loose, and it's often at least arguable whether it's objectively better!
Usually the hyperbolic superlative for Rust projects is “blazing fast”. Of course, any kind of benchmarks or comparisons with other implementations are completely optional. It is simply enough to “cargo init” and start hammering out code. You don’t even need to consider the characteristics of the algorithms you choose to use! If it’s Rust, it’s “blazing fast”.
It’s bad form to badmouth someone’s earnest work for sure. I wouldn’t do it normally since I think it’s nice that you actually did something. But if you’re going to sit in a glass house and throw stones you should expect some back.
Fortunately, my house is an underground burrow so I can throw stones with impunity. As ugly as it is to do.
Continue this thread — 5 replies
Continue this thread — 1 reply
Well, there is research on this!
https://security.googleblog.com/2024/09/eliminating-memory-s... writes:
> vulnerabilities decay exponentially. They have a half-life. [...] A large-scale study of vulnerability lifetimes² published in 2022 in Usenix Security confirmed this phenomenon. Researchers found that the vast majority of vulnerabilities reside in new or recently modified code
Where ² goes to https://www.usenix.org/conference/usenixsecurity22/presentat...
A study limitation is that they looked only at security-relevant bugs (vulnerabilities). As someone who writes code, I would tend to think that this also goes for bugs without a direct security impact, but I don't have the data to back that notion up
Continue this thread — 1 reply
E.g. sqlite probably wouldn't be called modern, but everyone loves it so who cares.
Am confused by these two lines. Maybe it is just difference between the 'goal' and the 'current state'.
Goal:
"Compatibility: Supports the latest Minecraft server version and adheres to vanilla game mechanics. "
But NOT:
"Be a drop-in replacement for vanilla or other servers "
Will it be a replacement for Vanilla or not?
Drop-in replacement: refer to the ability of a server operator to simply exchange the current installation/executable of the server (be vanilla, paper, cuberite, etc...) for pumpkin while maintaining data, configuration, scripts and mods installed.
edit: grammar
If it is compatible, then can't I 'drop it in'.
They sound like they are saying the same thing.
It is compatible so clients can connect to the server and be fully operational, and thus, I should be able to drop in this server, and use it as a server?
How can it be compatible if it doesn't maintain data, configuration, etc..
Edit: or is this about Pumpkin files. Pumpkin will maintain it's own files, data, configuration. So it can't just use existing Minecraft data files.
So if it was a new world, Pumpkin would generate new pumpkin formatted files. But couldn't just 'drop it in' on an existing world and use the existing Minecraft data files.
Not sure of long term viability as far as effort, but if it is files, couldn't a converter from MineCraft to Pumpkin file structure, make the server 'drop in'?
This is not compatible with other servers plugins/data/configurations, so just replacing the binary and expecting to continue where you left off is not possible.
Continue this thread — 3 replies
Drop-in: You run a server for some time. You decide to switch the software by replacing the executable. Everything works as before.
Continue this thread — 4 replies
* nginx is not a drop in replacement for apache
But from a client perspective, both implement HTTP/1.1.
* podman is not a drop in replacement for docker
But from a client perspective connecting to a service hosted in docker, that connection can still occur over TCP.
On the other hand:
* pkgconf is a drop in replacement for pkg-config
* cronie is a drop in replacement for vixie-cron
Continue this thread — 2 replies
Will it ever though? Is this a goal?
I see it is not a drop in when using other tools, plug ins, 3rd party things.
But what about just a plain vanilla world.
Can Pumpkin read in and use the plain vanilla files? Does it do some kind of conversion and have it's own file structure?
So if I had a simple server, it could be a drop-in.
Or does the world need to be generated new inside Pumpkin? I can't use existing worlds.
All comments shown.
Couldn't load more comments. Check your connection and try again.