hn.today

Effect 4.0

effect.website85 points59 comments
Screenshot of Effect 4.0

Effect 4.0 is a ground-up rewrite of the Effect ecosystem: a single, consolidated codebase with a zero-runtime-dependency core and lockstep releases for formerly separate packages. It focuses on performance and footprint - bundles are roughly 5× smaller (from 35.6 kB to 7.1 kB), concurrent task throughput is 6.4× higher (0.71M → 4.57M tasks/sec), and per-fiber memory for 50,000 fibers drops from 157.5 MB to 21.8 MB (≈86% less). The same effect programming model - typed errors, dependency injection, resource management, structured concurrency, and observability - now scales from single functions to distributed systems, adding durable workflows and clustering built on identical guarantees across layers.

Adoption has accelerated: weekly npm downloads hit 43.9M with 179× growth since 3.x and 4.x already representing 56% of recent usage; production deployments span small teams to large enterprises and spawned related projects like Alchemy and Foldkit. A long-term-support commitment guarantees at least three years of fixes for 4.x (specific bug and security timelines tie to when 5.0 ships). Next priorities are stabilizing experimental modules, broadening platform support, and adding higher-level primitives. Migration guidance and documentation are available, and the community is encouraged to try 4.0, report feedback, and join conversations on Discord and social channels.

Read on effect.website59 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

Zig v0.17.0

Zig v0.17.0

Zig 0.17.0 introduces a reworked build system, including a new Build Server Protocol and enhanced ELF Linker for better incremental compilation on x86_64-linux. The release also features numerous language, standard library, and package management improvements contributed by over 200 developers. (ziglang.org)

Hardly Promethean

Hardly Promethean

Decreasing costs of native app development and performance optimization shift the software bottleneck from coding to deployment and maintenance. Experts argue that while technology enables faster coding, managing and shipping updates remains a significant challenge. (jardo.dev)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.