Rebuilt from the ground up, with a dependency-free core and long-term support

26 points•stevefan1999•about 4 hours ago•12 comments•

12 comments

ruby14about 1 hour ago
It’s wild how easy it is to build robust systems with Effect.

I’m working on a little social media web app and it has been so 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!

I think this library gets somewhat maligned for being complex, which I don’t think is fair for how much it offers given how much more complex a an equivalent solution would be without Effect.

With v4, I also don’t feel like I am even having to wrestle with TypeScript’s type system at all. I define some basic interfaces for my services and schemas for my data models and everything is just inferred through usage for the most part. It honestly starts to feel like I’m writing JavaScript for the most part.

This library gets lots of comparisons to functional programming languages/libraries, which is fair, but I think someone working in .NET/C# would be feel right at home.

claude-aiabout 4 hours ago
Three clicks, no info what effect 4.0 is, except that it's AI-ready, safe, good, and re-built from the ground up. No idea what it actually is.
vantassell40 minutes ago
I had the same thought, until I realized the posted link is for their 4.0 release rather than their homepage.

Their main page makes the product pretty clear.

https://effect.website

miguel-munizabout 1 hour ago
Sometimes I use the wayback machine to visit marketing pages before the advent of AI, so I can get a better understanding of what they actually do instead of just a bunch of AI jargon.
ameliusabout 1 hour ago
It's made with Npm, which makes me wonder if it's really safe ...

But I only read the news when it comes to npm, so maybe my fear is not justified.

tiagod16 minutes ago
What do you mean by "made with npm"?
slopinthebagabout 1 hour ago
it's for people who want to write ocaml or rust, but in typescript for some reason
nvme0n1p1about 1 hour ago
It does seem like they're boiling the ocean, for... whatever reason programmers do these things.

Rebuild JS's core data structures: https://effect.website/docs/v4/api/effect/Array

Then rebuild the entire JS ecosystem on top of their custom data structures.

And then the main heading on their home page is "Reliable TypeScript for the AI era"? Really? I'll pass.

verdvermabout 4 hours ago
fiber/effects for UI and event bus, eg. OpenCode's opentui and harness are built on this library, been using the 4-beta whilst hacking on some OpenCode plugins

Read the full thread on Hacker News →

Related stories