Deep .NET: A Complete .NET Developer's Guide to Span with Stephen Toub and Scott Hanselman

Поделиться
HTML-код
  • Опубликовано: 31 янв 2025

Комментарии • 169

  • @marklord7614
    @marklord7614 8 месяцев назад +124

    Man, these guys are killing it with the series -- great topics.

    • @watherby29
      @watherby29 25 дней назад

      is there a playlist with all the episodes?

  • @1camper69
    @1camper69 8 месяцев назад +38

    These talks from Stephen are truly the best dotnet content available. Stephen has the knowledge and goes next level in explaining it extremely clear but simple and is just a joy to listen to.

  • @barrysphone
    @barrysphone 8 месяцев назад +34

    This series is awesome, please keep it going for a long time. Stephen's knowledge is incredible and his enthusiasm is infectious. The dynamic between Scott and Stephen make this series unmissable.

  • @The.WorldVentures
    @The.WorldVentures 8 месяцев назад +74

    How does someone even become as great as Stephen Toub, man the guy knows his stuff.

    • @jackkendall6420
      @jackkendall6420 8 месяцев назад +15

      You do it as your fulltime job for multiple decades, haha.

    • @kaolyfe-cw2cm
      @kaolyfe-cw2cm 8 месяцев назад

      Pray enough to the coding gods...j/k 😄

  • @CuriouslyContent
    @CuriouslyContent 8 месяцев назад +27

    I can't get enough of this content :) Who would have thought that an hour long video on spans is literally the most exciting thing on my feed this week!

  • @GaryFrancis-q3r
    @GaryFrancis-q3r 8 месяцев назад +38

    This series of videos featuring Stephen Toub is truly remarkable and incredibly interesting. Thank you!

  • @Tamazakis
    @Tamazakis 8 месяцев назад +40

    TimeSpan well spent! Thank you :)

  • @FICHEKK
    @FICHEKK 8 месяцев назад +16

    Learning from Stephen Toub is such a pleasure, man is a .NET master!

  • @fieryscorpion
    @fieryscorpion 8 месяцев назад +8

    This is amazing!
    Now I need a video on Multithreading and Parallel Processing from Scott and Stephen!

  • @that_rendle
    @that_rendle 8 месяцев назад +11

    It's crazy how simple Span is on the inside considering the impact it's had on .NET in recent years.

  • @mukeshbisht54
    @mukeshbisht54 8 дней назад

    please do not stop making this kind of videos , this is awesome

  • @BryanKelly
    @BryanKelly 8 месяцев назад +10

    How does Span relate to Memory? I'd love to see a follow up to this that gets into that detail.

    • @user-dc9zo7ek5j
      @user-dc9zo7ek5j 7 месяцев назад +7

      Memory is on the heap, Span is stack only. You can use Memory just like any other non-ref type, but Span can be used only within the function. Also, Memory can be used in async await, while the other cannot (because of stack only constraint). Memory behaves like Span, but it is much closer to ArraySegment without being array only type. I don't think I have used this type anywhere, but I have seen it being used around the Stream class.

  • @lstutzman
    @lstutzman 8 месяцев назад +9

    Fantastic content guys!! Can’t wait for the next one. A deep dive into the GC would be cool

  • @behboodik
    @behboodik 8 месяцев назад +7

    Every video with Stephen in it is a treasure

  • @kinsondigital
    @kinsondigital 2 месяца назад

    Simply amazing! Love it. More of these deep dives will be invaluable. Keep up the excellent work!

  • @DavidPereira-lc1yq
    @DavidPereira-lc1yq 8 месяцев назад +1

    This is freaking awesome!!! Right from the source, you should build a comprehensive "deep C# course" with all of this, for people that would like to purse perf related topics. Right now, I don't think there's a place where you can do that. It's basically spread around books, courses, blogs, etc etc.
    Really nice this one.

  • @sanampakuwal
    @sanampakuwal 8 месяцев назад +9

    WOW!!! Love these series, please don't stop!

  • @ElSnakeObwb
    @ElSnakeObwb 8 месяцев назад +28

    Love this series. keep it up

  • @SlackwareNVM
    @SlackwareNVM 8 месяцев назад +3

    I'm interested in the meaning behind that last constructor check. Also, what are the tradeoffs from the alternative implementations you mentioned?
    Would love to know more about Memory as well. I don't yet have proper intuition of how to use it.

  • @fatlumlatifi2897
    @fatlumlatifi2897 8 месяцев назад +2

    Excellent video, please keep Mr. Toub on a few more episodes. As of topics to cover if possible please make video on how to interop or preferably make binding of C libraries on .NET.

  • @lejoyke
    @lejoyke 8 месяцев назад +1

    Although I don't understand some things, I still feel excited. Please continue to keep up

  • @weird_wyrd
    @weird_wyrd 8 месяцев назад +2

    That floppy drive jumper comparison got me. The assembly I could follow, ain't never heard of a jumper before. Today I learned a couple things! Great content!

    • @OlivierDALET
      @OlivierDALET 7 месяцев назад +1

      Jumpers were a little switch on 3'1/2 floppy discs that revealed or hid a hole: very modern tech compared to the little adhesive tape you had to stick on 5'1/4 discs to achieve the same (that is write-protect your disc)

  • @onodera3964
    @onodera3964 8 месяцев назад

    Great series, loving it. Some of the topics I would love to see covered next:
    - how equality works (intermediate)
    - how the allocator and and the GC work (expert)
    - how exceptions work (expert)
    - how analyzers work
    - how generators work
    - how JIT works

  • @allied-data
    @allied-data 8 месяцев назад +3

    Scott and Stephen: Outstanding series!

  • @apostolosmihailidis5467
    @apostolosmihailidis5467 5 месяцев назад

    These guys taught us so many things in that small "Span" of time ! Thanks a lot 🙏 Stephen's knowledge is so valuable !

  • @amrswalha
    @amrswalha 8 месяцев назад +4

    Scott and Stephen are doing a great job, all the best.

  • @draganradovac8803
    @draganradovac8803 8 месяцев назад

    Scott and Stephen are a great combo. Looking forward to future presentations.

  • @freierNamen
    @freierNamen 8 месяцев назад +1

    Oh no, it happened again!
    The video is over and I've already seen all parts of the series😢😂
    Thank you so much! Love every second of it...

  • @Matt-tp9lh
    @Matt-tp9lh 8 месяцев назад

    Awesome series! Please do a video on the async runtime of c# next about how the default task scheduler works, especially interested in knowing how tasks get scheduled and as developers using the async runtime how do we avoid common pitfalls of inefficient patterns

  • @delphiguy23
    @delphiguy23 8 месяцев назад +2

    I saw Stephen Toub, I clicked.... freaking awesome presentation learned a lot from this.

  • @mey33am
    @mey33am 8 месяцев назад +1

    Keep posting Stephan! We need more content like this, Thank You

  • @CRBarchager
    @CRBarchager 7 месяцев назад

    I need to watch more of these videoes. It's just pure gold!

  • @WantMore-mc8dx
    @WantMore-mc8dx 6 месяцев назад

    Great duo - love it that Scott wants it zoomed in :)

  • @WizardofWestmarch
    @WizardofWestmarch 8 месяцев назад

    At 38:48 Toub is talking about how if you have a readonly span it will put it in the data block of the binary. Do things like ImmutableArray get the same benefit or is the JIT compiler extra aware of ReadOnlySpan to do that optimization?

  • @superpcstation
    @superpcstation 8 месяцев назад +5

    Please don't stop making these!

  • @BloodHaZaRd666
    @BloodHaZaRd666 8 месяцев назад +100

    Like video at 0 seconds just because of @Stephen Toub

    • @aweklin
      @aweklin 8 месяцев назад +5

      Not you alone. I did exact same thing, because it's the wizards show!

    • @AvenDonn
      @AvenDonn 8 месяцев назад +4

      Like this comment at 1 second because I had to stop to like the video first because of Stephen Toub

  • @nimce4u
    @nimce4u 2 месяца назад

    Was amazing to watch, thank you and keep up the great work!

  • @TheChonsey
    @TheChonsey 8 месяцев назад +10

    Awesome content. Please make a video on System.IO.Pipelines

    • @caunt.official
      @caunt.official 5 месяцев назад

      I hate that .NET Pipelines are all about numbers. What I would like to see, is pipeline of T, so I can have abstraction for any pipeline I want to build

  • @SajadJalilian
    @SajadJalilian 8 месяцев назад

    Dotnet has many layers of abstractions in a good way. They are like magic. Watching this series is like those videos in which a magician explains how they are doing their tricks under the hood. I love it.

  • @MehrdadSoltani-qn2ny
    @MehrdadSoltani-qn2ny 8 месяцев назад +2

    one of the best demo/tutorials I have ever seen about Span.

  • @DavidSmith-ef4eh
    @DavidSmith-ef4eh 7 месяцев назад

    I didn't plan on watching this til the end... very interesting and very well presented.

  • @LasseVågsætherKarlsen
    @LasseVågsætherKarlsen 8 месяцев назад +1

    Man, you guys nailed it as usual, absolutely love these videos. GC next? 🙂

  • @dy0mber847
    @dy0mber847 8 месяцев назад +5

    Incredible as always

  • @alexisfibonacci
    @alexisfibonacci 8 месяцев назад +3

    I haven't seen Bart De Smet in years. Is he available to talk about IObservable? Why has there been less emphasis on it in recent times? Also IQbservable..

  • @colhountech
    @colhountech 8 месяцев назад +1

    Best Content On youtube today. I love the relaxed page and the high intensity content. It's almost an anti pattern of all the click-bate, gapless, b-roll crap on youtube today.
    If stephen does a workshop of stuff like this in NDC London next year, I'll drop $2000 to attend like when Dave and Damiean did the early workshops on .net core in circa 2017.

  • @lordtony8276
    @lordtony8276 8 месяцев назад +10

    "Have you got anything without Span?"
    "Well, there's Span Span List and Span, that's not got much Span in it."

    • @p.j.wilkins1321
      @p.j.wilkins1321 8 месяцев назад

      Lobster Thermidor aux crevettes with a Mornay sauce, garnished with truffle pâté, brandy, and a fried egg on top, and Span.

  • @SimoLPers
    @SimoLPers 8 месяцев назад

    The series is really great! Thanks for sharing! ME me I'd personally love to see how what lies under the hood of reflection.

  • @ChaoticNeutral6
    @ChaoticNeutral6 8 месяцев назад

    That was wild, I definitely want to see a part 2. Would also be cool to go through stuff like MemoryMarshall and its methods

  • @solidusflux
    @solidusflux 7 месяцев назад +1

    Excellent content. Also: these light mode users bring balance to the force

  • @fedayka
    @fedayka 8 месяцев назад +1

    The worst thing about this show is its time constraint! Great content guys! Amazing :)

  • @levimatheri7682
    @levimatheri7682 8 месяцев назад

    Stephen Toub is my spirit animal. So smart!

  • @deivycode
    @deivycode 7 месяцев назад +1

    Where we can learn this kind of stuff is actually very amazing.

  • @sgwong513
    @sgwong513 8 месяцев назад

    its the only video I need to watch to learn what is Span in .net

  • @preet1979
    @preet1979 8 месяцев назад +1

    This was a great video. All I need now is another deep dive video into Memory to complete my understanding of it. Thanks again for such a great video.

  • @JeffChentingwei628
    @JeffChentingwei628 15 дней назад

    It's cool to see "Unsafe" in Span.

  • @wimzi9887
    @wimzi9887 8 месяцев назад +2

    I wanna watch Stephen build a complex project from start to finish. I would love to see how he works.

  • @JavedaliShaikh-yy1jr
    @JavedaliShaikh-yy1jr 8 месяцев назад

    Just Brilliant! Keep making more of these.. Thanks.

  • @chaouanabil3087
    @chaouanabil3087 7 месяцев назад

    it was from a month and didn't see it till today!!! i hope next one would be Memory and Pipes and Channels

  • @GuildOfCalamity
    @GuildOfCalamity 8 месяцев назад

    Keep doing these with Stephen; would like to see more roll-your-own content, like the Async/Task video.

  • @norm6096
    @norm6096 8 месяцев назад +2

    You guys are awesome combo, thanks for the videos! :)

  • @davidelettieri
    @davidelettieri 5 месяцев назад

    Keep this series going!

  • @schlott1970
    @schlott1970 8 месяцев назад +1

    My biggest question was how, using span, was the compiler able to keep such a tight loop when enumerating? Also could have mentioned that span does not allocate any memory or copy stuff around! This was a good one Scott/stephen! Thankyou

    • @davidantolingonzalez4929
      @davidantolingonzalez4929 8 месяцев назад +1

      It does allocate memory for the Span (two fields), but it does on the stack, not on the heap. Also, since it only stores an address of memory and an int, no copy of data is needed.
      The tight loop is achieved because T reference is basically a pointer so for enumerating the only thing it has to do is add "one" to the pointer times length, exactly the same as an array.

  • @gilbertsenyonjo963
    @gilbertsenyonjo963 4 месяца назад

    Good stuff! Loved it. Thank you dotnet team.

  • @tayyabshaikh3286
    @tayyabshaikh3286 8 месяцев назад

    Pure Knowledge Sharing.. & No dumb podcast like others.. Truly Marvelous.

  • @AskFiqri
    @AskFiqri 8 месяцев назад

    This is a treat

  • @rodrigolima206
    @rodrigolima206 8 месяцев назад

    Very nice explanation thanks a lot. I would like to see something related to streams and how they work I was always curious about that. If possible, of course. Thanks again .

  • @tirgo007
    @tirgo007 8 месяцев назад

    Great stuff! Looking forward to the next one.

  • @KvapuJanjalia
    @KvapuJanjalia 8 месяцев назад

    Looking forward to deep dives into memory of T, sequence of T, pipes and buffers.

  • @heischono4917
    @heischono4917 8 месяцев назад

    I wonder what Scott is using a floppy for? :D Wonderful video, I hope we get more f this kind. Greetings from Norway :)

  • @imranhussain8700
    @imranhussain8700 8 месяцев назад

    Async/Await
    LINQ
    RegEx
    Span
    😀😀😀😀😀😀😀😀😀😀😀😀😀😀
    Loving it.
    Thank you very much. Great Content.

  • @SlackwareNVM
    @SlackwareNVM 7 месяцев назад +1

    Any continuation of the series coming soon?

  • @enijburg
    @enijburg 8 месяцев назад

    Another great session! Keep them coming 🎉

  • @hashdynamics978
    @hashdynamics978 8 месяцев назад

    my new favorite tv show. Love it!

  • @anm3037
    @anm3037 8 месяцев назад

    Any interface for all collections (Array, List, etc) that can be converted to Span

  • @AndrzejPauli
    @AndrzejPauli 8 месяцев назад

    StephenT and ScottH - nothing is better 🙂

  • @piotrszuflicki1527
    @piotrszuflicki1527 6 месяцев назад +1

    When will we see next episode from Deep Dive series?

  • @timur2887
    @timur2887 8 месяцев назад

    Thank you very much! Great content!

  • @parsalotfy
    @parsalotfy 2 месяца назад

    is the keyword const implemented by readonlyspan? I mean that will only makes sence if it does. because const double Pi=3.14 is not supposed to change. right?

  • @allied-data
    @allied-data 8 месяцев назад

    Riffing off "Naming is hard":
    Spam
    Hmmm.

  • @StackOverflowMan
    @StackOverflowMan 8 месяцев назад

    "readonly ref struct" appears in C# 8, while Span appreared earlier in .net core 2, and than Span was just a struct.
    Would be interesting to see how it evolve.

  • @theandrewharry
    @theandrewharry 7 месяцев назад

    I wish I could like this 💯 times

  • @uitumenj8380
    @uitumenj8380 8 месяцев назад

    I’m value added :))) thank you guys!

  • @YuriBez2023
    @YuriBez2023 8 месяцев назад +1

    @37:11 - Stephen's fingers were off-by-one there.

  • @djchrisi
    @djchrisi 8 месяцев назад +1

    28:30 unsafe ist really a great keyword because it truly scares developers off ;)

  • @lis2889
    @lis2889 7 месяцев назад

    Hi! Thanks for the video! Could you please record similar one about GC. Please 🥺

  • @kamlezadeh
    @kamlezadeh 8 месяцев назад

    Can we have a video explaining ArrayPool and MemoryPool please?

  • @Муслим-с2щ
    @Муслим-с2щ 8 месяцев назад +3

    Like in the good old days of Channel 9 👍

  • @JakobStrasser
    @JakobStrasser 8 месяцев назад

    Thanks, very informative!

  • @dy0mber847
    @dy0mber847 8 месяцев назад

    Show must go on

  • @davidmasterson883
    @davidmasterson883 8 месяцев назад

    I just love these videos!

  • @watherby29
    @watherby29 25 дней назад

    Ok, so I will go back to allocating an array at the top of the file and using Spans later on. I feel super comfortable going back to when it was the right thing to do 😂

  • @robl39
    @robl39 8 месяцев назад

    Can you guys please deep dive the csc or the CLR?

  • @ivandrofly
    @ivandrofly 8 месяцев назад

    34:31 - Pause
    39:00 - utf8 syntax from c# 11

  • @kapsir7255
    @kapsir7255 7 месяцев назад

    Big thanks for the Deep .NET series, these are sooo great 🚀
    One question regarding Span: Are there as many improvements in the compiler for netfx as in .NET too? Is it worth to update APIs in legacy code with the System.Memory NuGet package?

  • @ivandrofly
    @ivandrofly 8 месяцев назад

    At the beginning of the video, while using Rider and I'm like it's still hard to see the IL code in Visual Studio 😆😆

  • @mrqbboy
    @mrqbboy 8 месяцев назад

    I'm going to repeat myself, but thanks Scott and Stephen.

  • @nessitro
    @nessitro 8 месяцев назад

    I love this! Tanmirt!

  • @lolroflxd
    @lolroflxd 8 месяцев назад +1

    Awesome ❤

  • @moverecursus1337
    @moverecursus1337 6 месяцев назад

    well, this is awesome

  • @Corvinaification
    @Corvinaification 8 месяцев назад

    Amazing!