Hacker News·4 min read·hard

Rust Port of TypeScript (Tsc)

J
jcbhmr
Rust Port of TypeScript (Tsc)
✦AI Summary

A developer successfully used large language models to port the TypeScript compiler to Rust, spending approximately $24,000 in API tokens. The project, tsc-rs, aims to provide a high-performance, drop-in replacement for the existing TypeScript compiler.

Why it matters

This demonstrates the increasing capability of LLMs to handle massive, complex software engineering tasks and large-scale code migrations.

✦Dive DeeperCreate a free account to unlock

I wanted to see if LLMs could port the TypeScript compiler, checker and lsp to Rust. Turns out they can.

It cost over $420,000 in tokens to do it, but you could probably have done it for ~$20k (see below)

Test model capabilities Make a fast TypeScript type checker Make a ts checker that can work in WASM with high performance Memes Warnings This is an early release. It has 100% compatibility in every real world project we have tested. It should work as a drop in replacement for the vast majority of apps. See Known problems .

Also worth mentioning: I've never read a line of this code.

Be warned, I have no idea if this will actually work.

Continue reading on Headlinne

Create a free account to read the full article.

Read full article →
technologyai
✦

Get smarter about the news

Sign up free for a feed built around what you actually care about, Dive Deeper research on any story, and the full text of every article.

Create free account

Already have an account? Sign in