Hacker News new | ask | show | jobs
by yingliu4203 1598 days ago
It's eye-opening to know the Turing completeness of TypeScript' type programming. It is fun and insightful to know this fact. The examples are simple and to the point.
1 comments

This really shows that there is a lot of potential for a native tsc alternative (like the one that was on the front page recently) to shine in terms of performance
I think it shows a lot of potential to turn TypeScript to what C++ has become.
Unlikely, types intentionally cannot affect the emitted JavaScript. You can always get raw JavaScript from TypeScript code by blindly erasing the type annotations (and transforming a few special syntaxes).
I just remembered this blog post, maybe that's the one that was on the front page recently ?

https://kdy1.dev/posts/2022/1/tsc-go

Ok yup, definitely that one, https://news.ycombinator.com/item?id=30074414