SoftwareMill · @softwaremill
220 followers · 99 posts · Server softwaremill.social

or - is there a library that beats another in this duel? Learn the differences, similarities, philosophy behind them both, and core features of those libraries and choose your favourite tool: softwaremill.com/cats-effect-v

#catseffect #zio #scala

Last updated 1 year ago

Lucas · @lucassatabin
54 followers · 71 posts · Server fosstodon.org

Currently testing non trivial concurrent control flow implemented with and , and loving the power of the `TestControl`!

#catseffect #fs2

Last updated 1 year ago

Mark Canlas · @markcanlas
5 followers · 16 posts · Server fosstodon.org
\LuXaS · @luxas
265 followers · 2405 posts · Server mamot.fr

J'écris un service HTTP avec , et compilé en natif avec , c'est assez exceptionnel les performances et l'empreinte mémoire obtenues, tout en gardant un super langage haut niveau avec du beau fonctionnel safe.

Pour le fun j'ai créé un petit client redis natif avec pool de connexions en quelques lignes, avec toute la safety pour éviter les leaks etc. C'est tellement beau 🤩

#catseffect #fs2 #http4s #scalanative

Last updated 1 year ago

SalarRahmanian :scala: :nixos: · @softinio
359 followers · 845 posts · Server fosstodon.org

Having a blast coding using :scala: , and on a side project on this fine hot Saturday in the :scala:

#scala #typelevel #catseffect #decline #bayarea

Last updated 2 years ago

Alex Nedelcu ☕️ · @alexelcu
826 followers · 760 posts · Server social.alexn.org
Alex Nedelcu ☕️ · @alexelcu
824 followers · 714 posts · Server social.alexn.org

An interesting fact about 's coroutines is that `Dispatcher.IO` is limited. This, compared to the general advice in land, to use a limited thread-pool for blocking I/O. E.g., 's thread-pool for blocking I/O is unlimited.

github.com/Kotlin/kotlinx.coro

The reasoning they give is that too many threads can make the app really slow. Which is true, but then again, having a limit can lead to thread starvation & deadlocks, e.g…

gist.github.com/alexandru/e8ea

#kotlin #scala #catseffect

Last updated 2 years ago

Alex Nedelcu ☕️ · @alexelcu
824 followers · 713 posts · Server social.alexn.org

My deep dive into 's coroutines continues 😊

Here I learned that we can have a function similar to `IO.uncancelable` from :

gist.github.com/alexandru/7527

The implementation for it is surprisingly short because, as it turns out, Kotlin uses `CoroutineContext` like some sort of mask that's compatible with the design of `IO.cancelable`:

github.com/nomisRev/arrow-fx-c

I'm unsure if there are any gotchas, apart from the one I discovered about `withContext`.

#kotlin #catseffect

Last updated 2 years ago

Alex Nedelcu ☕️ · @alexelcu
824 followers · 714 posts · Server social.alexn.org

's coroutines are cool, but when compared with 's offering, an underappreciated feature of 3 is the very thoughtful and consistent treatment of cancellation and resource handling.

Kotlin's coroutines are error-prone for the same reason they are great … you can't visually discern “suspended” function calls from blocking calls, the problem being that correctness relies on needing to make suspended calls non-cancellable for acquisition and release…

github.com/Kotlin/kotlinx.coro

#kotlin #scala #catseffect

Last updated 2 years ago

SoftwareMill · @softwaremill
220 followers · 99 posts · Server softwaremill.social

Concurrency is hard... Check an introductory level tutorial of concurrency features provided by Cats Effect

softwaremill.com/concurrency-w

#catseffect #concurrency #fiber

Last updated 2 years ago

Alex Nedelcu ☕️ · @alexelcu
823 followers · 702 posts · Server social.alexn.org

Integrating and 3 isn't without challenges, but the awesomeness of managing resources via Cats-Effect makes it all worth it, being 's secret weapon.

I wrote a blog post describing some integration solutions we use for building payment processors. to the max 💪

Please share 🙏🥺

alexn.org/blog/2023/04/17/inte

#akka #catseffect #scala #fp #programming

Last updated 2 years ago

Typelevel · @typelevel
699 followers · 52 posts · Server fosstodon.org

Catapult is Typelevel's newest project. It provides a Cats-Effect wrapper around the LaunchDarkly SDK for feature flag management.

github.com/typelevel/catapult/

#scala #typelevel #catseffect #launchdarkly

Last updated 2 years ago

SoftwareMill · @softwaremill
220 followers · 99 posts · Server softwaremill.social

Welcome Kamil Kloch as the next speaker! 🚀

Cats Effect - Dispatcher, Supervisor, IOLocal

Grab your ticket 👉sml.io/tickets

#scalarconf #scala #functionalprogramming #conference2023 #itconference #catseffect

Last updated 2 years ago

Ross A. Baker · @ross
709 followers · 229 posts · Server social.rossabaker.com

First public release of otel4s, an OpenTelemetry implementation for Cats Effect. otel4s aims to be a full and faithful impemenation of the OpenTelemetry Specification, built for the idioms of the Typelevel ecosystem.

github.com/typelevel/otel4s/di

#otel4s #typelevel #scala #opentelemetry #catseffect

Last updated 2 years ago

Vlad Kopaniev · @vkopaniev
6 followers · 10 posts · Server fosstodon.org

Hey folks, I'm writing an article on the topic related to best practices for using Scala functional libraries: cats, cats-effect. Does anyone want to team up? You folks are all experienced here, and we could write something beneficial for the community together that ChatGPT won't.

#scala #fp #cats #catseffect #functionalprogramming

Last updated 2 years ago

Erlend Hamnaberg · @hamnis
49 followers · 56 posts · Server snabelen.no

client side code makes me sad.

github.com/http4s/http4s-netty

Why the hell does the low-level test sometimes fail?

Of course the netty example code is not useful, it just prints.

#netty #http4s #fs2 #scala #catseffect

Last updated 2 years ago

Annie · @Anniiii
36 followers · 210 posts · Server gts.ferreo.dev

Can we please have but like sub for ?

#catseffect #scala #clojure

Last updated 2 years ago

Typelevel · @typelevel
635 followers · 28 posts · Server fosstodon.org

Cats Effect 3.4.5 is released, with a fix to a memory leak introduced in recent patches.

github.com/typelevel/cats-effe

#scala #typelevel #catseffect

Last updated 2 years ago

Typelevel · @typelevel
606 followers · 19 posts · Server fosstodon.org

Cats-Effect-3.4.4 is out with a fix to a memory leak in `Deferred`:

github.com/typelevel/cats-effe

#catseffect #typelevel #scala

Last updated 2 years ago

Maciek · @maciek
33 followers · 99 posts · Server hachyderm.io

How do folks debug code in ? The breakpoints don't work (they are triggered when the operation is defined, not executed) and the stack traces don't seem to make much sense. It's quite hard to understand what's going on in complex code without being able to step through an execution.

#catseffect #scala

Last updated 2 years ago