Fast and precise type checking for JavaScript

By Avik Chaudhuri, Panagiotis Vekris, Sam Goldman, Marshall Roch, Gabriel Levi. 2017

58 citations recorded by the source corpus.

In this paper we present the design and implementation of Flow, a fast and precise type checker for JavaScript that is used by thousands of developers on millions of lines of code at Facebook every day. Flow uses sophisticated type inference to understand common JavaScript idioms precisely. This helps it find non-trivial bugs in code and provide code intelligence to editors without requiring significant rewriting or annotations from the developer. We formalize an important fragment of Flow's analysis and prove its soundness. Furthermore, Flow uses aggressive parallelization and incrementalization to deliver near-instantaneous response times. This helps it avoid introducing any latency in the usual edit-refresh cycle of rapid JavaScript development. We describe the algorithms and systems infrastructure that we built to scale Flow's analysis.

Subfields: Artificial Intelligence, Information Systems, Program Analysis & Verification, Signal Processing, Software Engineering

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Ming-Ho Yee
  2. Arjun Guha
  3. Sheng Chen
  4. Shriram Krishnamurthi
  5. Martin Erwig
  6. Eric Walkingshaw
  7. John Peter Campora III
  8. Anders Møller

In Information Systems

  1. Ming-Ho Yee
  2. Arjun Guha
  3. Sheng Chen
  4. Shriram Krishnamurthi
  5. Martin Erwig
  6. Eric Walkingshaw
  7. John Peter Campora III
  8. Anders Møller

In Program Analysis & Verification

  1. Ming-Ho Yee
  2. Arjun Guha
  3. Sheng Chen
  4. Shriram Krishnamurthi
  5. Martin Erwig
  6. Eric Walkingshaw
  7. John Peter Campora III
  8. Anders Møller

In Signal Processing

  1. Arjun Guha
  2. Ming-Ho Yee

In Software Engineering

  1. Ming-Ho Yee
  2. Arjun Guha
  3. Sheng Chen
  4. Shriram Krishnamurthi
  5. Martin Erwig
  6. Eric Walkingshaw
  7. John Peter Campora III
  8. Anders Møller

Citations in the corpus