Our great sponsors
scalac options for the enlightened
Note that this assumes that non-Unit values are silently thrown away, which you should always configure scalac, preferably via sbt-tpolecat, not to allow.
To try to answer the top-level question "Why are effects better for retries than Future?" I would say "because the effect types rest on a runtime that supports cancellation and error-handling with rigorous algebraic semantics." If we look at cats-retry, for example, we find implementations that require a Monad and a Sleep instance or a MonadError and a Sleep instance. The Sleep typeclass, probably unsurprisingly, just exposes a sleep effect. But look at the companion object: the only instance of the typeclass it provides is for type constructors with a cats-effect Temporal instance. IO has such an instance. Future does not, and cannot.
Access the most powerful time series database as a service. Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.
Scala and Java Upgrade strategy
1 project | reddit.com/r/scala | 15 Apr 2022
Is there a way to beautify the code after Scala 3 migration?
1 project | reddit.com/r/scala | 24 Aug 2021
2 projects | reddit.com/r/scala | 25 Feb 2022
Native code access from scala 3 without using Graal
1 project | reddit.com/r/scala | 30 Aug 2021
sbt-jni 1.5.0 has been released: Notably support for Rust/Cargo and Scala 3. Using JNI from Scala has never been easier!
1 project | reddit.com/r/scala | 28 Jul 2021