-
This is neat, but you donβt need a new language to leverage these concepts. https://effect.website/ The effect library brings all of this goodness to typescript (and then some) and is robust and production ready. I hate writing typescript without it these days.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
Yes, see for instance https://github.com/ocaml-multicore/ocaml-effects-tutorial.
-
-
Take the following requirement:
"A user has made an API call. I want you to in parallel race two concurrent tasks: check if the data is in (1) cache and (2) database. Whichever returns fastest return to the user. Otherwise kill the other task and make sure the connection resources for both are cleaned up".
I can easily do this with an effect systems like ZIO and have it work flawlessly. That's the benefit of effect systems.
But now with JVM Virtual Threads there are frameworks like Ox: https://github.com/softwaremill/ox which allow you to achieve the same thing without effects.
-