Show HN: ArkType 3.0 – Set-theoretic precompiled TS validator
- arktype.io
- By ssalbdivad
- 49 points
- 13 comments
Discussion
Source linksShowing up to 12 top-level comments in Hacker News order.
-
ArkType is easily one of my favourite TS libraries out there, solely because of it'a actually working subtype checking. Hugely undervalued! I'm working on a Cpp project, and was trying to find a library that did that.. Either I couldn't find it, or none existed that were to my liking. That made me wonder: Why aren't don't more web-libraries have a core written in Cpp, Rust, or anything else that compiles to wasm, so it can be used both natively and the web? I ended up writing my own solution, in some ways more limiting than ArkType, in others better fitting my exact problem.
-
LLMs tend to be comparatively worse at TypeScript, JavaScript, and Python compared to Rust, which has far less code in the training corpus. In our test we found rust > java/c# > php > python > go > javascript
-
I tried ArkType a couple of years ago and really like the idea but ran into limitations pretty fast compared to the TypeScript compiler. Specifically, I make extensive use of mapped types to enforce through-out the codebase that introducing something new into the codebase immediately raises errors everywhere that new thing needs to be plugged in. Was already powerful for humans, but is even more so with LLMs. Has there been any movement on mapped types?
-
ArkType is one of my favorite things in Typescript. It's elegent, reasonably terse, and fully utilizes the capabilities of Typescript to do things that is nearly impossible in other languages to do safely.
-
I'm particular excited for how well this plays with Bun's new AOT. One of the biggest hurdles for me where runtime codegen for type validation.
-
I've mostly stayed away from ArkType because of the compile times. But I wonder if that still makes sense with the Go rewrite.
-
Great library but nowadays I use effect schema
-
Is this related to ArkTS in any way?