Rust Lifetimes

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 พ.ย. 2024

ความคิดเห็น • 221

  • @scottb4029
    @scottb4029 9 วันที่ผ่านมา +1

    Doug, I have finished chapter 10 and beginning 11 in the Rust Book. I have listened to all of your Rust tutorials. Thank you, after a stroke and disability from chronic pain, it has taken 2 years to get here. I can listen and understand all of them now. They are great. They have not only gifted me with knowledge,they have given me many hours of distraction from my abdominal pain. I just wanted you to know that. And again, thank you from the bottom of my heart. Your friend, Scott.

  • @mazharansari4156
    @mazharansari4156 4 ปีที่แล้ว +211

    This is the best explanation of the lifetime concept that I found on TH-cam.

    • @dougmilford7814
      @dougmilford7814  4 ปีที่แล้ว +19

      Hey, thanks :)

    • @Mephistel
      @Mephistel 4 ปีที่แล้ว +9

      Easily! I wish I had this when trying to learn the first time around, this makes things much clearer.

    • @dougmilford7814
      @dougmilford7814  4 ปีที่แล้ว +16

      Yaaayyyyy!!! I'm glad people are getting so much benefit from this video!

    • @karuma1959
      @karuma1959 4 ปีที่แล้ว +13

      Absolutely! Thanks Doug, for putting so much work into your Rust tutorials. I've seen tutorials from other people before but this is by far the best! I will definetly recommend it !!!

    • @dougmilford7814
      @dougmilford7814  4 ปีที่แล้ว +7

      @@karuma1959 Awesome! Thanks for helping my channel gain traction. I appreciate it :)

  • @ajinkyax
    @ajinkyax 4 ปีที่แล้ว +66

    hands-down the best RUST videos for beginners on youtube.

  • @phamucmanh1750
    @phamucmanh1750 2 ปีที่แล้ว +2

    I love the way you explain the details of Rust, satisfy me a lot

  • @joyboy4208
    @joyboy4208 ปีที่แล้ว +8

    Even after 3 years, this is still the best explanation there is to rust lifetimes, any chance we'll be seeing a smart pointer, declarative and procedural macros explanation?

  • @kid_kulafu_1727
    @kid_kulafu_1727 3 ปีที่แล้ว +1

    I read the rust book over and over and didn't understand it until I watched this video. Thank you sir!

  • @bhanuprasad72
    @bhanuprasad72 3 ปีที่แล้ว +2

    The best explanation on Lifetimes. I referred a Oreilly book, a nostarch book and spent a entire day. Could not comprehend. This video did it.

  • @eloylp6012
    @eloylp6012 2 ปีที่แล้ว +3

    2 years ago. Still helping people. Thanks a lot !

  • @VladimirDjokic
    @VladimirDjokic 10 หลายเดือนก่อน +2

    Rustaceans don't look any further, this is the best explanation there is to rust lifetimes!!!

  • @synthguy0428
    @synthguy0428 4 ปีที่แล้ว +12

    this is by far the most comprehensive explanation of rust lifetime I have ever seen.

  • @mau5mat
    @mau5mat 8 หลายเดือนก่อน +1

    Incredible resource for this topic here, thank you for your time!

  • @abhisheksinha9027
    @abhisheksinha9027 2 ปีที่แล้ว +1

    I would have quit Rust without this channel. Thank you Doug!!

  • @rallokkcaz
    @rallokkcaz 4 ปีที่แล้ว +6

    Only a few minutes in and it's already more clear than most guides on the net. Thanks!

  • @nikhilsharad9553
    @nikhilsharad9553 ปีที่แล้ว +1

    Hey Doug, this is really helpful. Could you please make a video explaining the Smart Pointers in Rust?

  • @DSaad
    @DSaad ปีที่แล้ว +1

    This is the most comprehensive and clear explanation of the concept of lifetime that I have come across on TH-cam. Thanks a lot!

  • @kevinwang6188
    @kevinwang6188 3 ปีที่แล้ว +25

    This is absolutely the best explanation of Rust Lifetimes I've found, either on TH-cam, online Tutorials or books. Thanks for delivering such a wonderful tutorial video!

  • @yurikolovsky
    @yurikolovsky 3 ปีที่แล้ว +1

    The best explanation I've found on youtube and outside of youtube. Lifetimes never clicked until now, thank you so much!

  • @glennwaters1874
    @glennwaters1874 3 ปีที่แล้ว +1

    I have to agree with many of the comments already here... best explanation I found of lifetimes. I think that possibly, maybe, could be that I might understand lifetimes now ;) Thanks Doug!

  • @samighasemi3333
    @samighasemi3333 3 ปีที่แล้ว +1

    I've read the chapter 10 of the Rust Programming Language book, but I found the best explanation here.
    Thank you so much!

  • @SaHaRaSquad
    @SaHaRaSquad 4 ปีที่แล้ว +5

    Fantastic explanation, especially by showing the "unnecessary" parts that the compiler usually does automatically. It helped me fix my TryFrom implementation within a minute, and it's much clearer to me now.

    • @dougmilford7814
      @dougmilford7814  4 ปีที่แล้ว +2

      Whoo hoo!!! So glad the video helped :)

  • @michalbotor
    @michalbotor ปีที่แล้ว +1

    this is absolutely brilliant!
    i had no idea that every reference has a lifetime, that it is implicitly inserted, and that it is different for every reference.
    knowing this makes rust lifetimes a much easier topic to understand and handle. it is also quite logical.
    thanks a lot!

  • @rohankapur5776
    @rohankapur5776 3 ปีที่แล้ว +6

    what a fantastic coverage of lifetimes in rust. I'm here after reading the section in the rust book and watching this cleared up most of the issues I had with what I read in the book. thank you for this!!!

  • @bagwaa9948
    @bagwaa9948 2 ปีที่แล้ว +1

    Literally the best video or explanation I've seen on lifetimes, including all the usual rust books I've read, thank-you!

  • @imjasonmiller
    @imjasonmiller 4 ปีที่แล้ว +20

    Doug, your videos are a fantastic resource! Thank you and have a great day!

    • @dougmilford7814
      @dougmilford7814  4 ปีที่แล้ว +4

      You're very welcome! Thanks for the support :)

  • @GoblinGreen911
    @GoblinGreen911 3 ปีที่แล้ว +3

    thank you for blessing us with your divine intellect.

  • @theblacktiger59
    @theblacktiger59 ปีที่แล้ว +1

    The whole serie on Rust is greatly educational ! Very clear explanation, straight to the point, best tutorials on Rust I have found. Thank you for the great content !

  • @akankshasaini9980
    @akankshasaini9980 4 ปีที่แล้ว +1

    Exactly what I needed. So many examples, fast enough so I don't get bored.

  • @sherajussalehin868
    @sherajussalehin868 4 ปีที่แล้ว +2

    Dough, you’re doing a fantastic job with these videos. I usually prefer written materials but when the book doesn’t explain something clearly, your video is usually the answer.

  • @meekmtck5917
    @meekmtck5917 3 ปีที่แล้ว +1

    Agreed, best lifetime tutorial on the tubes

  • @Davidicus000
    @Davidicus000 9 หลายเดือนก่อน +1

    Very nice! Thank you.

  • @thesuperyou2829
    @thesuperyou2829 3 ปีที่แล้ว +1

    Well Mr Doug Milford from Lamda valley .. you are one hell of a teacher..

  • @ehsankhorasani_
    @ehsankhorasani_ 2 ปีที่แล้ว +1

    Thank you very much! that was really helpful.
    This is actually the best explaintion of lifetime in whole internet

  • @kvngve8879
    @kvngve8879 4 ปีที่แล้ว +9

    I learned a lot from this even after reading the rust book. Thank you!

  • @abhimanyu003
    @abhimanyu003 3 ปีที่แล้ว +1

    This video is pure gold, thanks so much.

  • @gouravkhator
    @gouravkhator 2 ปีที่แล้ว +7

    Since 3 days I was researching about lifetimes on the articles, and then I saw your video.. It is the only best explained resource that I could find on the internet..
    A simple thanks would not be enough to express the time and effort you saved me, learning this concept. And it is such a beautifully explained concept, that I hope that you don't delete this video, or make it private. I would be bookmarking this video on my notes app.

  • @phamucmanh1750
    @phamucmanh1750 2 ปีที่แล้ว +2

    Oh, amazing lesson, you saved my day. Thank you !

  • @annismonadjem6901
    @annismonadjem6901 4 ปีที่แล้ว +8

    Awesome! Doug's videos are of high quality and condensed with valuable content. Doug is a fantastic educator with unusual abilities to keep you up and focused. This video comes right on time and happens to be very helpful to me in `digesting` the notorious Rust Book. Thanks Doug.

  • @darrenchan9951
    @darrenchan9951 2 ปีที่แล้ว +1

    Thanks for clarifying on lifetimes, Doug.
    Hope you’re doing well since I haven’t seen any recent videos.

  • @hojjat5000
    @hojjat5000 4 ปีที่แล้ว +2

    This was great. I tried a few videos, a few examples, and tried to read the Rust book. But this video was so clear, had many examples (much appreciated), not complicated, and to the point. I was able to follow along, write the codes myself, and take notes and not get tired, bored, or lost. Great job. Will come back for more.

  • @zeroows
    @zeroows ปีที่แล้ว +1

    Thank you for the great videos

  • @ManasTunga
    @ManasTunga 3 ปีที่แล้ว +3

    These videos of Rust by Doug Milford need to be in the official documentation of rust

  • @angelbythewings
    @angelbythewings 2 ปีที่แล้ว +1

    mithradates channel sent me here, and I am happy for it. This was beautifully explained

  • @techzoneplus
    @techzoneplus ปีที่แล้ว +1

    Excellent explanation, no need to check the documentation again for my lifetime 😀

  • @deckarep
    @deckarep 4 ปีที่แล้ว +4

    Great talk that helps to drive the intuitive understanding on Rust’s Lifetimes!

  • @brachypelma24
    @brachypelma24 2 ปีที่แล้ว +1

    Thank you so much for your excellent Rust content, Doug. Your videos are the best guides to learning Rust I have found.

  • @HowdyhoNet
    @HowdyhoNet ปีที่แล้ว +2

    1:33 - Howdy, partner!)

  • @trevorcoleman9125
    @trevorcoleman9125 3 ปีที่แล้ว +1

    Terrific videos -- clear, well constructed, and weirdly entertaining. Thanks for these!

  • @njzz1801
    @njzz1801 ปีที่แล้ว +1

    most helpful video about lifetime

  • @yfchan7753
    @yfchan7753 4 ปีที่แล้ว +1

    You are the best teacher

  • @johnflux1
    @johnflux1 3 ปีที่แล้ว +2

    Really good, thank you. I would love a usecase where you'd WANT to have different lifetimes though.

    • @sachin__ak
      @sachin__ak 3 ปีที่แล้ว

      did you understand the part where he passed a const variable and a normal variable to a function with same lifetime 'a? const was outside the main function and has lifetime of the program and normal variable inside the function has a lifetime of main fn, how can that be equal? is it because main is the last function to exit the stack and the program ends so rust considers the variable declared inside main fn to be the same lifetime of 'static?

  • @krisspujats4058
    @krisspujats4058 4 ปีที่แล้ว +1

    These videos are seriously flattening the learning curve... Amazing... Thank you...

  • @shrestha0144
    @shrestha0144 2 ปีที่แล้ว +1

    What a beautiful explanation

  • @nurmohammed9642
    @nurmohammed9642 3 ปีที่แล้ว +1

    I watched every second of all your rust tutorial series. I would like if you make a video about . closure ( inline function ). Great Work!!!

  • @darrennew8211
    @darrennew8211 4 ปีที่แล้ว +1

    Very nice and clear lecture. At 15:20, I think it would be more appropriate to say that the lifetimes of the parameters passed in are known to outlast the function, because the caller (or someone up the call stack) has the ownership. I.e., it's not because you're not returning a reference, but because you can't deallocate the memory the input reference refers to from inside the function. You necessarily have to return from the function (and drop the reference) before the caller will have a chance to deallocate what the reference was pointing to. If you passed in both the reference and ownership, you could do that, but you wouldn't be able to because of the only-one-mutable rule.

    • @dougmilford7814
      @dougmilford7814  4 ปีที่แล้ว +3

      Hey, Darren, thanks! I appreciate it :)
      The Lifetime of reference parameters passed in for sure outlast the function. So I agree with you on that. If you never return the reference parameter via the output, though, I'm not sure you'll ever get a lifetime issue. Returning the reference is what causes the compile error because of the potential issue of using the resultant reference after memory gets cleaned up (lifetimes are always there in the background... it's just not necessary to make the developer handle them in many situations).
      I'm not 100% sure what you mean about passing in both the reference and ownership. But maybe I'm just not understanding.
      If I somehow misinterpreted your question/comment, let me know. I think you're trying to make a good point. I'm just not sure if I fully understand. Maybe if you gave an example that would help me understand?
      And, if I misspeak at some point, I appreciate when people catch me and correct it in the comments. I do my best to be thorough and correct, but now and then everyone has a slip of the tongue. So thank you for helping clarify if there's confusion :)
      Doug

  • @ianbrierley3233
    @ianbrierley3233 4 ปีที่แล้ว +1

    Thanks for the time and effort Doug.

  • @davidcodes009
    @davidcodes009 4 ปีที่แล้ว +2

    Thanks for the insightful explanations!
    I have been going through all of your Rust videos and your explanations are super clear and to the point.

    • @dougmilford7814
      @dougmilford7814  4 ปีที่แล้ว +1

      Hey, thanks! I'm glad you like them :)

  • @brandonlewis2599
    @brandonlewis2599 4 ปีที่แล้ว +1

    I don't know you could sub-type lifetimes. I don't think enough attention is called to this in the official documentation, and it didn't occur to me that *this* is how you disambiguate certain problems that come up. It's a feature that needs to get more attention when Rust lifetimes are discussed.

  • @adrian-colbert
    @adrian-colbert 3 ปีที่แล้ว +1

    Thank you! This really helped brush up on my skills!

  • @mateusmercer2280
    @mateusmercer2280 4 ปีที่แล้ว +2

    Thanks so much! Your explanation solved a lot of issues I've had with this topic.

  • @Njinx_
    @Njinx_ 4 ปีที่แล้ว +1

    You are a god amongst gods. Thank you for this excellent explanation.

  • @mageprometheus
    @mageprometheus 4 ปีที่แล้ว

    Hi Doug. I've watched all your videos and love the clarity of concept you produce. A natural teacher. Nameste.

    • @dougmilford7814
      @dougmilford7814  4 ปีที่แล้ว

      Thanks, Mage! I'm really glad you liked them :)

  • @jeffg4686
    @jeffg4686 3 ปีที่แล้ว +1

    This was good. Lifetimes are a pain at first, for certain. Thanks for the share.

  • @ClearerThanMud
    @ClearerThanMud 3 ปีที่แล้ว +1

    Great job. I'm going to share this with a new hire.

  • @kevinle4640
    @kevinle4640 4 ปีที่แล้ว +3

    Awesome. Your video tutorials are just awesome. Looking forward to and hoping your next topic is "Rust closures/lambdas". Don't forget to inject humors in your videos. They're great.

    • @dougmilford7814
      @dougmilford7814  4 ปีที่แล้ว +2

      Thanks! Currently working on Macros videos, but I'll move closures/lambdas up the list.

  • @pau1976
    @pau1976 3 ปีที่แล้ว +1

    Thank you so much for this! Very clear, and detailed, even good humor.

  • @horaciomlhh
    @horaciomlhh 4 ปีที่แล้ว +2

    really concise and practical explanation! thanks a lot!

  • @bennythetiger6052
    @bennythetiger6052 ปีที่แล้ว +1

    WOW, I finally undedrstand frickin lifetimes

  • @theanhmai3637
    @theanhmai3637 ปีที่แล้ว +1

    It's very clear, thank you.
    I am having trouble with Macros. Can you have a video to explain it?

  • @DwarkeshPatel
    @DwarkeshPatel 4 ปีที่แล้ว +2

    thid was super helpful. thank you!

  • @gustavoaveiro624
    @gustavoaveiro624 3 ปีที่แล้ว +1

    The best explanation!!

  • @RodPeg
    @RodPeg 4 ปีที่แล้ว +1

    Very thanks for your videos, your teaching skills are amazing. The best Rust learning content I found.

  • @MasterHigure
    @MasterHigure 4 ปีที่แล้ว +8

    Lifetimes are an integral part of any reference type, although it's often hidden. Any reference can easily be converted (downcast?) to a reference of shorter lifetime. That's why a single generic lifetime, like
    fn testtwo {
    one
    } else {
    two
    }
    }
    fn main() {
    let a = "hello";
    {
    let b = "world";
    {
    let c = test(a, b);
    println!("{}", c);
    } \\ c dies here
    } \\ b dies here
    } \\ a dies here
    works, even though there are three distinct lifetimes for the three variables. As a and b are passed into the function, a is downcast to a reference with the lifetime of b as it is bound to the variable one. This makes the inputs have the same lifetime, as required. The return therefore has the same lifetime: the lifetime of b. When the returned reference is bound to c, it gets downcast to have the lifetime of c.
    This isn't to disagree with anything you said. But I don't think it was mentioned explicitly, and coming to this realization is what made lifetimes in function signatures click for me.
    I do wish this video had existed two years ago, though. Would've helped me out a lot.

    • @dougmilford7814
      @dougmilford7814  4 ปีที่แล้ว +5

      You make a good analogy and it may be helpful to others struggling to understand the concept. Thanks!

    • @fastexpand
      @fastexpand 2 ปีที่แล้ว

      Thanks for this!

  • @priyanshu4016
    @priyanshu4016 ปีที่แล้ว +1

    this is owsome explaination , you can think to create the full course on rust on udemy or pluralsight , currently there is no course available which explain with this ammount of detials you shared . thanks for your effort

  • @thomasandolf7365
    @thomasandolf7365 4 ปีที่แล้ว +1

    it was a good basic explanation, but i felt some things were missing like the usage of lifetimes in impl blocks? You only touched structs in the end

  • @shivangrathore
    @shivangrathore 3 ปีที่แล้ว +1

    Very nicely explained!

  • @bobweiram6321
    @bobweiram6321 3 ปีที่แล้ว +1

    Well explained tutorial with concrete examples. I still don't understand why you would need more than one lifetime for a given function. One suggestion to help make the concepts clearer would be to define variables in different scopes and then pass them to a function as references and returning each one based on some condition. Moreover, it's also a bit odd that a function would be concerned with more than a single lifetime. Shouldn't the caller be responsible for managing the scope of the references it passes to the function? All the function should care about is alerting the caller the return value is no longer owned by the function.

  • @haz4205
    @haz4205 2 ปีที่แล้ว +1

    This was an amazing video, thank you so much

  • @felipelubedebraganca7678
    @felipelubedebraganca7678 4 ปีที่แล้ว +1

    Hi Doug, Your videos are helping me a lot.
    I'd suggest you to increase the font size. Thank you.

    • @dougmilford7814
      @dougmilford7814  4 ปีที่แล้ว +4

      Yeah, the Lifetimes video I totally goofed. I recorded the whole thing and only saw the issue right before I was about to publish. You're not the first to notice on this video that the font's too small.

  • @fbytgeek
    @fbytgeek 4 ปีที่แล้ว +2

    these series are too good. I would love to watch a video to learn more about you, how you got involved with Rust, how you learned it, etc. This is some quality content. So thanks!! Question: Do you have a plan to do any videos on Actix web?

  • @Czarmzy
    @Czarmzy 4 ปีที่แล้ว +1

    As a rust beginner, this makes sense to me. I would like to suggest a new video on Rc. As I understand it, it would allow me to not care so much about lifetimes at a small runtime cost but the usage patterns on the rust website seem unclear to me.

    • @dougmilford7814
      @dougmilford7814  4 ปีที่แล้ว +3

      Rc has it's uses. It has some drawbacks as well, such as having to being immutable unless you use something like RefCell. Also, it's single threaded, so if you needed to process something in parallel on multiple cores, it's not really going to help you.
      There's the multi-threaded counterpart to Rc called Arc. But that is not a magical cure. A deep understanding of concurrent and parallel processing is needed to properly utilize it.
      As I'm writing this, I'm realizing just how necessary it is to do a video on this stuff. So, thanks for asking about it! I'm currently working on a Macros video so that you can have code writing code. After that video, I think I'll swing back to this topic.

    • @darrennew8211
      @darrennew8211 4 ปีที่แล้ว +2

      @@dougmilford7814 +1 on a macros video. You have a great way of explaining things that ought be easier to understand. :-)

    • @dougmilford7814
      @dougmilford7814  4 ปีที่แล้ว +2

      You got it, my man! I'm on it :)

  • @webbhinton6842
    @webbhinton6842 3 ปีที่แล้ว +1

    this has taken me months to understand but i'm finally getting there I think

  • @simonstrandgaard5503
    @simonstrandgaard5503 3 ปีที่แล้ว +1

    Great walkthrough.

  • @ninjarogue
    @ninjarogue 2 ปีที่แล้ว

    wow you do a great a job at breaking down lifetimes, thanks

  • @KiffinGish
    @KiffinGish 4 ปีที่แล้ว +3

    Watched this video a couple times and still a bit confused, but a hundred times less confused about lifetimes than I used to be.

    • @dougmilford7814
      @dougmilford7814  4 ปีที่แล้ว +4

      Yeah, it's a very tricky topic. Except for creating Macros, I would say it's the toughest topic to wrap your head around in Rust. Hopefully you learned enough to at least be functional. I think a lot of learning it is running into situations and thinking about why you're getting a compile error.
      Let me know if you run into any specific situations that are giving you trouble and perhaps I can speak directly to that. Sometimes a specific example is what's needed to help clear the fog.

  • @Yasinaktimur
    @Yasinaktimur ปีที่แล้ว +1

    hello what is your rust debug extension name?

  • @alkymistendenmark
    @alkymistendenmark 4 ปีที่แล้ว +3

    Hey, great videos and nice job on the vocal recordings! You forgot to put a link to the memory management video in the description :) or maybe you didn’t think about it, but it would be nice!

  • @edfloreshz
    @edfloreshz 4 ปีที่แล้ว +1

    Doug, you've accomplished what The Rust Book failed to!
    Thanks so much for the explanation, subscribed!

    • @dougmilford7814
      @dougmilford7814  4 ปีที่แล้ว +1

      Hey, great! I'm glad you liked it so much :)

  • @gnorts_mr_alien
    @gnorts_mr_alien 2 ปีที่แล้ว +1

    very good explanation but the biggest mystery remains: when would giving different lifetimes to parameters be appropriate? In all examples with compiler errors, giving them the same lifetime fixes the issue. The compiler avoids doing that so there must be some cases where that would not be appropriate. I have seen no examples of that.

  • @samirbouakaz4518
    @samirbouakaz4518 4 ปีที่แล้ว +1

    Félicitation, les tutoriels sont excellents .. Merci

  • @sippy_cups
    @sippy_cups 4 ปีที่แล้ว +1

    this man is an absolute sav, tysm!

    • @dougmilford7814
      @dougmilford7814  4 ปีที่แล้ว +1

      Looks like you're getting a lot out of the videos. I'm glad!

  • @erlangparasu6339
    @erlangparasu6339 3 ปีที่แล้ว +1

    great tutorial thank u so much 🙏

  • @michalbotor
    @michalbotor ปีที่แล้ว +1

    (25:00) i have tried to create a struct with one reference field and it still gives a compile error saying that i need to provide it with an explicit lifetime parameter.
    why rust does not assume that the lifetime of the reference field is the same as the lifetime of the whole struct?
    i.e. why this:
    ```
    struct MyStruct {
    my_reference: &Vec,
    }
    ```
    does not get converted into this:
    ```
    struct MyStruct

  • @surafelfikru3348
    @surafelfikru3348 3 หลายเดือนก่อน +1

    Life times are simple. the only reason they are seen overly complicated by many is because this video does not have a clickbait thumbnail.

    • @surafelfikru3348
      @surafelfikru3348 3 หลายเดือนก่อน

      please use clickbait it will help so many 😂

  • @kikleine
    @kikleine 4 ปีที่แล้ว +2

    You're a life(time)saver!

  • @googiek9351
    @googiek9351 4 ปีที่แล้ว +2

    Doug, 'a is great, never knew, Thanks for sharing your insights.

    • @dougmilford7814
      @dougmilford7814  4 ปีที่แล้ว +2

      Sounds like you got some good stuff out of the video. I'm glad!

    • @googiek9351
      @googiek9351 4 ปีที่แล้ว +2

      @@dougmilford7814 definitely! meticulous thing explained in layman terms. thanks again.

  • @bernhardgodel8993
    @bernhardgodel8993 4 ปีที่แล้ว +1

    Closures and Multi-Threading
    Hi @Doug Milford, I've been watching all of you Rust videos to learn Rust. I also read "the book". But it is easier to learn watching you writing the code and explaining it.
    Do you have plans to make videos about closures in Rust and - what is most interesting for me - multi-threading?
    It is always said that Rust is the safest programming language when it comes to multi-threading because of the ownership and borrowing mechanisms. In the book there is a chapter about "fearless concurrency". But as said before, for me it is more beneficial to watch you explaining these things while writing a little program.

    • @dougmilford7814
      @dougmilford7814  4 ปีที่แล้ว +1

      Yes, that's certainly on the top end of my list to do. It's a very important topic. At the moment I'm swamped working on a new programming framework that utilizes Rust and allows web development without css and html. But I'm hoping to circle back to the videos soon. Thanks for watching!

  • @chrisnocker3437
    @chrisnocker3437 4 ปีที่แล้ว +1

    Thanks for the great explanation Doug!

  • @valinkdevr5520
    @valinkdevr5520 4 ปีที่แล้ว +2

    I love how you can write rust without even having to compile and check if everything works

    • @ajinkyax
      @ajinkyax 4 ปีที่แล้ว +1

      Thats vscode + Rust RLS -> using Rust Analyzer plugin

    • @secondaryaccount8155
      @secondaryaccount8155 4 ปีที่แล้ว +1

      @@ajinkyax Is rust analyzer available for VIM?

    • @evilmorty-tv1xs
      @evilmorty-tv1xs 4 ปีที่แล้ว

      @@secondaryaccount8155 yep! coc.vim + coc-rust-analyzer works like a charm !

  • @danvilela
    @danvilela 4 ปีที่แล้ว +2

    I am studying Rust and don’t even know why. But this is very interesting (and weird!)

  • @myyouaccounttube1024
    @myyouaccounttube1024 2 ปีที่แล้ว +1

    Awesome videos! Many thanks for your time and these truly valuable videos that you share with Rust community. And if there is any possibility to increase the font size of your editor (VScode) in your videos, much to the better.