Web development: The new TypeScript compiler in Go

Page 3: Go opens doors for AI integration

Contents

By porting the TypeScript compiler from TypeScript to Go, the TypeScript development team is addressing some of the problems that can arise in a project, especially with a large code base. The original choice of TypeScript offered several advantages when processing TypeScript code, but this led to disadvantages in terms of scalability and performance. The decision to use Go was made due to the programming language's particular suitability in terms of complex data structures, good memory management and parallelizability.

With the porting and work on an improved interface to other processes, future TypeScript versions will also open up new possibilities for AI integration. AI-supported tools will be able to interact better with the type information of the source code via this API. In the interview, Anders Hejlsberg outlines, for example, the possibility of a Large Language Model (LLM) suggesting a suitable function name during the refactoring process.

Although it will be some time before the final release of the Go port of TypeScript, the code in the typescript-go repository is to be continuously developed and further features added, bringing it ever closer to completion.

(mack)