Hacker News new | ask | show | jobs
by damienmeur 12 days ago
With the AI era I really think there is a renaissance in functional programming, look at effect-ts which just reached 17M weekly downloads and is recommended by Claude itself when starting a new TypeScript project.

Effect-ts is kind of a continuation DSL interpreter, an interresting concepts they brought in addition to the error channel is the "R" dependency channel so that you can be type guided for missing injected dependencies, very cool for testability.

As all these structures (effects, continuations, ...) are monadic, the best part is the thigh composability possibilities as basically you can jut chain them.

Very cool to live the resurrection of all these 50's mathematics concepts, that takes all their sense now at AI era

2 comments

I'm enjoying the resurrection of all these concepts. I hear it explained as agents work best with feedback/constraints, my confusion is I believe people do as well so why were they not so popular before. Either way it's nice to see it happening and I'm very bullish on Gleam continuing to be a good choice.
Effect's use of generators is also nice. While looking a bit off, it allows writing imperative business logic.