Unofficial Hacker News companion — get notified on comment replies,
and more.
To get push notifications on iPhone or iPad, add Hack and Chat to your Home Screen: tap
Share → Add to Home Screen, then open the installed app and enable push in Settings.
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.
we actually built an entire type testing and benchmarking framework to help optimize arktype's type performance and accuracy, so we've certainly taken it seriously:
even before tsgo it could scale very far. at this point I would not expect it to be a bottleneck for almost anyone with how well the types scale with caching.
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?
it's a really powerful API (could use some additional docs) both in terms of runtime and inference, curious to hear if it solves some of what you were looking for.
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.
Replies (1)
I was already aware of an Ark UI in the ecosystem so I guess people just really like arks ¯\_(ツ)_/¯
Replies (1)
Replies (1)
Replies (1)
https://arktype.io/docs/attest
even before tsgo it could scale very far. at this point I would not expect it to be a bottleneck for almost anyone with how well the types scale with caching.
Replies (1)
https://arktype.io/docs/type-api#map
it's a really powerful API (could use some additional docs) both in terms of runtime and inference, curious to hear if it solves some of what you were looking for.
In our test we found rust > java/c# > php > python > go > javascript
I ended up writing my own solution, in some ways more limiting than ArkType, in others better fitting my exact problem.