News for hackers. Stuff that matters.
Re:Zod 4 by satvikpendem on Monday May 19, 2025 @11:58AM (#44031212)
We also chose ArkType after evaluating Zod, Valibot, and Effect Schema, among others. It seemed to have the best developer experience while also being much faster. It also supports the Standard Schema project which I believe Effect Schema does not fully support.
Re:Zod 4 by bjacobso on Monday May 19, 2025 @12:16PM (#44031411)
I believe Effect Schema fully supports Standard Schema, the issue is that it supports much more than Standard Schema, so not all schemas will work and thus provide compile time errors.
Re:Zod 4 by satvikpendem on Monday May 19, 2025 @12:21PM (#44031457)
Yes that's correct, it's more powerful but we wanted to maintain full compatibility just for the future as well. But if you're all in on the Effect ecosystem, it's quite nice.
Re:Zod 4 by sesm on Monday May 19, 2025 @12:24PM (#44031490)
Does ArkType support generating data from schema?
Re:Zod 4 by mapcars on Monday May 19, 2025 @01:35PM (#44032409)
Could you elaborate on how exactly do you use these? I was assuming its for some kind of contract testing, but there are mentions of bundle size, is it used on fetching data to fail early if the format is wrong, something like that?