I was so happy in thinking that somebody wrote a performant tsc implementation.
% time tsc --outFile foo.js foo.ts 0m01.93s real 0m02.68s user 0m00.49s system
Ouch.
% cat foo.ts module Shapes { export class Rectangle { constructor (public height: number, public width: number) { } } }
Title is bit clickbaity, but the actual content is super interesting, too. :)
Yeah, the title is total clickbait. He didn’t compile the Typescript. He took the parser out of the compiler, ran it inside BigQuery, and was able to get a million ASTs in 40 seconds. While impressive, it’s nowhere near a full compile.
This really is very cool
s/Compiled/Parsed but this is ingenious.
I was so happy in thinking that somebody wrote a performant tsc implementation.
Ouch.
Title is bit clickbaity, but the actual content is super interesting, too. :)
Yeah, the title is total clickbait. He didn’t compile the Typescript. He took the parser out of the compiler, ran it inside BigQuery, and was able to get a million ASTs in 40 seconds. While impressive, it’s nowhere near a full compile.
This really is very cool
s/Compiled/Parsed but this is ingenious.