Minecraft Server In Bash | Prime Reacts
HTML-код
- Опубликовано: 13 апр 2025
- Recorded live on twitch, GET IN
/ theprimeagen
Become a backend engineer. Its my favorite site
boot.dev/?prom...
This is also the best way to support me is to support yourself becoming a better backend engineer.
Blog link: sdomi.pl/weblo...
By: / _sdomi
MY MAIN YT CHANNEL: Has well edited engineering videos
/ theprimeagen
Discord
/ discord
Have something for me to read or react to?: / theprimeagenreact
Kinesis Advantage 360: bit.ly/Prime-K...
Hey I am sponsored by Turso, an edge database. I think they are pretty neet. Give them a try for free and if you want you can get a decent amount off (the free tier is the best (better than planetscale or any other))
turso.tech/dee...
If you get motionsick in minecraft, do these things:
- turn off view bobbing
- don't play full-screen
- change the FOV
Doing these things help prevent me from getting motionsick in minecraft
he can also lower fov effects in the accessibility settings
yes, the default FOV in minecraft is absolutely atrocious
fun fact, you can edit the FOV in the options.txt file in your .minecraft directory.
So you can make your FOV, or any other setting, insanely low or insanely high.
If you set your brightness/gamma really high you essentially get fullbright.
Those can probably only help a bit. It doesn't solve the issue which is Minecraft having an atrocious projection that makes you sick in order to keep all of the lines straight. The problems get exaggerated when you increase your FOV and/or use a wider monitor/window.
In order to see anything at all in the periphery, which I always do since I hate it when it looks like I'm looking through binoculars, the edges of the screen get stretched and the middle gets squished (it looks like an object in front of you in the middle of the screen is farther away than the edges of the screen, which just looks horrible)
This is in contrast to the likes of panini projection, where the lines get curved like a wide-angle video, which is so much nicer.
I would love it if there were a setting to change the projection to something usable with a wide screen/high FOV in the game
For some reason MC is the only game so far, that got me nauseous by playing it on a huge screen. Changing the FOV to between 80 and 90 and reducing the window to a 10 to 15-inch size helped a lot.
Connecting binaries in multiple languages was bash's original purpose. In other words, if you did the hardware dependent stuff in C and the protocol in Perl or Awk, and then used Bash to write your loops or just call exec, you'd actually be doing it properly, not cheating.
happy that my custom build script in python for my mostly rust os is objectively valid u.u
nah bruv. if you have perl, you don't need bash or awk or sed. ...or C!
The most impressive achievement in Prime's career is being able to stay afloat in IT while being blocked by furries, it's like becoming famous scientists while being shunned by 90% of academia
i will proceed
Spam backwards on the video start and hear Prime doing some rap
Spam 5 to see him doing the nodding Gandalf thing
the most important takeaway from this video
spam 4 for "m *inhale"
HAHAHAHAHHAA
Genius, someone needs to create a video of streamers rapping
15:10 For those curious, it wasn't anything of value indeed.
My guess is Prime was blocked because he said a few times he likes Asmongold, so that makes him automatically a neo n*zi for this kind of people.
Basically Notch's account on one of the forums he originally posted Minecraft alpha to was renamed to Hatsune Miku with a new pfp with miku before a trans flag. And the thread is essentially pretty much what you'd expect from twitter at any point in time, ballooning accusations, "it's fun hating on someone because I feel like I'm right", and "I don't see the issue with ignoring someone's achievements and slandering them by amplifying their faults because I'm the good guy, right?". So yeah not much missed there.
I'm a furry, and I have absolutely no idea what you're even talking about. Twitter things, I guess. I try to stay well away from that mess.
@@nikkiofthevalley It's less about furries and more about politically engaged people basically.
twitter smh
It is actually possible to detect null bytes by doing `read -d ''`. This will read until either a null byte or the end of the file. And you can use the exit code to distinguish those two cases. I use this trick to serve binary files in my pure bash http server.
"I use this trick to serve binary files in my pure bash http server"
psychotic
instant life sentence
> “my pure bash http server”
Cursed sentence
I'm sorry your WHAT
Make a video that's dope
20:10 vs 21:00 *the duality of man*
Imagine hating Java so much that you replace your MC server's code with Bash.
Java isn't that bad it's just Minecraft is written badly
24:40 maybe it's view bobbing. The more modern minecraft gets, the more they make the screen shake as you move around as if you were having a seizure.
Yep view bobbing + narrow FoV 100%. I have to disable bobbing and widen my fov to not get motion sickness.
19:00 reimplementing a good section of the MC protocol was a great learning experience for me. Highly recommend
I think interdimensional Endermen telepathically communicated with Notch and told him how to code MInecraft.
Given some of the decisions made in various parts of the code (especially rendering), I'm gonna say that you're correct.
@@benjaminmiddaugh2729 LOL. 😂
The same Endermen who now breaks Windows installations 🤣
Friend is a Principal engineer at Qualcomm, and unironically uses Perl as his main language.
He's more EE than CS though.
I am a EE, thesedays its just C, Python and maybe Elixir:)
21:02 OWNED.
There's no need to make jokes about the meaning of dd, the origin of this name is stupid enough.
The actual program name is "copy and convert", but in UNIX land, CC is already "C Compiler" so they took the next letter.
I use it all the time to make bootable images
wow i thought it was "data duplicate"
I was wrong, it's actually "disk destroyer"
ok. that makes total sense. i would have named it dog, maybe. or catt
dd is often used for flashing USB flash drive with ISO files.
e.g.
dd bs=4M if=path/to/archlinux-version-x86_64.iso of=/dev/disk/by-id/usb-My_flash_drive conv=fsync oflag=direct status=progress
(taken from the Arch Linux installation guide)
it can also be used when creating and ISO.
Since you can set if (input file) to /dev/null and of (output file) to the iso file, then you can use bs (byte count) to tell it how much to copy over (i.e. how big the ISO should be)
Ahh Thank-you, knew I'd used it somewhere before. This was it.
it can also be used for it's primary purpose as disk destroyer: sudo dd if=/dev/zero of=/dev/sda bs=1048576
i use dd every other week to do laundry, btw. it's totes skibidi.
I absolutely love this engineer's spirit... But we have to be fair. If using perl would be considered cheating, using awk has to be considered the same. Even if it is cheating, I still absolutely love this.
Haha the backstory behind your name is similar to mine. I saw Winters Yaotl in the Teenage Mutant Ninja Turtles movie, and I since I didn't speak English at the time, assumed it was spelled iaotle.
0:40 mfw primeagen too focused on the article that he didn't realize there's font selection on the top right
24:40 Turn off View Bobbing and it should help with the motion sickness. FOV may also help.
"damn are you a system admin still in the world of DevOps?"
Someone needs to fix your shit when it breaks for the 11th time in a day.
23:09 me when I think I've found a cool software engineering job
12:23 e5-2680v2 is a ~10-12 year old 10-core server cpu. Single core performance is similar to a "good" i7 laptop from 5-6 years ago. I know because I own both (actually i have a 2660, but whatevs). Comparison here: user benchmark Intel-Xeon-E5-2680-v2-vs-Intel-Core-i7-8550U
train wrecked successfully
this person is wrong: you can deal with binary with memory mapped files, dual redirection, read and echo. i dont remember where i've read this but i've senen somewhere, somewhere, showing examples. it's very hard but it's doable
How do you not call it "mineSHaft"?!
The chat saying "everything is between 0-127 in minecraft"... is pretty wrong, comes from a very small grain of truth.
A lot of the structured data for certain parts like item counts does uses a signed byte (there is no unsigned kind in Java) as the value is bounded and small, which is where this comes from.
The key to VarInt is in the back of the name, INT. Some of the numbers in the game can be very large, by nature of Minecraft's worlds being potentially massive in scale. VarInt saves on cases where those numbers *could* be large, but aren't.
Today I learned that Prime is in furry denial
The extra bit of data is the opcode is it not? That’s why 15bpb instead of 16
clutch Turok 2 Seeds of Evil reference...
14:06 fun fact: NBT format will kind of die in 1.21
goodcop strikes back
decentcopwhohappenstokeepusingbashandhurtingpeople strikes again
@@ThePrimeTimeagen that was painful to read😂
@@ThePrimeTimeagen name one person bash has hurt
ill wait
the irony that dd is one of the first commands I had to use, passed with piped often as well...
7-9 digits is standard 32bit floating point precision. It's just a float32 aka single.
I never thought I would heard anyone say that they get motion sickness from playing minecraft, especially fps player. Holy crap.
dd is used for raw data duplication. You use it to make byte for byte images of physical disks for instance.
That's one use case but it's an over simplification and it kind of ignores the fact that you can also do conversion. But yeah one could say it just reads from a file and writes into another, that's why the first use people find for it is imaging drives.
@@unixtremeI really wish people would learn how to read.
@@scotmcpherson no need to take things personally.
@@unixtreme nah, I would prefer people read before replying.
@@scotmcpherson maybe read the manpages yourself before trying to teach others :)
22:12 I didn't make it to the stream, but if I did, I'd probably shout "THEY'RE USING DREAMBERD"
The sad part is that I am making my own mc server in Zig, and I am already up to 2000 lines of code, and I can only handle 2 packet types/IDs. Tbf it is architected to be able to support all of MCs features, rather than a subset
Using external commands is not really a BASH only implementation, yes, that is the primary purpose of a shell but bash has a lot of programming capability. It would be nice to convert a lot of the external command and implement them as "builtin" command, i.e, truly modernize shell programming.
Modern shell programming exists, it’s called Powershell
@@mattmurphy7030 I have heard that it's decent, I assume you include the linux version also?
I have switched all my scripts in everywhere (mac, linux, and windows) to powershell. It is really good. Highly recommend it.
@@liquidotacita7027why?
@@24hhhhours for one liners, bash is fine but when writing complex scripts, powershell's syntax is much more expressive. Having structured data, built in argument parsing and validation, automatic help text generation etc make it very easy to create a shell script. Then, a C-like (maybe more like php-like) syntax makes it much easier to read or write complex scripts.
ssooo we all are going to ignore the variable named 'asdf'? 12:11
Blocked by furries by default is just another reason you're a legend - find new reasons every time I watch content King 👑
5:08 that scared me.
Funny that he mentions Turok, that's the only game to ever give me motion sickness!
Make a minecraft Cloud System in bash. you can actually use velocity and spigot/paper
Don't know dd? It's one of *the* two char commands.
But this isn't writing a server in bash. It's writing in bash + other apps.
how does this dude not know what dd is
I'm 99.9999% sure there is really a "list" on some furry discord server and your name is on it.
This was very cool, I kind of want to try it but I really shouldn't.
I am a devops engineer and I use perl to write custom linters and sast tools
bc supports "2^-1", you just need to e.g. set "scale=10" to see anything beyond the decimal point.
26:15 doesn't it generate like 16 by 16 by 512?
Subchunks are 16x16x16, and the game technically supports any number of these stacked on top of each other to make a full vertical chunk (16x16 wide). There's artificial limits set per dimension for how high and low the subchunks will generate, for example in the overworld the subchunks will generate down to y = -64 and up to y = 320.
13:55 arrows and probably weird ender pearl throws
I used to be able to play all kinds of games but now anything first person gives me motion sickness. fov and head bobbing can help with Minecraft but I can't really play it at all now, so I just play things with panning cameras like RTS and platformers.
As a new dev that works at a company that does the majority of its web dev still in perl part of this was so true and so painful
Whyyyy
Or you can use sed and echo -e
bash struggles to render the decimal point. you gotta use zsh
LEB is basically a CStr, 0 indicates the end lol
17:20 Chrome has a ctrl+z too
Rollercoaster in Excel
Tech furries are always a toxic bunch, and I say this being one myself; I prefer avoiding them 😛
I'm going to rewrite Bash in Rust, optimized for running Witch. :P
"Manteasa" lol
15:23 oh the Hatsune Miku is a Notch replacement in the article? Why tho
Basically there was a time he was cancelled on twitter for his tweets. He said someone who said they were never letting go when a developer participated in gamergate (the big anti-sjw in gaming at the time, it started popular but quickly lost wind on the left side, as it went too far) was a "fucking cunt" in an answer to a screenshot of said tweet.
Then he made a bunch of tweets saying he didn't support the harassment and individual focus of gamergate, but was anti-sjw.
Saying people really didn't like it at the time would be an euphemism, SJW stuff was really still quite popular even in its extremes, and being anti-sjw was a private thing, saying it online would be the same as saying you're far right in the crowd's eyes.
He automatically became labeled transphobe, homophobe, racist and pretty much everything else for a few years.
So all references to him were removed from Minecraft, he wasn't invited to the 10th year anniversary, and pretty much never heard of again officially.
There are still a bunch of people calling the enchanted golden apple the notch apple though, so I guess that's pretty much the only reference left, but you can't even craft it anymore.
Because notch has evil icky views
The dude has some pretty antiquated views, and isn’t apologetic about it. That’s it. No reason to erase history, but it doesn’t matter
I've had to play with xxd recently for converting between hex and binary. Not as deeply as author but yea.
I totally thought I had a forgotten call for about a second 😅
Minecraft Server in React when ?
The furryblockagen
Perhaps adding ”parallel” could've helped 😂
primeagen: 0, badly cropped screenshot: 1
What if you start playing Helldivers 2 with Thor? If you're interested in Minecraft but not playing it, maybe talk to him about Blockgame, the MMO he decided to make because he thinks basic Minecraft is boring (although he said modded Minecraft is fun).
When will you try this new Linux vimdows, I hear it's way better then windows
he already uses Linux,
@@SnowDaemon I was very well awair of that, I'm not in the mood to see 30min video again to check what was I referencing but something about vim, windows and linux it was
vimdows still sounds way to funny and cursed
dd -> how you make a Linux install USB.
23:09 react mentioned
I think notch would be proud...
i've noticed something, Prime, why, whenever you want to highlight something, you always select one letter after the beginning and one letter before the end?
Like T * his is how Prime highlights cod * e.
LEB - Length encoded byte
I've once used dd to save myself from a bugged Endeavour OS install, and install linux mint, lol
12:20 That's ancient
Finally a firefox enjoyer 🙏
My friends. Who are dumb. Love chrome 🤮
I never understood this "doing X in bash" thing considering they're using things that are not bash builtins, which to me completely defeats the purpose.
Now if it was called "doing X only using bash and coreutils", I could get behind that. That's actually describing what they are doing. Though it would be really cool to see something like this being done with only bash, it's builtins and how far you can actually take that.
That's called clickbait
The whole awk thing is indeed cheating. When I saw the initial title I was like "I could easily do that in awk but not plain bash, but that's an entirely different language" and yep...
Do you compensate the author you're reading/reacting to? (Assuming the vid performs well)
Been a backend dev for 6 years. didn't understand a lick of anything in this video. love it 😂
As a bash enjoyer, I absolutely hate everything in this article.
Prime respect just got tanked when he didn't know what dd was OMG!!
Like just for Smegol impression...
14:35 I’m on tv
Major loss of respect for you not knowing what dd is 2:35
No one cares, but I think Primagen is a shortened version of latin "primigenia" meaning "first born".
I prefer IEEE754-2008. It is a much nicer vintage
I cannot stand Prime saying "UwU" 💀
React server component based minecraft server when
🌿🍃furry🍃not a furry🍃furry🍃not a furry🍃furry ...
I like you Prime! 💖💖
0:47 D:
React Bash… 🤔
Nice uwu 0:47
gamedev, gamedev, gamedev
I used to date the person who wrote this
Can't reccommend, is an abuser.
maybe you have played minecraft before but i really would love, if you start playing minecraft now it would be amazing, you might be able to contribute to mc community. thorugh mods and stuff, i would love nothing more than you playing mc.
Sysadmins ftw
So basically this is the final proof that zsh is inferior to bash.
😮 really 😯