A fun benchmark exploring what happens when you try to typecheck a TypeScript union of all JavaScript Safe Integers (from Number.MIN_SAFE_INTEGER to Number.MAX_SAFE_INTEGER). The full union file would be ~315 zettabytes, and typechecking it with TSC would theoretically require 26 yottabytes of RAM. Benchmarks compare TSC vs

5m read timeFrom playfulprogramming.com
Post cover image
Table of contents
Post contentsFootnotes Copy link Link copied!

Sort: