TypeScript compiler switch to Go not C#

Content:

Original link: TypeScript compiler ported to native code, C# faithful ask why Go was used / DevClass.

A new TypeScript compiler is much faster than the old one. VS Code (1.5 MLOC) compile time shrank from 1 minute to 6 seconds. Impressive.

The new compiler is written in Go not C# (the old one was written in JavaScript), which has raised questions.

The arguments seems to be:

  1. they wanted a low level language with control over data layout
  2. they wanted the most portable language
  3. they wanted an AOT compiled compiler for fast startup

I think #1 is BS - compilers/transpilers are usually preferred to be done in very high level languages.

I buy #2 - .NET supports Linux/Windows/macOS + Android/iOS, Go supports Linux/Windows/macOS + *BSD/Solaris - *BSD/Solaris may not be so common but as build platform they are sure more common than Android/iOS.

I also buy #3 - AOT support in C# is a secondary thing.

Comments: