Avinder Bahra (@avinder42) header
Avinder Bahra (@avinder42) profile picture

FP and House Music enthusiast. Lead developer on ZIO DynamoDB.

England, United Kingdom
Joined April 2016
Photo by Avinder Bahra (@avinder42)Photo by Avinder Bahra (@avinder42)Photo by Avinder Bahra (@avinder42)Photo by Avinder Bahra (@avinder42)Photo by Avinder Bahra (@avinder42)Photo by Avinder Bahra (@avinder42)Photo by Avinder Bahra (@avinder42)Photo by Avinder Bahra (@avinder42)Photo by Avinder Bahra (@avinder42)Photo by Avinder Bahra (@avinder42)
Avinder Bahra retweeted
ZIO Blocks now has its own home page: zioblocks.com/ Next-gen building blocks for modern Scala apps, no effect dependencies, and usable from any ecosystem (or none at all).
3
28
3
114
6,399
Avinder Bahra retweeted
My company @zivergetech is launching a small business automation solution: getverger.ai/ Most of my followers are in tech and won't need it, but you all know folks who could benefit. Please share it within your network!
2
15
29
2,763
Avinder Bahra retweeted
Jaja estoy pensando en gastar tokens para producir cortos de mis sueños
1
1
45
Avinder Bahra retweeted
Just merged Async[A], ZIO Blocks' new cross-platform, cross-version eager Async type. Ready for kicking the tires, destined to bring Async streams to JS, and often hundreds to thousands of times faster than Cats Effect. 👀👇
4
6
60
3,539
There was no e-mail, and I learned it by accident, but I feel all #Scala OSS devs should learn ASAP: Maven is introducing publishing limits. We most likely will have to apply for exemption: - sonatype.com/blog/open-publi… - central.sonatype.org/publish…
1
7
2
20
3,455
Avinder Bahra retweeted
Your billing query joins 9 tables. Postgres's planner stops trying at 8. Famous last words: "It's just a 5-row lookup, the planner will figure it out." 0.3ms with 8 tables. 467ms with 9. exobench.ai/blog/how-one-ext… join_collapse_limit = 8. Default since 2005. Cross it → planner gives up → hash joins everything → 1.28s for 30 rows. I would have shipped this. 0.5ms → 5ms looks like a fluke. ExoBench found a logarithmic bomb. AI → ExoBench → real Postgres, real SQL Server, real MySQL at five scale points. No benchmark code. - SQL Server: same 9-table query → nested loops at every scale. No cliff. - MySQL: same query → no cliff. - Only Postgres has this. - The fix: SET join_collapse_limit = 12 → sub-millisecond restored. Every prompt verbatim. Emotive query plans. The cross-engine chart that should annoy you.
1
5
239
Avinder Bahra retweeted
If you caught the article about Proteus but prefer a video format, check out @ghostdogpr's talk from Scalar 2026! 🍿 He shows how Proteus uses zio-blocks to bypass traditional Chimney/Protobuf boilerplate and speed up (slow down?) Scala compile times. youtube.com/watch?v=zTq9gdIm…
1
6
21
1,270
Avinder Bahra retweeted
For all my Scala friends: Golem 1.5 ships with support for Scala, so I hope you join the $2.5k, three-day hackathon and built something cool on Golem with Scala 3!👇 xitter.gq/jdegoes/status/2052778…
2
7
26
1,938
Avinder Bahra retweeted
I've published the first version of Golem SDK for @moonbitlang - now you can easily write durable agents in MoonBit and run them on @GolemCloud 1.4: mooncakes.io/docs/golemcloud…
5
11
619
Avinder Bahra retweeted
The correct way to defend against a sword
234
1,699
141
20,771
2,134,906
Avinder Bahra retweeted
Resource.from[T](...).allocate — dependency graph resolved, scoped, finalized. One expression. One system. Ox + MacWire: wire your deps with MacWire, then manually register each one with Ox's scope. Two libraries, no shared types, silent gaps.
1
1
8
646
Avinder Bahra retweeted
Leaking a resource from a child scope should be a compile error. In ZIO Blocks Scope, it is — scoped requires Unscoped evidence on the return type. No evidence, no escape. In Ox? Compiles fine. Use-after-close at runtime.
1
1
8
714
Avinder Bahra retweeted
What would you call a Scala library that: • Makes resource leaks a compile error, not a runtime bug • Auto-wires your entire DI graph from constructors • Almost no runtime overhead How about: Scope, in ZIO Blocks. Zero deps—works with ZIO, Cats, Kyo, or plain Scala. 👇
7
12
1
73
6,725
Avinder Bahra retweeted
ZIO Schema 2 just shipped JSON schema support, courtesey of @987Nabil: ✅ get json schemas, parsers, and printers free for any Scala data type ✅ go from ZIO schema to json schema ✅ go from json schema to ZIO schema This is the foundation of powerful AI interop.
3
9
57
2,644
Avinder Bahra retweeted
For Scala 3, derived optics just got a lot nicer in ZIO Schema 2. 👀 Unfortunately, I couldn't find a way to replicate the top-level optics for Scala 2, but at least you no longer need a type parameter in most cases. 😞 H/T @kitlangton
3
7
49
4,654
Avinder Bahra retweeted
ZIO Schema 2 just got the best JSON interpolator. 👀 Which means you can kiss Json DSLs goodbye. 😘
3
10
76
4,774
Avinder Bahra retweeted
Who's king of the hill? 👀 Friends don't let friends use Circe. 😉
2
2
1
28
3,060
The following is a real session from Claude ExoQuery MCP rewrites and DRYs your SQL eliminating hallucinations via it's validate-and-run cycle. This functionality is available for free, today!
1
6
365