# ArkType: 极速预编译 TypeScript 验证器

Original title: Show HN: ArkType 3.0 – Set-theoretic precompiled TS validator

> Hacker News story 50749041 · language: zh · submitted 2026-12-03
> Web version: https://zeli.app/zh/story/50749041
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 38 · by [ssalbdivad](<https://news.ycombinator.com/user?id=ssalbdivad>) · 💬 11
[original](<https://arktype.io/docs/blog/3.0>) · [HN discussion](<https://news.ycombinator.com/item?id=50749041>)

## Summary

ArkType 3.0 正式发布，作为 TypeScript 生态中最小、最快的验证器，它打破了以往在速度、体积和启动时间中只能选二的魔咒。通过创新的预编译技术，ArkType 将类型定义直接转化为独立验证器，在保持与 Zod 等库无缝兼容的同时，性能提升高达 15 倍。开发者只需一条指令即可迁移项目，享受极致的开发体验和运行时性能，让类型检查不再成为性能瓶颈。

## Key quote

> ArkType 预编译版本在所有 32 个基准测试场景中，速度均快于 Zod 4，中位数提升达 15 倍。

## HN discussion (11 comments)

### [faangguyindia](<https://news.ycombinator.com/item?id=50756420>)

> LLM 在处理 TypeScript、JavaScript 和 Python 时的表现，通常比 Rust 差，因为 Rust 在训练语料库中的代码量要少得多。
>
> 在我们的测试中，表现排序为：rust > java/c# > php > python > go > javascript

### [Benjamin_Dobell](<https://news.ycombinator.com/item?id=50754853>)

> 几年前我试用过 ArkType，概念很棒，但很快发现它相比 TypeScript 编译器存在不少局限。具体来说，我大量使用映射类型（mapped types）来确保在整个代码库中，一旦引入新内容，所有需要接入该新内容的地方都会立即报错。这对人类开发者来说已经很强大了，配合 LLM 更是如虎添翼。映射类型方面有任何新进展吗？

### [jadbox](<https://news.ycombinator.com/item?id=50752483>)

> ArkType 是我最喜欢的 TypeScript 工具之一。它优雅、简洁，且充分利用了 TypeScript 的能力，能安全地实现其他语言几乎无法完成的操作。

---

## Cite

- Page: https://zeli.app/zh/story/50749041
- Date: 2026-12-03
- Source: arktype.io (https://arktype.io/docs/blog/3.0)
- Hacker News: https://news.ycombinator.com/item?id=50749041

## Other languages

- en: https://zeli.app/story/50749041 · markdown: https://zeli.app/story/50749041.md
- ja: https://zeli.app/ja/story/50749041 · markdown: https://zeli.app/ja/story/50749041.md
- ko: https://zeli.app/ko/story/50749041 · markdown: https://zeli.app/ko/story/50749041.md
- de: https://zeli.app/de/story/50749041 · markdown: https://zeli.app/de/story/50749041.md
- es: https://zeli.app/es/story/50749041 · markdown: https://zeli.app/es/story/50749041.md
- ru: https://zeli.app/ru/story/50749041 · markdown: https://zeli.app/ru/story/50749041.md
