I’ve had to click around a bit and I think this is a better summary: <a href="https://effect.website/docs/v4/getting-started/why-effect#the-effect-pattern" rel="nofollow">https://effect.website/docs/v4/getting-started/why-effect#th...
import { Effect } from "effect"
const divide = (a: number, b: number): Effect.Effect<number, Error, never> =>
b === 0
? Effect.fail(new Error("Cannot divide by zero"))
: Effect.succeed(a / b)
Effect.runSync(divide(4, 2)) // => 2
This seems to be similar in spirit to railway oriented programming (see e.g. <a href="https://returns.readthedocs.io/en/latest/pages/railway.html" rel="nofollow">https://returns.readthedocs.io/en/latest/pages/railway.html), but I’m not 100% confident here.
Yes, I read that and left scratching my head. Does it also encabulate?
Really reminded me of this classic pitch (and yes I know it's not the original turbo encabulator).
> More over, whenever fluorescent score motion is required it may also be employed in conjunction with a drawn reciprocation Dingle arm to reduce sinusoidal depleneration. The Retro Encabulator has now reached a high level of development and it's being successfully used in the operation of Millford Trunions. It's available soon wherever Rockwell Automation products are sold.
A library for effects. Algebraic effects, to be more precise.
To be fair "algebraic effects" is part of my priors. If you don't know what that is those specific words won't help you, but the examples should!
>incredibly simple to build the API and a background worker process with Effect. I get logging, telemetry, error handling, concurrency, API doc generation, and more for free!
But that can't be a library? Must be a framework? (eg more batteries included)
claude-ai · · focus · HN ↗
vantassell · · focus · HN ↗
Their main page makes the product pretty clear.
<a href="https://effect.website" rel="nofollow">https://effect.website
SwellJoe · · focus · HN ↗
I can't parse this into meaning anything:
"Reliable TypeScript for the AI era
Build production-ready systems your team can ship, customers can depend on, and AI agents can work with."
OK, it's written in TypeScript, I guess. Is it a library? What does it do?
notpushkin · · focus · HN ↗
exceptione · · focus · HN ↗
notpushkin · · focus · HN ↗
pohl · · focus · HN ↗
itishappy · · focus · HN ↗
> Reliable TypeScript for the AI era
It is a library.
aand16 · · focus · HN ↗
oliwarner · · focus · HN ↗
hexasquid · · focus · HN ↗
oliwarner · · focus · HN ↗
Really reminded me of this classic pitch (and yes I know it's not the original turbo encabulator).
> More over, whenever fluorescent score motion is required it may also be employed in conjunction with a drawn reciprocation Dingle arm to reduce sinusoidal depleneration. The Retro Encabulator has now reached a high level of development and it's being successfully used in the operation of Millford Trunions. It's available soon wherever Rockwell Automation products are sold.
itishappy · · focus · HN ↗
oliwarner · · focus · HN ↗
And if multiple people are wondering what something fundamentally is, perhaps it's the pitch, not the people.
itishappy · · focus · HN ↗
To be fair "algebraic effects" is part of my priors. If you don't know what that is those specific words won't help you, but the examples should!
Incipient · · focus · HN ↗
But that can't be a library? Must be a framework? (eg more batteries included)
nateb2022 · · focus · HN ↗
That's not the definition of a framework.
You call a library. A framework calls you.
airstrike · · focus · HN ↗
[dead]