Hacker News new | ask | show | jobs
by rationably 390 days ago
...or Marshmallow, which allows one to do many complex validations in a relatively trivial manner.
1 comments

On one hand, I feel like I've been in a coma since covid because I've just been coasting along with Marshmallow and jsonschema, but on the other hand it's like a lot of the major advances have been in the past couple years. Apparently pydantic got a big version update in 2023? And now all these competing static type checkers?
Pydantic got the re write in rust treatment so de/serialization is crazy fast now.
msgspec must be insanely fast then: https://jcristharif.com/msgspec/benchmarks.html

But of course unless parsing and manipulating JSON is your bottleneck, Pydantic is great, too.

It's true. msgspec has incredibly fast msgpack serialization. It's a shame so few people know about it.
JSON, too!