Go vs core.async, let's build and compare 2 simple applications

Sdílet
Vložit
  • čas přidán 8. 09. 2024
  • I continue my Go journey and now learning concurrency basics like goroutines and channels. It's funny because I was using Clojure core.async before, which is basically the same idea implemented as a library! Let's compare those two!
    Support the channel:
    Buy Me a Coffee www.buymeacoff...
    Ko-fi ko-fi.com/andr...
    CZcams / @andrey.fadeev
    PayPal paypal.me/andf...
    Follow me:
    LinkedIn / andfadeev
    X / andfadeev
    Substack blog.andreyfad...
    Telegram t.me/andreyfad...
    Github github.com/and...
    Instagram / andfadeev
    I'm truly grateful for your support, and thank you for watching! 🙏

Komentáře • 13

  • @andrey.fadeev
    @andrey.fadeev  Před 3 měsíci +3

    ☕ If you liked this video and want to support my channel, please consider buying me a coffee. Your contribution helps me create more content like this:
    👉 Buy Me a Coffee: www.buymeacoffee.com/andrey.fadeev
    👉 Ko-fi: ko-fi.com/andreyfadeev
    Please also subscribe to my other resources:
    👉 Substack: blog.andreyfadeev.com
    👉 Telegram: t.me/andreyfadeevchannel
    I'm truly grateful for your support, and thank you for watching! 🙏

  • @kosbarable
    @kosbarable Před 5 dny +1

    смотрю и понимаю насколько всё-таки синтаксис лиспов гениален, как ни крути этот с-подобный синтаксис, как ни улучшай, сколько новых языков не создавай на его основе, а лиспы всё равно выглядят круче!)

    • @andrey.fadeev
      @andrey.fadeev  Před 5 dny

      согласен, одно правило которые описывает весь синтакс :)

  • @MartinClausen
    @MartinClausen Před 3 měsíci +1

    Excellent stuff, very interesting to see this comparison.

  • @aspdof-wy7nj
    @aspdof-wy7nj Před 3 měsíci +1

    great, thanx for tutorial/explamation. Спасибо!

  • @romanostash822
    @romanostash822 Před 3 měsíci +1

    Thank you for sharing! It would be nice to see a real life example for using core.async in prod.

    • @andrey.fadeev
      @andrey.fadeev  Před 3 měsíci +1

      Yeah, I would like to see a good example myself as well, I've been doing Clojure professionally since 2017 but only seen couple of usages of core.async and they were pretty bad, causing over-complicated code, so we ended up rewriting to something much simpler with threadpools and atoms

  • @vikingthedude
    @vikingthedude Před 3 měsíci +1

    What editor is this? It looks really clean. Also are you using a tiling window manager in mac?

    • @andrey.fadeev
      @andrey.fadeev  Před 3 měsíci +1

      Editor is Zed, I'm actually using it for everything except Clojure now (it supports clojure-lsp, but frankly speaking it's not enough), but overall I think it's great!
      Regarding tiling WM, yeah, I'm using yabai, works fine.

    • @vikingthedude
      @vikingthedude Před 3 měsíci +1

      @@andrey.fadeev wow thanks I gotta try them out now!

  • @dionysiuswilson
    @dionysiuswilson Před 3 měsíci +1

    Can you do this with babashka instead of JVM ?

    • @andrey.fadeev
      @andrey.fadeev  Před 3 měsíci +1

      You can, kinda, but not really, there is a limitation regarding core.async, check the babashka book (differences with JVM section): "The clojure.core.async/go macro is not (yet) supported. For compatibility it currently maps to clojure.core.async/thread."