Recorded live on twitch, GET IN / theprimeagen original: • Why I switched from JS... author: / @letsgetrusty MY MAIN YT CHANNEL: Has well edited engineering videos / theprimeagen Discord / discord
Or - hear me out - the statistics only say that people using Rust professionally love Rust more than developers using other languages professionally like those languages. Which actually makes a ton of sense - because you'd have to be a weird fanatic to want to write Rust for your actual job.
Writing a compiler in University was probably a turning point for me, where I truly understood how memory works and why languages work the way they do. It's probably 80% of the knowledge you need to write an os from scratch. The other things are probably standard mechanisms to load programs, filesystems, networking, etc. I obviously wrote it in rust 🤣
I think the logic behind the stack overflow surveys is that rust devs dont have to use stack overflow nearly as much thanks to actually useful compiler messages.
That protobuf thing is seriously underrated, especially when combined with grpc. You have one source of truth for all data types and you can also communicate between them using a single endpoint created in grpc in any language of your choice. We use protobuf and grpc for intercommunication between our Kotlin backend, typescript front-end and flutter based apps all using same type definitions and intercommunicating using grpc endpoints written in Kotlin.
@@ishaanmalhotra3008 grpc-web is good enough. It doesn't have any less or more features than your traditional REST API of course, but it keeps the entire project in sync, especially if you have multiple front-ends such as Flutter, cli apps using the same grpc endpoint. It saves a lot of hassle. I kinda dig it.
i am migrating my nodejs backend to rust, there is some method function that cannot migrated at the moment. And yup, grpc is come for help. so i am using two language JS and Rust.
@@ThePrimeTimeagen didnt watch the part where you said you will make a compiler before i comented this, i think thats a great project idea and i wish you a good luck
Prime, we use noise-cancelling earplugs _specifically_ so we don't hear anything. I hate ot when coworkers are talking/laughing/eating/walking/making noise/breathing when I'm trying to concentrate.
For those who are curious about the ceremonial with the AirPods, it’s just because the noise canceling is really amazing. Sometimes I use them with nothing playing just to be in a quiet place.
I can just hold my hand over the side of my Sony 1000-xm5 and hear you without taking it off. AND I could buy two of those for the price of one pro max apple thingy
Just saw a clip from primeReview’s vid of you saying “you want to word drop things for new devs to look up” and you are succeeding in that regard immensely. Feel like I’ve learned so much just from googling things you say, and also just things I see on your screen and even things people write in chat. Thank you!
all I learned in OS class was semaphores. Lots of semaphores. We forked an open source OS and implemented some base functionality in it. Was one of my more favorite classes since it was getting into the nitty gritty.
10:10 there are several people working on Rust who are pretty much fully dedicated to only working on improving error messages. the infrastructure is so good that they can usually fix this kind of stuff really quickly, so if you think an error messages is bad, report it!
I took the operating system class in college as a sophomore with my suite mates. I was lost, but I did get a full curriculum list. We all quit after two weeks. Back in the day, you had to have a wide vocabulary to get all the slang and synonyms when in "System Operations". Which is why Seniors or even graduates were in that class. We immediately knew this class might be too much. We were lost. Had to quit before the deadline. Instead we all decided to install freebsd on my ibm aptiva (that I bought from circuit city); it was a store return. God I was poor, but I was the richest in the suite because I had a job.
I opted out of OS class after about a month due to too many other classes. First assignment was about file systems and since I was the only Linux fan boy in the class I did mine on my favorite: XFS (though it would have been ReiserFS, if not for some, uh, legal problems…). Years later I regret not realizing it was buggy and dealt with silly corruption issues until I dumped it for ext4 and began making productive life choices haha
I have os and embedded systems,distributed systems subjects for next 2 semesters . We did some assembly programming,vhdl and all of the students hated it. Surely frontend web devs withs years of experience will have a very easy doing embedded systems😂.
Love it. ❤ One day I too hope to be on a level good enough to be roasted by prime himself. LetsGetRusty was boring in the beginning, but now, he is great. Great production, informative and fun. 👏
In the last 4 weeks I learned Go instead of Rust (after seeing that people struggle to do the basic things in Rust), I didn't want to be unproductive. Now I can build a server that locally sends a simple json of 5 objects at 9300req/s (reading from Postgres, middleware etc, a full server), and at 2000req/s deployed on Hetzner VPS. Uncached. If I cache the response, it's 48000req/second (forty eight thousand). I tried bun, but only got 230req/s (maybe I'm doing something wrong? The hello world performance was insane, something like 60K req/s, but as soon as I connect to postgres and read from it, it's 230).
Me was an old Dinosaur explorer, OS course and Rust fitted nicely. Imagine doing resource (memory) contention and has language that do gatekeeping for you is real nice. Another OG tile for a ComSci practitioner was DragonSlayer, I don't know whether the terms still valid nowadays.
shoutout to struci at 10:48 saying rust is "definitely not low-level" lmao. Meanwhile rust in both linux and future windows kernels is quite happily going brr
The OS course in college doesn't tell you how to write an OS, it teaches you the theory behind what a filesystem is, what virtual memory is, how multiple processes run simultaneously, etc.
Hey about the EarPods. I have misophonia and sound sensitivity. They make my ability to work in an office 10x better. Please be understanding of those who need em. I actually don’t listen to music but mostly just silence or brown noise.
Can't find the report/research that Prime said from Intel about time spent on server was mostly copying memory. Does anyone have any leads? Really curious about it.
Whoever strucci is in the comments, he's wrong. Rust is low-level. It can do anything C can. It can manipulate memory directly. You can even invoke the assembler.
OS class was very cool and informative, it gave me knowledge about how the whole system works. But also compilers.. that sh*t was enlightening, it gave me knowledge about how programing languages works. with i can have a good guess on what a code is doing, without being an expert at the language or seeking deep in the documentation.
In regard to Rust being the most popular language on SO, I have a theory. I used to browse /g/ back in the day, and I will always remember the overall absolute love for Rust over there. A large portion of the posts were just about how you were wrong if you didn't develop in Rust etc. I wouldn't put it past the fellas over there to organise a Survey Bombing. It definitely wouldn't be the first time.
I actually like C++, but mostly because I know it REALLY well. Like to my colleagues template metaprogramming is my solution to everything and I don't always understand how my colleagues don't understand the code, because to me it's like an open book. Probably a point against me and C++, but there's that. The code is not complex, I'm just using features that you don't know. "what's this bitset, just use a bitshift", No, stop hurting yourself. "Why do you make this template twice and call the other template?" It's called template realisation and it's been in there since C++11. Can't handle the Neutron style?
haven't watched this dude in forever, got bored of his vids since they applied more to intro rust devs rather than intermediate. though, pretty good vids. highly recommend him and his cheatsheet he has edit1: prime really roasted me... idk how i should feel 0:35 ... i like airpods bc they just super convenient and i use macos which makes it even more convenient. also one of the best wireless earbuds for the price. Though I do wanna try the sony donut earbuds edit2: the reason i want to learn rust is to gain a deeper understanding of what happens whenever you do things rather than depending on what scanf or whatever does on their own. though i still am pretty new to it, though, i feel like it can offer a lot to understanding what happens in general. edit3: zig compiler is also what i want to do.
0:30 that's because some idiot decided that it would be a good idea to make earphones react to touches instead of buttons, so you have to be very careful with them
America: We can find you and put behind bars. N korea: you are one mistake away.... hehe China: Gets deleted from eath for mistake. then say anything about rust PrimeAgen : *Exists*. (I'm gonna destroy this man's whole career) starts YELLING LIKE CRAZY* You will regret that you ever existed****
I like Rust but I DO NOT see it as a lowlevel systems programming language! Not do I see C++ as that. It’s a general programming language that can do (with some strong arming that crippled both language’s core usability and sensibility) to do systems program. C and Zig are systems programming languages. Zig even more so because it’s standard lib is so incredibly lean, there’s hardly and fat to be found. Unlike C and especially unlike Rust where the standard lib is just a tad too heavy. No of course you don’t need the standard lib in most lowlevel applications. But then why not develop in assembly is my argument. It it’s just IO and basic maths than I can do that in assembly just fine.
@@ThePrimeTimeagen right. after read a blog post from mozilla (2021) which mention the creation of rust foundation, also mention the new css engine Stylo made in rust ; 😉
Rust will be next! in my journey learning c++, it's disappointing that the more I program in c++ the nastier error messages get! Time to join c++ hate cult lol
It is silly to use Rust for typical web development. The alternatives these days are so frigging good. Java, JS, PHP, C#, Python, …etc. The resources to help you like frameworks and libraries are fantastic. Rust is a tiny ant in comparison. I don’t know why he is comparing Rust to C++. The video is about JS. No one uses JS for anything but web development.
For those of you who have to learn it on your own, here's the operating systems course ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-s5juP-2G42I.html&ab_channel=GeoffreyChallen
@@MCDyma +copilot + [other nvim plugins and language servers]; he actually almost made me use [copilot] (but I installed and tried out [codedium] instead).