Repository navigation
NeverSharp is a C# port of the TypeScript 6.0.3 compiler, made as a research project and measured against typescript-go 7.0.2 and tsrs 0.18.0 under a pre-registered protocol. The project is closed; the full write-up is docs/report-v1.md.
Download
Two packages with the NativeAOT benchmark drivers of the optimized track (Track O), built from this tag:
neversharp-1.0.0-win-x64.zip(Windows x64):neversharp-ws.exe(Workstation GC) andneversharp-srv.exe(Server GC). All measurements of the project used these builds.neversharp-1.0.0-linux-x64.tar.gz(Linux x64, glibc 2.38+, e.g. Ubuntu 24.04+, Debian 13+, Fedora 39+):neversharp-wsandneversharp-srv. Checked for identical output: the diagnostics and emitted files of all five benchmark repositories match the Windows build byte for byte, under both GCs. Not benchmarked on Linux.
They are benchmark tools, not a replacement for tsc. They read a list of TypeScript files and parse, bind, check and optionally emit them as one program, with TypeScript 6.0.3's default options plus noResolve. There is no tsconfig support. They print one JSON line with counts, and can dump the diagnostics and the emitted files.
dir /b /s C:\path\to\project\*.ts > files.txt
.\neversharp-ws.exe --check files.txt
.\neversharp-ws.exe --check --dump-diagnostics diag.txt files.txt
.\neversharp-ws.exe --check --pool tsrs files.txt
On Linux the same commands are ./neversharp-ws .... README.txt in each package lists every option; run-example.cmd / run-example.sh runs a two-file example.
Results in short
Pre-registered endpoints, against typescript-go (lower is faster):
| Scope | Factor |
|---|---|
| Parsing, unoptimized faithful port (Track F) | 6.31, no parity |
| Parsing, optimized | 0.60, faster |
| Parse+bind | 1.207, inconclusive |
| Parse+bind+check | 1.680, no parity |
| Parse+bind+check+emit | 1.030, within 20 % |
Later runs, after tuning on the same corpus:
- Against typescript-go: check 0.756, emit 0.782.
- Against tsrs, with tsrs's kind of checker pool: 2.15× tsrs's time with Workstation GC and 1.83× with Server GC.
All measurements are from one Windows machine.
Notes
- Code signing: the Windows binaries are not code-signed; SmartScreen may warn on first start.
- NU1903: the build warning (GHSA-p3jp-9v83-76w9,
Microsoft.DotNet.ILCompiler10.0.13) concerns .NET's Brotli decompression, which the drivers do not use. - SHA-256 of both packages: see
SHA256SUMS.txt. - Authorship: the code was written by AI agents (Claude Opus 5.5 and Sonnet 5.5) under the author's direction.
Apache License 2.0. The release contains code ported from TypeScript and typescript-go (Microsoft) and adapted from tsrs. "TypeScript" is a trademark of Microsoft Corporation; this project is not affiliated with or endorsed by Microsoft.