Google I/O 2013 - Advanced Go Concurrency Patterns

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

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

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

    sucks when you see "naive impl" slides and think "damn, that's exactly how i would've impl'd it".

  • @vimfrw
    @vimfrw 7 ปีที่แล้ว +15

    Need more of talks like this :)

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

    Sometime I really don't understand why the fact there are many Go Developer, but some advanced in Go tutorials, introductions, ... was lack of viewers...

  • @edwardanugent
    @edwardanugent 6 ปีที่แล้ว +31

    It would have been nice if you could keep the code up there a while. I do not need to see the speaker so much, I need to see the code.

    • @hammadulhaq1640
      @hammadulhaq1640 8 หลายเดือนก่อน

      you could just pause uk

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

    The improved Close() can only be called once, any further calls will block forever. What's the preferred solution to this, sync.Once?

  • @bawzzzz
    @bawzzzz 10 ปีที่แล้ว +65

    Keep the focus on the slides. So annoying...

  • @CactusFF-d1x
    @CactusFF-d1x 5 ปีที่แล้ว +9

    "Responsive. Cleans up. Easy to read and change." The code is easy to read???

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

      yes

  • @mitinarseny
    @mitinarseny 5 ปีที่แล้ว +7

    Can anyone send a link to full example code, please?

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

      It's year later, but here they are
      talks.golang.org/2013/advconc.slide#38

  • @nobody-uwueueue
    @nobody-uwueueue 4 ปีที่แล้ว +5

    github repo: github.com/golang/talks/tree/master/content/2013/advconc

  • @mohokhachai
    @mohokhachai ปีที่แล้ว

    So how many mainthread 5 or 10 that you switch between

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

    Should show the complete code as I don't quite follow.

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

    damn I am 1 decade late

    • @uwiscs8455
      @uwiscs8455 8 หลายเดือนก่อน +3

      It's amazing that this talk is still very informative.

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

    21:45 if there is a new fetch all the time wouldn't that delay returning updates, since both cases are active at the same time?

    • @_fRiction_
      @_fRiction_ 10 หลายเดือนก่อน

      Very late to the party here, but nevertheless; if you go to 18:57 you can see that the startFetch channel is derived from the variable next, which is governed by what is returned from s.fetcher.Fetch() where the fetcher is of type Fetcher which comes from an external rss package. So to distill it down, the startFetch is a directly a function of Fetcher.Fetch() which we trust for giving us the correct interval of fetching the RSS feeds (see 6:45 for the Fetcher.Fetch() signature).
      Therefore to answer your question, if the fetch is very frequent then yes in some cases it might delay returning updates (I say might because select chooses a case to run at random if more than one case is non-blocking, so the update function will be called more times than we expect it to under very frequent fetch requests), but the code in the video above won't behave that way (as we are trusting the rss packages Fetch behavior).

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

    The s.close() and s.closed is shown nowhere in the slides. and where is the code repo? I only see the slides link.

  • @家宝林-z1f
    @家宝林-z1f 2 ปีที่แล้ว

    why the pipeline model is meged the multiple channels to one ,not multiple subscription items write to one global channel at once. I think this can simply this pipeline
    model

  • @i.pratikdhanave
    @i.pratikdhanave 6 ปีที่แล้ว +1

    great talk

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

    you know what would be nice? 7 year later... to have a 2x, 3x accelerator in youtube client...

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

    mind blowing

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

    super

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

    nice! thanks

  • @ismaelgrahms
    @ismaelgrahms 8 หลายเดือนก่อน

    👌🏾👌🏾

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

    What the hell happened!!