Earlier quoted context omitted.
For Minecraft, very much so. Minecraft, especially the Java version, is in a comparatively odd place in that it receives significant free content updates AND officially supports running any historical version AND has an extremely vibrant modding community. Minecraft (Java) is as much of a game engine for others to build on as it is a game itself.
Minetest is much more of a game engine. I've heard from someone I know that played both extensively that minetest is less prone to losing everything for data corruption (never happened once in minetest, regularly in minecraft after a while. But sample size is 1).
Writing a Minecraft server from scratch in Bash (2022)
41–50 of 56 posts
Re: Writing a Minecraft server from scratch in Bash (2022)
#42Re: Writing a Minecraft server from scratch in Bash (2022)
#43Earlier quoted context omitted.
Minetest is much more of a game engine. I've heard from someone I know that played both extensively that minetest is less prone to losing everything for data corruption (never happened once in minetest, regularly in minecraft after a while. But sample size is 1).
Is that sample size of one from the java edition or bedrock edition of minecraft?
Re: Writing a Minecraft server from scratch in Bash (2022)
#44They should have used my (dumb?) library, ctypes.sh: https://github.com/taviso/ctypes.sh Then they can access libm, poll(), select() and so on from bash :)
Re: Writing a Minecraft server from scratch in Bash (2022)
#45A negative power, i.e. 2^(-n) is just 1/(2^n). I'm surprised the author didn't remember that with their own 2^-1 = 0.5 example and eventually reached out to awk for it.
I don't understand how this would help the author. Since the bash doesn't support floating point numbers anyway
Re: Writing a Minecraft server from scratch in Bash (2022)
#46a single binary that is less than 2M bytes, universal, way more capable than many people think.
with shellcheck and good habits, bash can be readable and safe as well.
if you want something extra, you can always use C/C++ to add those utilities without using more involved FFI etc, and without pip/npm/etc to load who knows how many dependencies.
Re: Writing a Minecraft server from scratch in Bash (2022)
#47bash is one of my favorite, as favorite as vim and lua. a single binary that is less than 2M bytes, universal, way more capable than many people think. with shellcheck and good habits, bash can be readable and safe as well. if you want something extra, you can always use C/C++ to add those utilities without using more involved FFI etc, and without pip/npm/etc to load who knows how many dependencies.
My favorite thing to do with shellcheck: add it to CI. Developers hate this one trick!
A lot of times CI and Dockerfiles have inline bash scripts. My next favorite thing to do is to move all of that inlined bash to their own script files. Now that CI has shellcheck: all that stuff gets checked too! Developers seem to hate this though because it's "less readable". Less readable my ass, it's way more safe.
Next problem: the same bash scripts are now in the same files in multiple repositories (a distributed build). I'm open to ideas for improvements here.
Re: Writing a Minecraft server from scratch in Bash (2022)
#48bash is one of my favorite, as favorite as vim and lua. a single binary that is less than 2M bytes, universal, way more capable than many people think. with shellcheck and good habits, bash can be readable and safe as well. if you want something extra, you can always use C/C++ to add those utilities without using more involved FFI etc, and without pip/npm/etc to load who knows how many dependencies.
Re: Writing a Minecraft server from scratch in Bash (2022)
#49bash is one of my favorite, as favorite as vim and lua. a single binary that is less than 2M bytes, universal, way more capable than many people think. with shellcheck and good habits, bash can be readable and safe as well. if you want something extra, you can always use C/C++ to add those utilities without using more involved FFI etc, and without pip/npm/etc to load who knows how many dependencies.
I dislike bash because I'm not good with it. It sucks but is still often the best solution available. Actually, one of my regret was not to invest more time on it when I was a student (a while ago) because it's one of these rare tools that accompanied me my whole career.
Re: Writing a Minecraft server from scratch in Bash (2022)
#50Earlier quoted context omitted.
For Minecraft, very much so. Minecraft, especially the Java version, is in a comparatively odd place in that it receives significant free content updates AND officially supports running any historical version AND has an extremely vibrant modding community. Minecraft (Java) is as much of a game engine for others to build on as it is a game itself.
Minetest is much more of a game engine. I've heard from someone I know that played both extensively that minetest is less prone to losing everything for data corruption (never happened once in minetest, regularly in minecraft after a while. But sample size is 1).
I've also been on ZFS nearly the whole time. Are you certain Minecraft actually corrupted your data file, or do you suffer underlying hardware failure?