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

Joined April 2016
15 Photos and videos
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
4
213
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,221
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!👇 x.com/jdegoes/status/2052778…

2
7
26
1,907
Claud was James Brown's funky drummer
19
There comes a time in your life when your son looks you in eye and says "Dad, can we go for a drive" (him driving on his provisional licence)
1
51
When your Intellij IDE contains more bookmarks than actual code you know you navigating a complex domain
1
48
Had great short break in London with the family
33
Just read this, looks like an awesome library we could use at work
Just gave my talk at @scalarconf about a new way to deal with Protobuf in Scala. Couldn't be there? No worries, here's a blog post version of the talk! blog.pierre-ricadat.com/prot…
1
139
One of advantages of having a home gym is that you get to decide the music policy. Right now I'm listening to hse.fm/
25
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
617
Avinder Bahra retweeted
The correct way to defend against a sword
241
1,765
21,453
2,133,124
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
9
645
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
9
712
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
74
6,652
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
58
2,627
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
8
49
4,634
Avinder Bahra retweeted
ZIO Schema 2 just got the best JSON interpolator. 👀 Which means you can kiss Json DSLs goodbye. 😘
3
11
77
4,762
Avinder Bahra retweeted
Who's king of the hill? 👀 Friends don't let friends use Circe. 😉
2
2
28
3,060