Steve - Is there any data on performance compar...
Is there any data on performance compared to
@effect/schema
preferably specifically to recursive types? ^[1] ^[2] 3 Replies
None that I'm aware of
should be relatively straightforward to have a version of your schemas in both Zod and @e/s and benchmark them against realistic data though. I'd be interested in seeing the result! Colin (Zod maintainer) and Guilo (@effect/schema maintainer) are friendly with each other, so I don't think there is any big competition going on there. If you're a fan of the effect ecosystem, I'd probably go all-in on @effect/schema.
@e/s also has some interesting affordances, like codecs, that are not part of Zod's own design space, and could be a good fit for your specific issue where you might not always be parsing from
unknown
but trying to convert between different known types.Colin (Zod maintainer) and Guilo (@effect/schema maintainer) are friendly with each other, so I don't think there is any big competition going on there.Wait, some people aren't competitive with friends??
If you're a fan of the effect ecosystem, I'd probably go all-in on @effect/schema.Yeah I totally love the Either-monad they introduce there. I think you might be able to guess why.
@e/s also has some interesting affordances, like codecs, that are not part of Zod's own design space, and could be a good fit for your specific issue where you might not always be parsing from unknown but trying to convert between different known typesInteresting What
@effect
feels quite similar to railway programming.Yeah, totally similar. It started as pretty much a 1:1 port of Scala's Zio library and has found its own identity at this point. I'm a fan