1. 15
  1.  

  2. 6

    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) { }
        }
    }
    
    1. 5

      Title is bit clickbaity, but the actual content is super interesting, too. :)

      1. 9

        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.

      2. 2

        This really is very cool

        1. 2

          s/Compiled/Parsed but this is ingenious.