Readit News logoReadit News
gajus commented on ArkType: Ergonomic TS validator 100x faster than Zod   arktype.io/... · Posted by u/nathan_phoenix
epolanski · 5 months ago
I really want to see the people that have performance issues with Zod and what's their use case.

I mean it.

I've been parsing (not just validating) runtime values from a decade (io-ts, Zod, effect/schema, t-comb, etc) and I find the performance penalty irrelevant in virtually any project, either FE or BE.

Seriously, people will fill their website with Google tracking crap, 20000 libraries, react crap for a simple crud, and then complain about ms differences in parsing?

gajus · 5 months ago
Zod is the default validator for https://github.com/gajus/slonik.

Zod alone accounts for a significant portion of the CPU time.

gajus commented on Zod v4 Beta   v4.zod.dev/v4... · Posted by u/mycroft_4221
gajus · 5 months ago
Surprised not to see more people ask about performance profile of v4.

Zod is great in terms of API, but a no-go in terms of performance.

We ended up writing babel plugins (https://github.com/gajus/babel-plugin-zod/) and using it along with zod-accelerator, which improves performance, but breaks in various edge-cases.

gajus commented on Ask HN: Anyone using Redis for full-text search?    · Posted by u/gajus
andrewfromx · 7 months ago
Choose Redis when:

You need very fast search on a relatively small dataset. Your search patterns are simple and well-defined. You're already using Redis as your primary database. Low latency is critical.

Choose Elasticsearch when:

You have large amounts of text data. You need advanced search features and relevance tuning. Your data is semi-structured or unstructured. You need sophisticated analytics capabilities. Scalability is a primary concern

gajus · 7 months ago
What's a relatively small dataset?

For someone that could be 1m records for others that could be 1bn records

gajus commented on SHA-256, ECDH, Ecdsa and RSA Not Approved by ASD in Australia for 2030   billatnapier.medium.com/s... · Posted by u/gnabgib
gajus · 9 months ago
TLDR

> So, we now focus on the new NIST standards of FIPS 203 (ML-KEM), FIPS 204 (ML-DSA) and FIPS 205 (FLH-DSA).

gajus commented on Eliminating Daylight Savings Time would make the average American’s life darker   natesilver.net/p/save-day... · Posted by u/JeremyNT
gajus · 9 months ago
That’s a lot longer post than I anticipated on the subject.

Just so I understand the other side of the argument: where is the purported inefficiency of keeping DST coming from?

gajus commented on Show HN: A better way to inspect and test AI Agents traces   github.com/invariantlabs-... · Posted by u/laviniap
gajus · 9 months ago
What’s better/different/same from many tools in this space like langfuse etc

u/gajus

KarmaCake day1250October 13, 2014View Original