It can’t be the best unless it does all that, but was simple. Instead it’s complex with a steep learning curve. That’s not a small issue, people don’t run companies don’t understand the value of being able to move quickly.
@MyWatermelonz5 күн бұрын
It is a big claim, going forward seems like python will be the best programming language
@davidbriggs810913 күн бұрын
The only headache I have about rust is it’s slow to compile🥲 I sometimes loose interest in the project because of slow compile times and end up using c++
@whereispie24 күн бұрын
Awesome, thanks
@hcn6708Ай бұрын
"Ok, so hear me out on this: Rust" _mixed reaction from the crowd_
@TheBustthebossАй бұрын
A lot of folks memory issues can be simply resolved by using a std::vector in C++.
@SamualNАй бұрын
how does this apply when using async though?
@KhaledKimboo4Ай бұрын
what is ti with rust programmers i've never seen similar weird community of a programming language, i've used rust for 2 years along side C/python and Go recently, it is : a simple language + "best practices" enforced by the language anyone can by choice implement those concepts in any other language . for example all languages have mutex, rust enforces mutex wrappers on mutables to avoid lock-ins (you forget to unlock) the same wrapper could be implemented in any language in 10 lines of code only rust ENFORCES IT ON YOU and calls it a feature, get over yourself just learn the concepts and use any language you feel productive using (5% performance increase doesn't matter in 99.99% of your projects) by the way none of rust "best practices" are invented by rust team all are known techniques from 70's and 80's long before they were even born
@strandingstranger2 ай бұрын
you kinda sound like chris griffin
@samarnagar96992 ай бұрын
but bash isnt an real progaming language
@CliveStewart-bq3od2 ай бұрын
Very clear and understanding .. you must do more videos like this
@NormTurtle3 ай бұрын
i dont know C . and simple explain was above my head
@amuerta30413 ай бұрын
I don't really get the obsession with Rust's ownership model, yes its cool and almost always promises the programmer to handle memory deallocation in the end of the scope, but... combined complexity of other things in the language like enums that can hold values , Heap based types (Rc, Box,Arc,etc.) or Macros make it unbearable to quickly develop things. Problem that nearly everyone point at, of: "bug because of use after free" or "forgot to free() in C, unsafe!!!!" aren't as much of a deal as the unnecessary complexity of doing literally anything in the language. It could've be the case, if there where no debug tools, valrgrind or bounds checking in all of the system programming languages for decades. I doubt that you need majority of the features (even core one) in rust to make "safe software".
@beckiquick6363 ай бұрын
Very informative! Love ❤️ it!
@beckiquick6363 ай бұрын
Love 💗 this. Great job Jacob! With both the video and your speech! 🙏🏼❤️🙏🏼
@deadmarshal3 ай бұрын
Rust did not introduce anything new, these things like ownership and linear types has been talked about for 30 years, so stop making bullshit videos just to promote a language. Here's one old paper for example and there are many more too. citeseerx.ist.psu.edu/document?repid=rep1&type=pdf&doi=24c850390fba27fc6f3241cb34ce7bc6f3765627
@deadmarshal3 ай бұрын
Rust is a joke!
@Simple_OGАй бұрын
You are a joke
@ErikBongers4 ай бұрын
Nitpicking, but rust wouldn't pop arr from the stack after the move. It's the compiler that marks arr as no longer valid. It's a compile time check, not a runtime action.
@ripsivis4 ай бұрын
you used single quotes for variables...
@LegendBegins4 ай бұрын
This deserves far more than 5000 views. Excellent video!
@its_the_yogi5 ай бұрын
Bro you're the best 🫶 This is the best video by far that I could find to understand about executables.
@spxnr6 ай бұрын
Awesome video and I just subscribed! (Some feedback is that the transitions where letters scattered or rearranged was annoying. It works when expanding an acronym but otherwise it looks like dyslexia)
@alirezanet6 ай бұрын
You should claim rust is the best if you can compare it with something like Zig, I believe zig has the best of the two worlds
@pietraderdetective89532 ай бұрын
Watch Primeagen videos..he often mentions Zig got 80% of Rust memory safety features, but is 80% easier to write compared to Rust.
@remmoze6 ай бұрын
gg bro
@madisoncirillo23826 ай бұрын
You’re so cool
@tapwithmatia6 ай бұрын
Love you, I’m so proud of you and can’t wait to see what’s next!!
@zen-ventzi-marinov6 ай бұрын
"I don't know if it was never explained to me". Story of my life.
@pshr24477 ай бұрын
Really love the way how we end the if loop with "fi" lol
@darrellplank45187 ай бұрын
Generally well explained but left out are the MANY corollaries of Rust's philosophy such as standing on your head to get two objects that point to each other and the difficulties inherent in graphs. That you have to drag in special crates just to have a mutable global. New concepts entirely like lifetimes need to be understood, etc., etc.. I realize there are solutions to all this, but Rust requires a lot more out of the programmer than C++ does - it just does. I also realize that most Rust programmers would say that's a good thing and most of the time I'd be with them on that opinion, but to leave all this out will really not describe to a C++ programmer the difficulty of adjusting to Rust. This makes it seem like ownership is a no-brainer and "that's all there is" when, in fact, the devil's in the details.
@nicholasfinch40877 ай бұрын
I love that `esac` is just `case` backwards and `fi` is just `if` backwards.
@aarond3097 ай бұрын
Quote your variables
@guyblack97297 ай бұрын
Bash has to be the most usable esolang. I've never been able to write a nontrivial bash script without looking up a bash cheatsheet.
@dickheadrecs7 ай бұрын
there’s something about closing a block with the mirror image of the opening keyword that really appeals to me
@dickheadrecs7 ай бұрын
the bourne ultimatum
@Cammymoop7 ай бұрын
Domain specific languages are cool sometimes
@dickheadrecs7 ай бұрын
any computer in the world is a pretty large domain
@Cammymoop7 ай бұрын
@@dickheadrecs Technically true, but I'm not sure I see the point?
@dickheadrecs7 ай бұрын
@@Cammymoop seems superfluous. somewhat like a nipple
@Cammymoop7 ай бұрын
@@dickheadrecs tf you have against nipples?
@CrazyMineCuber7 ай бұрын
yuck! Bash's manual is just 300 pages of special cases!
@karthikeyanparasuraman93377 ай бұрын
It's cool!
@rw_panic0_07 ай бұрын
someone pls explain to him Rust does not protect from memory leaks in the first place..
@peter94772 ай бұрын
It actually does. What you mean, I believe, is that it cannot prevent you from deliberately causing a leak (and obviously! given that it includes mem::leak()). But it definitely prevents inadvertent leaks in almost all cases by tracking ownership and dropping where required. That's what is meant, not that it's literally impossible to cause a leak.
@mohaofa15448 ай бұрын
Rust Probaganda be like C is Old C++ is Bla bla bla and in the last minute they start talk about Rust and then the vedio end
@ifgpuelse8 ай бұрын
C++ Smart pointers: I don't exist**
@MikeDawson18 ай бұрын
isn't this just like an std::vector<int> though?
@yazode8 ай бұрын
Thank you for the great video!! what software do you use to make such illustrations?
@alvaroluis53688 ай бұрын
This concept is called RAII and you could do it in C++ years before Rust existed
@maelstrom2548 ай бұрын
C++ works exactly as described in the video 😂
@ivanborsuk11108 ай бұрын
you can run popen("/bin/ls -lh") and read its output in stdin
@pshr24478 ай бұрын
Great video btw actually made me so curious that i would like to learn more about rust
@pshr24478 ай бұрын
So doesn't Smart Pointers in C++ also solve this particular problem of memory leak when variables are going out of scope? Like if we have a pointer and enclose it in a class then if it goes out of scope it's destructor will be called which will initiate the cleanup code required to free up the memory. Is it not a good enough solution or am i missing something?
@alvaroluis53688 ай бұрын
Not only smart pointers. std::vector is basically an array of variable length in heap that gets freed when out of scope. It is also used in std::string and in every class that frees up resources on its destructor. It's called RAII and it was a thing in c++ before Rust existed.
@mghinto2 ай бұрын
C++'s safety is an afterthought and is all opt in, while Rust's safety is inherent to the language and is all opt out. That makes a big difference and reduces what code you have to consider when something goes wrong. Also, if your rust program compiles, you can be pretty confident that it will work before you even run it.
@starllama21492 күн бұрын
@@mghinto I don't get this mindset though? Nobody is forcing you to use the unsafe c++. Nobody is also forcing you to not use the unsafe keyword in rust. C++ is plenty fine enough. RAII is enough.
@zeropointer1258 ай бұрын
Wait... but c++ does pretty much the same things. Only difference is = copies by default and you have to explicitly std::move
@zxcaaq8 ай бұрын
clickbait
8 ай бұрын
Surely it is because I’m an old fashioned C/C++ programmer and I can’t still see the beauty of this ownership paradigm, but right now I can only think about how annoyingly painful would be for me to try coding about anything in Rust, I already have a headache just from thinking about it. I can definitely see the advantages of of the compile time analysis and strict memory management Rust provides, but I’m afraid it comes with a cost in flexibility and usability that may be too high for certain situations.