Hi all I wrote an article about applying Haskell's...
# functional
d
Hi all I wrote an article about applying Haskell's Applicative Functor pattern to Kotlin coroutines fr parallel orchestration. The idea:
.ap
= parallel (
<*>
),
.flatMap
= sequential (
>>=
), the code shape is the execution plan. Includes side-by-side comparisons with raw coroutines and Arrow, JMH benchmarks. Article: https://dev.to/damian_lattenero/i-applied-haskells-applicative-functors-to-kotlin-coroutines-heres-what-happened-l06 GitHub: https://github.com/damian-rafael-lattenero/coroutines-applicatives Would love feedback on the API shape especially from anyone who's used Haskell's Applicative in other contexts.
K 2
👏 1