My thoughts on writing a Minecraft server from scratch (in Bash)
My thoughts on writing a Minecraft server from scratch (in Bash)
For the past year or so, I've been thinking about writing a Minecraft server in Bash as a thought excercise. I once tried that before with the Classic protocol (the one from 2009), but I quickly realized there wasn't really a way to properly parse binary data in bash. Take the following code sample:
function a() {
read -n 2 uwu
echo "$uwu" | xxd
}
This would read two bytes into a variable, and then pass them to `xxd`, which should ...
Read more at sdomi.pl