‹ BackHN Continuity

Thread

Go Concurrency Distilled

402 points · 187 comments · chmaynard

  1. SamInTheShell · · focus · HN ↗
    The concurrency and threading in Go just feels like magic compared to every other language. I'm a goroutine addict and I refuse to be rehabilitated.

    Just from observations over the years, I don't think there's any other language quite like this, in terms of how things can end up happening in any thread.

    1. ackfoobar · · focus · HN ↗
      Kotlin's coroutines basically had the same API as Go's. But also the ability to confine some coroutines' execution into certain threads (e.g. UI main thread).

      Then they added structured concurrency, which roughly solves the same problem as Go's context, arguably more elegantly.

      1. h4x0rr · · focus · HN ↗
        Kotlins coroutines are super super super underrated imo. I loved working with them so much before ai. Fuck ai.
        1. slowhorse · · focus · HN ↗
          Sorry my ignorance, but what does AI have to do with you not being able to use kotlins concurrency model?
          1. h4x0rr · · focus · HN ↗
            Ai makes it not worth hand crafting source code anymore imo
      2. stevepotter · · focus · HN ↗
        I said it before and I’ll say it again - kotlin is the most fun programming language.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.