Rust in 100 Seconds

  Рет қаралды 1,709,228

Fireship

Fireship

Күн бұрын

Rust is a memory-safe compiled programming language for building high-performance systems. It has the simplicity of high-level languages (Go, Python), but the control of low-level languages (C, Cpp) github.com/fireship-io/rust-i...
#programming #rust #100SecondsOfCode
🔗 Resources
Rust Docs www.rust-lang.org/learn
Rust Book doc.rust-lang.org/book/
Rust Quickstart github.com/fireship-io/rust-i...
Also see Go in 100 Seconds • Go in 100 Seconds
🔥 Get More Content - Upgrade to PRO
Upgrade to Fireship PRO at fireship.io/pro
Use code lORhwXd2 for 25% off your first payment.
🎨 My Editor Settings
- Atom One Dark
- vscode-icons
- Fira Code Font
🔖 Topics Covered
- Rust ownership and borrowing explained
- How Rust memory management works
- Get started with Rust
- Rust vs Go
- Rust vs C

Пікірлер: 1 300
@augustinefodayngobie1884
@augustinefodayngobie1884 2 жыл бұрын
Best line of today's 100sec " lower level languages provide functions like free and allocate to shoot yourself in the foot"
@techjudge8049
@techjudge8049 2 жыл бұрын
@Ort Are you serious? All C++ neckbeards do in life is make fun of higher level languages, and saying "it's not real programming." What a snowflake.
@regularname1825
@regularname1825 2 жыл бұрын
@@techjudge8049 cope
@chudchadanstud
@chudchadanstud 2 жыл бұрын
@@techjudge8049 Yes higher level languages aren't real programming languages. They're just applications made in C. Instead of using buttons, you use text.
@if-and-only-if
@if-and-only-if 2 жыл бұрын
@America's Funniest Videos nah, real programmers flip their own bits.
@5upl1an
@5upl1an 2 жыл бұрын
@@chudchadanstud troll deteced
@ircmullaney
@ircmullaney 2 жыл бұрын
Yes, I'd love to see a rust tutorial! Especially one geared toward creating web assembly functions/modules using Rust.
@Meloons
@Meloons 2 жыл бұрын
*geared*
@B_R_E_I_Z_H
@B_R_E_I_Z_H 2 жыл бұрын
YES that's exactly what I want too !
@kugi518
@kugi518 2 жыл бұрын
+1
@ktsnowy
@ktsnowy 2 жыл бұрын
YES, I would love a full Rust + Webassembly tutorial.
@razor-wd2pc
@razor-wd2pc 2 жыл бұрын
+1
@baryemini4103
@baryemini4103 2 жыл бұрын
0:55 This is wrong, value mutability doesn't have anything to do with the value being stored on the stack or the heap (and the example let mut hello = "hi mom" will be stored on the stack since it's type is `&'static str`), it depends on the type of the value (if it's `Sized` or not).
@Fireship
@Fireship 2 жыл бұрын
Good call, thanks for the correction.
@yt-sh
@yt-sh 2 жыл бұрын
@@Fireship Thanks!, I know you were gonna do it anyway but appreciate you doing it btw could you do Best React state management library too
@creativcoder
@creativcoder 2 жыл бұрын
To add to that: a literal string "hi mom" goes to the data section of the binary. That's why it has 'static on it. You can confirm that by running objdump tool over the binary.
@VivekYadav-ds8oz
@VivekYadav-ds8oz 2 жыл бұрын
@@Fireship Please pin this comment. That small mistake is gonna put off a lot of low-level devs who thought they were gonna have more control over allocations.
@rishadbaniya
@rishadbaniya 2 жыл бұрын
And to those who dont know, Sized is basically a trait that's implemented by the compiler to those whose size is known during compilation
@crowlsyong
@crowlsyong 2 жыл бұрын
Dude I’m discovering the comment section of your videos right and this is amazing. So much quality feedback, friendly corrections, and expansive conversations. What a lovely place on the internet.
@never_give_up944
@never_give_up944 9 ай бұрын
+1 I'm actually shocked by this (in a good way of course!)
@demidrol5660
@demidrol5660 7 ай бұрын
kiss my ass bro)
@Phronesis1037
@Phronesis1037 2 ай бұрын
I don't know coding and I'm just here just to enjoy and chill :)
@Tantandev
@Tantandev 2 жыл бұрын
Let's go! I think Rust takes a new innovative look at how we write software without compromising safety for performance. Borrow checker has taught me a lot of good lessons in writing better code
@zainjadoon759
@zainjadoon759 2 жыл бұрын
I knew I would find you here
@zynaxsoft
@zynaxsoft 2 жыл бұрын
I still can't remember what his favorite programming language is.
@jacobhinchliffe6659
@jacobhinchliffe6659 2 жыл бұрын
Nice videos you are very entertaining
@Beryesa.
@Beryesa. 2 жыл бұрын
Ah yes the rust boiiii :D hi there
@yokunjon
@yokunjon 2 жыл бұрын
@@zainjadoon759 Haha, same
@sznio
@sznio 2 жыл бұрын
1. Don't call rustc directly, do it via cargo 2. You don't have to declare the type of a variable in most cases 3. Mutable variables are stored on the stack. When you need dynamic size, then you use Box which indicates that the variable is stored on the heap.
@abanoub7002
@abanoub7002 10 ай бұрын
if your working on some kind of project that uses multiple crates than yeah use cargo, but for something like the example he wrote it'd not needed
@snakemaster2
@snakemaster2 8 ай бұрын
​@@abanoub7002even if its just 1 file, use cargo run. Its just good practise
@jermaineclarke4298
@jermaineclarke4298 7 ай бұрын
Thank you for point #3 especially, he was about to confuse the shit outta me.
@thisguy.-.
@thisguy.-. 5 ай бұрын
About #3, there is more to it. A string is dynamic so using Box is pointless since String::from() returns a pointer to a string that goes onto the stack while the string itself goes into the heap. Lots of weird exceptions go into it to make it difficult to explain that can only be solved on a per case basis per type
@pedrodesu
@pedrodesu 5 ай бұрын
I'd propose just some minor changes 1.1. As was already pointed, rustc makes complete sense when you merely want to use Rust's compiler, for instance for a simple file or any environment where you don't need the notion of a "full project" with package management. Otherwise cargo is indeed more suited. 3.1. A Box is a smart pointer. The value it refers to, of type T, is indeed stored in the heap, but the structure itself, Box, which is the value returned (the "variable") when instantiating a new boxed value (the "pointer" to the memory in the heap), is stored in the stack.
@nirjalmahat9075
@nirjalmahat9075 2 жыл бұрын
The only thing I understood here is that RUST is a programming language.
@zahra-pl1sk
@zahra-pl1sk 23 күн бұрын
me too 😂
@armentorosyan8268
@armentorosyan8268 19 күн бұрын
isn't it a game
@VivekYadav-ds8oz
@VivekYadav-ds8oz 2 жыл бұрын
Good video overall, but a major mistake: YOU decide what values live on the stack or heap, NOT whether the value is immutable or not. I can have: struct Foo { bar: i32 } let mut x = Foo {bar:42};" and "let x = Foo{bar:32}", both are gonna live on the stack, unless I heap-allocate them explictly like I do in C/C++. I think what you're talking about is that you can't have unknown-sized values on the stack. Like you can't declare an array with non-const size, because that would depend at runtime, which isn't allowed, you'd have to heap-allocate that array.
@echoptic775
@echoptic775 2 жыл бұрын
How to choose to heap allocate?
@maowtm
@maowtm 2 жыл бұрын
@@echoptic775 just use a container like Box or Vec
@itsdazing1279
@itsdazing1279 2 жыл бұрын
@@echoptic775 use Box type. Stack allocated: let var = 3; Heap allocated: let var = Box::new(3);
@echoptic775
@echoptic775 2 жыл бұрын
@@itsdazing1279 oh right. I forgor ☠
@31redorange08
@31redorange08 2 жыл бұрын
Yes, he should fix the video and reupload it.
@swanandx
@swanandx 2 жыл бұрын
I would also like to mention how friendly and informative the rust compiler error are!
@VivekYadav-ds8oz
@VivekYadav-ds8oz 2 жыл бұрын
Generics and Async still produce bad error messages sometimes, but that's improving I've heard.
@iyxan2340
@iyxan2340 2 жыл бұрын
yeah I really like their "help" and "note"s on the errors :)
@kantraa
@kantraa 2 жыл бұрын
especially compared to Python...
@eccentricOrange
@eccentricOrange 2 жыл бұрын
@@kantraa ya ever worked in C, buddy?
@mastershooter64
@mastershooter64 2 жыл бұрын
@@eccentricOrange ya ever worked with assemblers buddy?
@varunlatthe4586
@varunlatthe4586 2 жыл бұрын
Nice video! Just a heads up tho making a variable mutable doesn't make it heap allocated. Allocation explicitly happens when using types like Vec, Arc, Rc, Box, String, etc.
@danielegvi
@danielegvi 2 жыл бұрын
Practically, heap allocation is implicit. Any third-party data structure might internally use boxes or vecs, it’s up to their documentation to tell you so. As long as you’ve got full support for std, that’s just left as an implementation detail.
@codebreatherHQ
@codebreatherHQ 2 жыл бұрын
Mutability doesn't mean it's stored in the heap. It is stored in the heap if the size cannot be known at compile time such as Vector, etc . In order to make `hello` variable heap allocated, you would have to wrap it in a smart pointer
@SamueldeBrito
@SamueldeBrito 2 жыл бұрын
Your videos are amazing!!! Sometimes are even better than a "getting started" of 30 minutes tutorials 🔥
@saadisave
@saadisave 2 жыл бұрын
2:10 I think you should have demonstrated that using cargo instead of rustc. And, as others have mentioned, mutability has nothing to do with heap allocation. Great video, btw.
@n3ttx580
@n3ttx580 2 жыл бұрын
I've learned C with a bit of C++ in high school, and started following Rust since I've read an article about the project that is rewriting Linux kernel in Rust. I wanted to participate, so just for fun, I've started learning it. IT. IS. AWESOME. Please, do more videos on Rust!
@chillyvanilly6352
@chillyvanilly6352 2 жыл бұрын
Same here hehe, C++ was the 1st and primary lang. Wanna do some lightweight collab-work for learning purposes on a mini-project perhaps?
@sergsergesrgergseg
@sergsergesrgergseg 2 жыл бұрын
so whats the use of c++ now that rust is here
@chillyvanilly6352
@chillyvanilly6352 2 жыл бұрын
@@sergsergesrgergseg well, I mean it does still have it's place. Just think of it this way: assume you want to write some component in Rust, but use it withon a Java project via JNI. You would build the Rust project with it's target being either `cdylib` or `staticlib`, both of which are C libs, right? Though this is a rather nieche use-case, but still, there are multiple reasons within a context of a code-base you won't be starting off from scratch. But yeah, I personally would like to see Rust conquer the world, and perhaps even replace Java at some point, that is if Kotlin won't conquer that part of the (JVM)-world hh.
@klittlet
@klittlet 2 жыл бұрын
Wtf why would people do that? Is Rust going to provide something better to the kernel? or is this some sort of fanboy-ism ?
@CounterFlow64
@CounterFlow64 2 жыл бұрын
@@klittlet For better performance, and it essentially eliminates any hard to fix bugs like segfaults, data races, dangling pointers etc. These are all annoying problems with C, and the program compiles fine even of it may contain many issues like this. Rust refuses to compile if any of these issues are possible, unless you use the -unsafe flag, which you wouldn't do with an OS. Rust lets you write safe & bug free code without all the extra hassle you would need in C.
@ConnorMooneyhan1
@ConnorMooneyhan1 2 жыл бұрын
You did a great job of highlighting the main features of Rust! Would've liked a bit on zero-cost abstraction though. A full tutorial would be great!
@LukSilva12
@LukSilva12 2 жыл бұрын
Yes! Full Rust tutorial! It would be cool to use this to create a web assembly tutorial as well! You made a very simple one some time back, and I wanted a more in depth tutorial about it! Your videos are awesome!
@JeremyChone
@JeremyChone 2 жыл бұрын
Pretty good overview. Just a little nit pick for @0:58: Mutability is not a deciding factor for a value placed Heap vs. stack. In Rust, it cannot because mutability is an attribute of the handle, not of the value. Now, dynamically sized elements are placed on the Heap, and the developer can force anything to be on the Heap by using constructs like Box. Anyway, great video. Hope many will look at Rust.
@babywaffles
@babywaffles Жыл бұрын
It cannot what?
@mitigamespro8757
@mitigamespro8757 10 ай бұрын
@@babywaffles It just cannot.
@B3Band
@B3Band 9 ай бұрын
Just a little nit pick: It's nit pick, not neat pick.
@JeremyChone
@JeremyChone 9 ай бұрын
@@B3Band Thank you. This was before chatGPT days! (just fixed it, thanks!)
@lieQT
@lieQT 2 жыл бұрын
You can mutate a stack allocated type like an integer. You could box it into the heap if you needed though, some rare circumstances require that, like for using dynamic dispatch.
@ThatDudeSmoke
@ThatDudeSmoke 2 жыл бұрын
I actually just started using rust earlier this week. Pretty cool to see that you made a video on it, would absolutely love to see you make more!
@michaeleaster1815
@michaeleaster1815 2 жыл бұрын
0:41 Outstanding video! Just to amplify, for newbies: Rust uses a "middle path" to be both performant and safe (from a bug standpoint, which implies a _security_ standpoint). This combination is key to understanding its popularity. The key to learning Rust is to accept that the Borrow Checker will hound you like a vicious dog (but it has your back).
@AlanPope
@AlanPope 2 жыл бұрын
Nicely done. Yes, I'd love to see some more Rust tutorials.
@real1cytv
@real1cytv 2 жыл бұрын
I think cargo is on of the the biggest reason rust is so beloved... You don't have to fiddle with your build system and you have really easy access to other people's code, something that is missing from a lot of other low level languages. The language itself has quite a steep learning curve
@wojtekgame
@wojtekgame 11 ай бұрын
I don't think ASM needs a package manager because it's assembly.
@NedCollyer
@NedCollyer 2 жыл бұрын
Totally down for a Rust tutorial. Your videos are so great to follow along and learn. Love them :)
@TheRebel2014
@TheRebel2014 2 жыл бұрын
Please and thank you for a tutorial! Loving learning rust as a side project. It's been fun to have more direct control than with go or Python.
@SkyyySi
@SkyyySi 2 жыл бұрын
Don't manually use rustc, just use 'cargo build' ('cargo b' also works, it's a shortcut). Using rustc like this is like manually compiling every file in a project with a Makefile.
@mrocto329
@mrocto329 2 жыл бұрын
Also use `cargo run` to run the code for testing and `cargo build --release` to do optimizations and stuff.
@bubbletea695
@bubbletea695 2 жыл бұрын
@@mrocto329 For some reason, I just get a message saying error: linker 'link.exe' not found.
@mrocto329
@mrocto329 2 жыл бұрын
@@bubbletea695 Assuming you're on windows from the .exe extension, you probably need visual studio & c++ stuff installed.
@valinkdevr5520
@valinkdevr5520 Жыл бұрын
@@mrocto329 Or install mingw and use the gnu toolchain
@jedenpetrzela
@jedenpetrzela 2 жыл бұрын
I just started learning to rust. This video's a real eye-opener.
@vitorhmtts
@vitorhmtts 2 жыл бұрын
super cool! it's also good to mention that rust compiler errors are SUPER helpful and, most often, precise.
@johnvandenberg1448
@johnvandenberg1448 2 жыл бұрын
Loved the video and looking forward to seeing a more in depth video on Rust. Thanks for creating this!
@workaccount2274
@workaccount2274 2 жыл бұрын
Firebase in 100 seconds next!
@Fireship
@Fireship 2 жыл бұрын
That video is long overdue
@Gobillion160
@Gobillion160 2 жыл бұрын
@@Fireship agreed
@daytonmux
@daytonmux 2 жыл бұрын
The love child of NoSql in 100 seconds and json in 100 seconds
@dansho3712
@dansho3712 2 жыл бұрын
I find the C++ „Shooting in the foot“-part very funny. And I say that as someone who really enjoys using C++. But there a few things i‘d like to mention: The code shown in 0:46 is C-Style. In C++ you normally simple allocate memory using the „new“ keywoard. Also there are several ways to easily deal with dynamic memory, e.g. using STL containers or smart pointes. You will never have to worry about Memory Leaks anymore if you use them.
@zoriiginalx7544
@zoriiginalx7544 2 жыл бұрын
RAII is pretty safe C++.
@VivekYadav-ds8oz
@VivekYadav-ds8oz 2 жыл бұрын
Smart pointers in C++ do in-fact bring memory leaks quite down, not too far from Rust IMO, though both languages do not guarantee that memory leaks will be prevented.
@prodbytukoo
@prodbytukoo 2 жыл бұрын
Smart pointers form part of my wet dreams
@prodbytukoo
@prodbytukoo 2 жыл бұрын
Skipped all the annoying deletes in my final OOP project in college, and even got extra points for using them lmao
@ashwinalagiri-rajan1180
@ashwinalagiri-rajan1180 Жыл бұрын
smart pointers have pretty much removed that problem using raii
@macmoholic6283
@macmoholic6283 2 жыл бұрын
Would love more of Rust in any form on this channel. Currently learning the fundamentals of it, but I hope to learn how it is used in WebAssembly!
@TheDvmitto
@TheDvmitto 2 жыл бұрын
Yes please, would love a more extensive rust tutorial. Yours is the best concise video so far to explain Rust's ownership
@sidhantsrivastava7426
@sidhantsrivastava7426 2 жыл бұрын
Full Rust tutorial would be awesome!
@herrbanane
@herrbanane 2 жыл бұрын
I'm half way theough the book, but I'd really appreciate a Rust tutorial by Fireship.
@DerSolinski
@DerSolinski 2 жыл бұрын
OMG that garbage truck meme is basically every garbage collector ever. Thx for breaking down Rusts differences so clear on point. This is the best introduction / explanation I've seen so far. Well done. Please keep this format, your content is topnotch in this regard.
@Jaguar2121
@Jaguar2121 2 жыл бұрын
Thank you for the Rust in 100 seconds video!! You explain concepts so clearly. Yes! Rust tutorial please.
@jsh3288
@jsh3288 2 жыл бұрын
Good video but things are only on heap when you explicitly make them on heap by wrapping them in a heap container like Box or Rc. Mutable values can be on stack as long as their size is known at compile time, this is possible even if you reassign the variable. If you have something stored like a polymorphic type like a trait and you want to store a struct that implements that trait you would need to store it in a Box (with dynamic dispatch(dyn)) since the size of a value like that can't reliably be known at compile time. Also to compile a rust project with dependencies and utilize the build system you need to use cargo (eg. cargo build, cargo run) instead of rustc.
@WorstDeveloper
@WorstDeveloper 2 жыл бұрын
Yes, I would love a full rust tutorial! Also, don't you build with cargo instead of rustc?
@dishantmishra3940
@dishantmishra3940 2 жыл бұрын
you can build with both! That said, a package with external dependencies would require cargo to build. Adding on to that, cargo is more of a package manager and dependency resolver (like npm!) and uses rustc as the compiler under the hood.
@darkfire2703
@darkfire2703 2 жыл бұрын
Yes normally you do that. rustc is the actual compiler and cargo is the build tool (among other things), somewhat comparable to gcc and make. If you do `cargo build` it will call `rustc` in the background.
@aldi_nh
@aldi_nh 2 жыл бұрын
Rustc and Cargo is just like Javac and Graddle
@geroo5676
@geroo5676 2 жыл бұрын
Explaining Rust in such a short time is very difficult, but you did a great job!
@PH0ENiX-._.-PH0ENiX
@PH0ENiX-._.-PH0ENiX 2 жыл бұрын
Yes I too would love to see the detailed tutorial from basics to advanced. You explain things very good.
@capkenway
@capkenway 2 жыл бұрын
a full rust tutorial would be lovely
@weblio4861
@weblio4861 2 жыл бұрын
Full rust tutorial! Let's go.... ehm... Let's rust!
@BenedictGS
@BenedictGS 2 жыл бұрын
I appreciate you bringing something out of your mastery, try to learn it and share with us those learning.
@marekdanco372
@marekdanco372 2 жыл бұрын
YES! I've been waiting for video on rust for a long time, I've been wanting to try this. Please, upload a full tutorial, I would be very happy!
@pythonop7303
@pythonop7303 2 жыл бұрын
bruh! just started learning rust roday and completed upto strings and there comes your video
@Kat21
@Kat21 2 жыл бұрын
I think it's a good language but I'm not the best at it
@cod3r1337
@cod3r1337 Жыл бұрын
No half-competent C++ programmer would routinely use malloc/free, or even new/delete when it can be easily avoided. Fun fact: C++ actually has automatic memory and resource management. Well, kind of, at least. It's called RAII. The problem is that it's not enforced, and sometimes tricky to get right. This is where Rust and its borrow checker comes in - it picks up C++' idea of automatic resource management, makes it mandatory and goes out of its way to keep you from getting it wrong.
@atalocke
@atalocke 2 жыл бұрын
When you make your tutorial, please make sure to cover Lifetimes, Option, Result and how to create modules. I've been developing witj Rust for two years almost daily (including my own lang) and these are what tripped me up the most in the beginning.
@brunogoncalves9747
@brunogoncalves9747 Жыл бұрын
I definitely want to see a full-lenght rust tutorial, especially geared towards game development!
@aniketfuryrocks
@aniketfuryrocks 2 жыл бұрын
0:59 may or may not. We don't specifically have objects in rust. Most heap allocations are carried out with Box.
@abplayzz
@abplayzz Жыл бұрын
"Future Linux Kernel?". Your prediction was on point!! Well not the entire kernel is being replaced with Rust but they are now adding Rust support in next version of it's Kernel. v6.1
@gallergur
@gallergur 2 жыл бұрын
Would love to see a Rust tutorial. You should consider making multiple videos to cover it more deeply and not just the basics. Thanks for the amazing content as always 🙂
@errre8091
@errre8091 2 жыл бұрын
This channel is awesome. I was looking into how to get started with Rust yesterday. And here comes Fireship like. Hey got you man. 😎
@Infinighost
@Infinighost 2 жыл бұрын
I'm convinced Rust primarily exists to achieve upvotes on Reddit and Hacker News.
@thecoolnewsguy
@thecoolnewsguy 10 ай бұрын
Ok
@andrescamilo7406
@andrescamilo7406 Жыл бұрын
at this point Rust is like a cult
@nebularzz
@nebularzz 6 ай бұрын
Always has been
@PROgrm_JARvis
@PROgrm_JARvis 2 жыл бұрын
Great and long-expected video! Just some notes which may make it better: Except for the already mentioned /mut not requiring heap/ error. It is also worth mentioning that the type inference is smart enough to make it not needed to place explicit type annotations (as on 1:43) in most cases. The reason why it has to be used in this particular example is that `collect()` works on arbitrary *target* types and thus it need a type hint into what to collect the data. Also, to be fair, the screenshot at 1:27 has not got much to do with borrowing checker (there may be better examples, I guess). Also, the preferred way to build binaries is `cargo build` instead of `rustc`. So I guess (just my personal opinion) that it may be reasonable to have the video updated/reuploaded with these patches so that it gives a better image of the language in general (and not get used in holywars as an argument, haha).
@ShigeTheToura
@ShigeTheToura 2 жыл бұрын
Saw this suggested yesterday ! Awesome to see fireship listening to community feedback!
@Atmos41
@Atmos41 2 жыл бұрын
What's amazing about Rust is how smart and detailed the compiler is. It tells you how to fix your errors in a very precise and understandable way, unlike C++
@mrbaeman39lolman60
@mrbaeman39lolman60 2 жыл бұрын
There are multible C++ compilers
@KoyFoster
@KoyFoster 2 жыл бұрын
Rust is amazing. It's like C++ but in scripting form. I'm falling in love with this channel.
@samueld-bx6kv
@samueld-bx6kv 2 жыл бұрын
Other than a few inaccuracies, this was a great video! I'd love to see full tutorial with rust wasm and javascript.
@berkakipek8991
@berkakipek8991 Жыл бұрын
Full Rust tutorial would be great. Your videos are awesome. Keep up the good work. :D
@advanceringnewholder
@advanceringnewholder 2 жыл бұрын
2:09 why use rust while you can just use cargo build and cargo run.
@aldi_nh
@aldi_nh 2 жыл бұрын
Why bother cargo build when you can just cargo run
@lowrhyan567
@lowrhyan567 2 жыл бұрын
@@aldi_nh Why bother Rust when you can just use Assembly and save 5 Ms when running the code
@lukemelaia2461
@lukemelaia2461 2 жыл бұрын
@@lowrhyan567 because you can save a few more cycles if you do it directly with binary
@MagnusGamesUS
@MagnusGamesUS 2 жыл бұрын
Was literally setting up rust when I got the notification
@arshiaaghaei
@arshiaaghaei 7 ай бұрын
I mean tbf malloc/free are all C and C++ discourages their use. While C++ does have delete and pointers, modern C++ has smart pointers and a lot of similar tools to help you with more proper memory management.
@bombrman1994
@bombrman1994 2 жыл бұрын
more about rust please. I want to make rust the tool that is in my left pocket. I am happy with what i have in my right pocket and ready to invest some extra time on rust. I share your videos with my friends on discord you are like a gem
@zachchildress1092
@zachchildress1092 Жыл бұрын
I clicked this video thinking he meant the game lmao
@slackstation
@slackstation 2 жыл бұрын
Would love to see a full rust tutorial and walkthrough. Next, could you look at the Solana cryptocurrency and the framework Anchor? Solana uses Rust for contract programming language and Anchor uses IDLs produced by Rust to bridge over to Typescript for writing applications.
@djordjenikolic6560
@djordjenikolic6560 2 жыл бұрын
Heh thats the exact stack im learning right now. Well..Im also learning serverless rust
@hamcillus6678
@hamcillus6678 2 жыл бұрын
I’d love to see a full rust tutorial, been thinking about the language recently and wanted to start off strong
@hedzikkrecik2334
@hedzikkrecik2334 2 жыл бұрын
Yes, I'd love to see a rust tutorial! Especially one where you raid other people and show us base designs.
@eklavyachandra
@eklavyachandra 2 жыл бұрын
1 hour course on Rust would be amazing
@rishadbaniya
@rishadbaniya 2 жыл бұрын
Really, u think 1 hr is enough to learn this complex language? Its just enough to add a spark to learn. Jonhoo's channel has been adding contents for hours and still its looks hard to get things clear
@nilstrieb
@nilstrieb 2 жыл бұрын
@@rishadbaniya And even Jon's channel assumes that you have a decent understanding of the language
@ezioauditore7636
@ezioauditore7636 2 жыл бұрын
Honestly, Rust is not intended for complete beginners who have no experience in programming. But if you have even a beginners-level of knowledge, you can totally learn Rust to proficiency just with the Book.
@eoussama
@eoussama 2 жыл бұрын
Yes, finally. Fireship is like Santa for adults, he's real, and active all of the year.
@charlesmitchell491
@charlesmitchell491 2 жыл бұрын
I knew rust was inevitable after the go video.. love these videos
@remofischer4969
@remofischer4969 2 жыл бұрын
Tutorial would be great! I always learn something new in your videos, even when I already knew the language or tool.
@stackoverflow2155
@stackoverflow2155 2 жыл бұрын
0:24 "most loved programming language" how easy it is to manipulate these polls.
@bruhgamer317
@bruhgamer317 2 жыл бұрын
rust is really cool, sad to see 41% of packages be abandoned
@VivekYadav-ds8oz
@VivekYadav-ds8oz 2 жыл бұрын
Most are small and niche in nature and contain as few as 2 or 3 source files. They were designed to a specific thing and once coded, don't generally need to be maintained after that. Hence no new commits, hence the feeling of "abandonment".
@GumowyKaczor17
@GumowyKaczor17 2 жыл бұрын
as always, topic I’m interested in gets it’s 100 seconds vid. Keep it up Jeff! 🔥
@nagarajansubramani
@nagarajansubramani 2 жыл бұрын
Jeff, I'm forever astonished by how quickly enough and how deeply enough you learn a new subject to be able to make such a detailed summary of it. I think the next video should be 'Learn how Jeff does it in 100s'. 🙂👍
@valizeth4073
@valizeth4073 2 жыл бұрын
Thing is, he doesn't. That's why so many of these videos contain inaccuracies or outright false statements.
@thiesemho
@thiesemho 2 жыл бұрын
"MOAR" (more) please, I would like to hear how to create an wasm file with Rust or how to create an project with own modules in itself 😉😁👍
@michaelespinoza4562
@michaelespinoza4562 2 жыл бұрын
My homework can wait.
@anthonycarella1779
@anthonycarella1779 2 ай бұрын
Typed "rust language" in the YT search hoping that a Fireship video would be one of the first vids to pop up. Did not disappoint.
@Silenoid
@Silenoid 2 жыл бұрын
I absolutely wish for an awesome long Rust video tutorial by you
@leastexpected3115
@leastexpected3115 2 жыл бұрын
You forgot to mention that variables can be "consumed" by functions, depending on how you pass them to functions in example
@OggerFN
@OggerFN 2 жыл бұрын
Full Rust tutorial please ;)
@ArielBenichou
@ArielBenichou 2 жыл бұрын
Yes, I'd love to see a full rust tutorial!
@kevinlao3690
@kevinlao3690 Жыл бұрын
Would definitely love to see a full Rust tutorial!
@zaouiamine6475
@zaouiamine6475 2 жыл бұрын
"If you would like a rust tutorial" Do you really think there is going to be someone to say no ? Xd
@kettenbach
@kettenbach 2 жыл бұрын
100% full rust Tut. Then full web assembly with Rust
@akshayiyer4980
@akshayiyer4980 2 жыл бұрын
Would love a full rust course with your explaination
@talhaibnemahmud
@talhaibnemahmud 2 жыл бұрын
Definitely need a full tutorial on this extremely loved tech
@saratchandramv1886
@saratchandramv1886 Жыл бұрын
Im not a CS guy into some developing :/ My boss asked me to have a perl kinda language alongside programming languages ( c++, c#). Because its essential he says. Will Rust work like a perl alternative?
@vervok
@vervok Жыл бұрын
No it's more the opposite of Rust, Perl uses a complete different type system. I would say give Python a try it has very good libraries and a nice community. I'm mostly using C/C++,C# and Python professionally.
@saratchandramv1886
@saratchandramv1886 Жыл бұрын
@@vervok oh. I should give a try to python then. Tried learning it once for a brief time.
@biqbicle4982
@biqbicle4982 Жыл бұрын
@@saratchandramv1886 python is a very easy language so i reccomend it
@jp46614
@jp46614 2 жыл бұрын
I don't think you would really build operating systems with a language designed to be ran under an operating system
@JohnTurner313
@JohnTurner313 2 жыл бұрын
Excellent. Would love to see a "build a chat app w/ Rust and Web Assembly" or similar as a followup to both "Rust in 100 seconds" and "WASM in 100 seconds".
@qazyhn94
@qazyhn94 2 жыл бұрын
I would like to see a full rust tutorial like we had an article about Go! Thank you!
@unfortunatewitnessX
@unfortunatewitnessX Жыл бұрын
So.....when IS the Rust tutorial? You promised that if we liked this video and subscribed to your channel, we would learn how to program in Rust. I wouldn't mind coding games on it!
@privateinformatics6584
@privateinformatics6584 2 жыл бұрын
I was forced to learn Rust in uni and by god, I have coded in LISP, Basic C, C#, C++, java, gdscript, python, javascript, css/html and php, and no language has ever gotten close to being as confusing, obtuse and illegible as Rust (though python is stiff competition in the illegible category). It's cool that this language is so popular, so there's enough people out there willing to use it so that noone can force me to touch that accursed crustacean ever again.
@MOMIN5
@MOMIN5 2 жыл бұрын
was really looking forward to this, thanks for the video!
@splash_frack0275
@splash_frack0275 2 жыл бұрын
I am writing a blog while learning rust, with the rustlings and I was reading about the "ownership", I think that the owner and the dog explains a lot. If I can use it in the next blog 😅 BTW I always see your videos, love it.
@chrisdaman4179
@chrisdaman4179 Жыл бұрын
This video is in violation of The Foundation's marks
@tentrot4420
@tentrot4420 2 жыл бұрын
Blazor in 100 seconds pwease
@kuntaldas2843
@kuntaldas2843 2 жыл бұрын
you explained the memory ownership and borrowing in so simple terms that even I could understand it.
@simondoesstuff
@simondoesstuff 2 жыл бұрын
A rust tutorial in depth would be great. I would like a deeper understanding of the borrow system.
Dart in 100 Seconds
2:31
Fireship
Рет қаралды 812 М.
Rust for the impatient
10:43
No Boilerplate
Рет қаралды 632 М.
How to open a can? 🤪 lifehack
00:25
Mr.Clabik - Friends
Рет қаралды 9 МЛН
skibidi toilet 73 (part 2)
04:15
DaFuq!?Boom!
Рет қаралды 18 МЛН
Rust vs C++
7:18
conaticus
Рет қаралды 42 М.
I spent six months rewriting everything in Rust
15:11
chris biscardi
Рет қаралды 373 М.
All Rust features explained
21:30
Let's Get Rusty
Рет қаралды 269 М.
Why do developers hate Rust?
8:20
Let's Get Rusty
Рет қаралды 85 М.
I tried 10 code editors
10:28
Fireship
Рет қаралды 2,8 МЛН
why rust libraries may never exist.
7:26
Low Level Learning
Рет қаралды 208 М.
C++ vs Rust: which is faster?
21:15
fasterthanlime
Рет қаралды 362 М.
How programmers flex on each other
6:20
Fireship
Рет қаралды 2 МЛН
Why i think C++ is better than rust
32:48
ThePrimeTime
Рет қаралды 254 М.
Why JavaScript Devs are Switching to Rust in 2024
10:35
warpdotdev
Рет қаралды 237 М.
phone charge game #viral #tranding #new #reels
0:18
YODHA GAMING RAAS
Рет қаралды 8 МЛН
Почему сканер ставят так не удобно?
0:47
Не шарю!
Рет қаралды 805 М.
Как открыть дверь в Jaecoo J8? Удобно?🤔😊
0:27
Суворкин Сергей
Рет қаралды 931 М.
Phone charger explosion
0:43
_vector_
Рет қаралды 33 МЛН
Опасная флешка 🤯
0:22
FATA MORGANA
Рет қаралды 608 М.
All New Atlas | Boston Dynamics
0:40
Boston Dynamics
Рет қаралды 5 МЛН