logoalt Hacker News

mohsen1today at 8:51 AM1 replyview on HN

Just a clarification that tsz is not a port of tsgo or tsc. It's an entirely different architecture. Inspired by Chalk and Salsa it does all of the type computations to a solver crate that does not know about the AST. This allows me to do very fast type equity and assignability computations without carrying the weight of AST nodes while walking the type graph etc.

It's already showing results that is nearly 3x faster than tsgo. For multi-file large projects I have some ideas to implement to make it faster there too.

Once tsz is fast and stable I'll shift focus on making sound mode a reality.


Replies

rzmmmtoday at 2:46 PM

FYI many of the tsz sound mode features are available as linter plugins for typescript. They leverage type information