News for hackers. Stuff that matters.

Show HN: With generators/DI, LazyPromise has become a tiny alternative to Effect

https://lazypromise.com/

I actually started LazyPromise without knowing much about Effect (https://www.effect.website/), coming from the world of RxJS and Solid-style signals (my post from last year: https://news.ycombinator.com/item?id=46321852). But Effect is a lazy promise too, and showed how useful generator syntax, type-safe errors and dependency injection can be. So there you go: a version of promise with auto-propagating cancellation and Effect-style features, but essentially the same API as the native promise.
( 1 comment | on HN )
Re:Show HN: With generators/DI, LazyPromise has become a tin... by ivan7237d on Tuesday September 22, 2026 @05:41PM (#49808543)
As an aside: isn't there something liberating about small primitives like Observable or Signal or a Promise? You're buying into an idea, not an implementation.