Koda Validate
Languages and libraries
validation library
SHOW HN2022
30points
9comments
#1,256of 2,570 in 2022
Top 49%of 2022 by points
How HN took it
CuriousMostly questions and neutral comments
0 positive, 3 neutral or asking, 2 mixed, 0 critical, out of 5 comments about the project. Thread score 0.00.
The thread, comment by comment
Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.
positive neutral or mixed critical about another commenter or something else the maker
What HN said
What people liked
Typesafe without plugins; validators are combinable and inspectable
From 1 comment
I like it. One thing that occurs to me: I don't want to have to describe my data in two places. Like how in the first example the dataclass Person has all the information needed…
carapace on HN
Objections
Validation is slower than Pydantic out of the box, especially for dictionaries
From 1 comment
Quick follow-up that it looks like koda_validate is usually slower when validating dictionaries out of the box. Good news is it's clear where I should optimize, and that I'll add…
keithasaurus on HN
Requires describing data twice, unlike dataclass-based definitions
From 1 comment
I like it. One thing that occurs to me: I don't want to have to describe my data in two places. Like how in the first example the dataclass Person has all the information needed…
carapace on HN
Requests
Benchmarks against Pydantic and attrs
From 2 comments
That's really helpful to hear. A few thoughts: - I haven't benchmarked this against pydantic... I guess I should! - I would _hope_ that Koda Validate is at least competitive with…
keithasaurus on HNMay also be good to benchmark against attrs which also seems to be similar to what you want to do.
timellis-smith on HN
Questions
How does it compare with Pydantic?
From 1 comment
How does this compare with say Pydantic?
stevesimmons on HN
Alternatives named
Pydantic
From 2 comments
How does this compare with say Pydantic?
stevesimmons on HNThis seems more lower level, and provides building blocks with combinators which seems like a Validation / Applicative approach. I'm probably just going to use pydantic though.
snoozeulooze on HN
attrs
From 1 comment
May also be good to benchmark against attrs which also seems to be similar to what you want to do.
timellis-smith on HN