Dhi
520x faster data validation for Python, 77x faster for TypeScript
Get picks like this daily. Today's launch numbers, the top launches, AI and tech news, and a daily opportunity pick, straight to your inbox.
Want to reach these readers? Sponsor an issue.
Hi HN! I built dhi, a data validation library that uses Zig to compile to both native C (Python) and SIMD WASM (TypeScript).Key points: - Drop-in API compatibility with Pydantic (Python) and Zod (TypeScript) - Python: 24.9M validations/sec (520x faster than Pydantic V2) - TypeScript: up to 77x faster than Zod on invalid data - 28KB WASM bundle, zero JS runtime overheadI'd love feedback on the API surface, benchmarks, and real-world integration pain points. If you're curious, the repo has full benchmarks and examples.
HN · launched Jan 26, 2026 · 5 upvotes (top 90%) · 0 views
Niche: data and schema validation tools · 56 launches, 2 in the last 7 days ▼ -75% · Explore this niche →
Category and tags
- Horizontal
- Dev tools
- Developer
- Not AI
- Hobby / open-source project
Visit website ↗ Source listing ↗
More like this: all 56 launches in data and schema validation tools →
Could you build this?
No Developing an ultra-high-performance data validation library in Zig utilizing manual SIMD vectorization and custom bindings for Python (C-API) and TypeScript (WASM) requires advanced systems programming and performance engineering.
What it would actually take: The project requires writing low-level parsing and validation routines in Zig, taking explicit advantage of SIMD vector intrinsics (AVX2/NEON) to process byte streams and JSON data in parallel. It must implement custom C-Python extension bindings without intermediate overhead and compile to compact WebAssembly with SIMD support for V8/JavaScript runtimes. Achieving 500x speedups over Pydantic v2 requires deep knowledge of compiler optimizations, CPU cache hierarchies, memory alignment, and language runtime ABIs.
Discussion
No comments on this launch.
Competitors
Other products that read as similar to this one : 138 launches clear the similarity bar, closest 8 shown.
Attention rank: #135 of 139 (itself plus its competitors, highest first, normalized so YC and Product Hunt are compared fairly).
Launched 83 days after the earliest competitor.
- I built a 30x faster svelte-check in 2 days with AI · hn · 2026-01-03 · 6 upvotes · similarity 0.46
- Valid8r, Functional validation for Python CLIs using Maybe monads · hn · 2025-11-09 · 6 upvotes · similarity 0.46
- Oxyde · hn · 2026-03-13 · 155 upvotes · similarity 0.45
- InstantMock API CLI Pro · ph · 2026-11-07 · 1 upvotes · similarity 0.41
- Rust HTTP library modeled after Go but 2-3x faster · hn · 2026-04-04 · 5 upvotes · similarity 0.41
- Sandboxing untrusted code using WebAssembly · hn · 2026-02-03 · 76 upvotes · similarity 0.41
- Coi · hn · 2026-01-20 · 225 upvotes · similarity 0.39
- Fast NF4 dequantization Triton kernel (1.41x faster than bitsandbytes) · hn · 2026-07-15 · 5 upvotes · similarity 0.39
The niche, labels, vibe code rating and competitor comparison on this page are analysis by Nicheloom. If you use them, please credit nicheloom.com. How you may use our data.