logoalt Hacker News

samuelstros • today at 3:47 PM • 9 replies • view on HN

At this point, why invest further in TSGO?

No matter how many optimizations can be ported from tsrs to ts-go, Rust will be more efficient and enable the WASM use case.

The premise of porting the compiler from TS to GO was ease of migration due to Go's garbage collector. That doesn't hold anymore? AI doesn't care how hard or easy a migration is if a test suite exists.


Replies

magicalist • today at 4:04 PM

> That doesn't hold anymore? AI doesn't care how hard or easy a migration is if a test suite exists.

Sure, but that only matters if migration is going to be the last thing anyone does on a project. Unless you think typescript 7.1 ought to be enough for anybody, it also matters what the typescript team wants to write/read/reason in.

➕ show 2 replies
platinumrad • today at 5:27 PM

I just vibecofed tsasm. tsrs is obsolete now and anyone who still uses it is hopelessly behind the times. The tsrs team should delete the repository immediately and join my project.

➕ show 2 replies
wavemode • today at 4:06 PM

Your answer is within the comment you wrote. AI is maintaining tsrs whereas humans are maintaining tsgo.

Your question boils down to "why would humans maintain something?" which could have a variety of answers depending on context.

➕ show 2 replies
melodyogonna • today at 5:50 PM

I never understand why people say things like this. It is not uncommon for languages to have multiple implementations, everything must not be abandoned for Rust man.

fallingbananna • today at 5:26 PM

Because TSGO is stable and compatible?

I assume that most of the speedup in ts-rs does not simply stem from using a language without garbage collection, but actually from doing smart optimizations that can be done in any langauge.

Similar to how uv in the Python world explained that their implementation being in Rust has very little to do with the most impactful speedups they did.

➕ show 1 reply
madeofpalk • today at 10:17 PM

If an AI agent could vibe-optimise tsgo, why port it all again over to rust?

➕ show 1 reply
skybrian • today at 7:59 PM

Another advantage of AI, though, is that it becomes easier to maintain more than one TypeScript compiler. Perhaps there's some benefits to having some diversity?

pier25 • today at 4:54 PM

TSGO is already plenty fast and overkill for most projects.

Sure the Rust version is faster but the difference is probably only noticeable in the top 1% largest projects.

➕ show 2 replies
lifeisloving • today at 8:34 PM

Please you port it if its so easy, the tests are available on gh. I wont be using an llm ported ts compiler anyways, and neither would many others

Its a great way to divide and kill the popularity of your project. I made sure bun is no longer used in my devices or projects that depend on it for example, I'm not alone in this.