Luis Rodero-Merinolrodero.hashnode.dev·Mar 24, 2024The dining philosophers problem with Scala 3 and Cats EffectThe dining philosophers problem is a classical concurrency problem. This post shows an example of how you can use Scala 3 and the Cats Effect (CE) libraryto implement a solution of that problem. 💡 All code samples can be compiled using scala-cli. T...DiscussScala
Luis Rodero-Merinolrodero.hashnode.dev·Mar 10, 2024Using Cats Effect's MapRef(all code samples can be run using scala-cli) If you use Cats Effect (CE) it is likely you have found that you need a Map instance that has to be fiber-safe as several fibers can access it concurrently. MapRef is a type offered by CE std package that...Discuss·27 readsMapRef