{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,24]],"date-time":"2026-09-24T04:44:36Z","timestamp":1790225076439,"version":"4.1.0"},"reference-count":46,"publisher":"Association for Computing Machinery (ACM)","issue":"OOPSLA","license":[{"start":{"date-parts":[[2017,10,12]],"date-time":"2017-10-12T00:00:00Z","timestamp":1507766400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. ACM Program. Lang."],"published-print":{"date-parts":[[2017,10,12]]},"abstract":"<jats:p>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.<\/jats:p>","DOI":"10.1145\/3133872","type":"journal-article","created":{"date-parts":[[2017,10,13]],"date-time":"2017-10-13T11:15:45Z","timestamp":1507893345000},"page":"1-30","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":37,"title":["Fast and precise type checking for JavaScript"],"prefix":"10.1145","volume":"1","author":[{"given":"Avik","family":"Chaudhuri","sequence":"first","affiliation":[{"name":"Facebook, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Panagiotis","family":"Vekris","sequence":"additional","affiliation":[{"name":"University of California at San Diego, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Sam","family":"Goldman","sequence":"additional","affiliation":[{"name":"Facebook, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Marshall","family":"Roch","sequence":"additional","affiliation":[{"name":"Facebook, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Gabriel","family":"Levi","sequence":"additional","affiliation":[{"name":"Facebook, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2017,10,12]]},"reference":[{"key":"e_1_2_1_1_1","volume-title":"Proceedings of the Seventh Annual IEEE Symposium on Logic in Computer Science (1992","author":"Aiken Alexander","year":"1855","unstructured":"Alexander Aiken and Edward L. Wimmers. 1992. Solving systems of set constraints. Proceedings of the Seventh Annual IEEE Symposium on Logic in Computer Science (1992), 329\u2013340. http:\/\/ieeexplore.ieee.org\/lpdocs\/epic03\/wrapper.htm? arnumber=185545"},{"key":"e_1_2_1_2_1","doi-asserted-by":"publisher","DOI":"10.1145\/174675.177847"},{"key":"e_1_2_1_3_1","doi-asserted-by":"publisher","DOI":"10.1145\/2983990.2983992"},{"key":"e_1_2_1_4_1","doi-asserted-by":"publisher","DOI":"10.1007\/11531142_19"},{"key":"e_1_2_1_5_1","doi-asserted-by":"publisher","DOI":"10.1145\/2660193.2660214"},{"key":"e_1_2_1_6_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-662-44202-9_11"},{"key":"e_1_2_1_7_1","doi-asserted-by":"publisher","DOI":"10.1145\/3110285"},{"key":"e_1_2_1_8_1","doi-asserted-by":"publisher","DOI":"10.1145\/2951913.2951928"},{"key":"e_1_2_1_9_1","doi-asserted-by":"publisher","DOI":"10.1145\/2983990.2984017"},{"key":"e_1_2_1_10_1","doi-asserted-by":"crossref","unstructured":"Avik Chaudhuri Panagiotis Vekris Sam Goldman Marshall Roch and Gabriel Levi. 2017. Fast and Precise Type Checking for JavaScript (Extended version). https:\/\/arxiv.org\/abs\/1708.08021 . (2017).","DOI":"10.1145\/3133872"},{"key":"e_1_2_1_11_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-662-48288-9_11"},{"key":"e_1_2_1_12_1","doi-asserted-by":"publisher","DOI":"10.1145\/2384616.2384659"},{"key":"e_1_2_1_13_1","unstructured":"Closure. 2009. Closure Compiler. https:\/\/developers.google.com\/closure\/compiler\/ . (2009). Accessed: 2016-11-15."},{"key":"e_1_2_1_14_1","unstructured":"Yann Collet. 2011. LZ4-Extremely fast compression. (2011). https:\/\/github.com\/lz4\/lz4 ."},{"key":"e_1_2_1_15_1","unstructured":"Dart. 2011. Dart Language Specification. https:\/\/www.dartlang.org\/guides\/language\/spec . (2011). Accessed: 2016-11-15."},{"key":"e_1_2_1_16_1","doi-asserted-by":"publisher","DOI":"10.1145\/3009837.3009882"},{"key":"e_1_2_1_17_1","doi-asserted-by":"publisher","DOI":"10.1145\/217839.217858"},{"key":"e_1_2_1_18_1","unstructured":"Manuel F\u00e4hndrich and Alex Aiken. 1996. Making Set-Constraint Program Analyses Scale. Technical Report. Berkeley CA USA."},{"key":"e_1_2_1_19_1","doi-asserted-by":"publisher","DOI":"10.1145\/277650.277667"},{"key":"e_1_2_1_20_1","doi-asserted-by":"crossref","unstructured":"Cormac Flanagan. 1997. Effective Static Debugging via Componential Set-Based Analysis. Ph.D. Dissertation. Rice University.","DOI":"10.1145\/258916.258937"},{"key":"e_1_2_1_21_1","doi-asserted-by":"publisher","DOI":"10.1145\/316686.316703"},{"key":"e_1_2_1_22_1","doi-asserted-by":"publisher","DOI":"10.1145\/1391289.1391293"},{"key":"e_1_2_1_23_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-19718-5_14"},{"key":"e_1_2_1_24_1","unstructured":"Hack. 2014. Hack Language Specification. https:\/\/github.com\/hhvm\/hack-langspec . (2014). Accessed: 2016-11-15."},{"key":"e_1_2_1_25_1","doi-asserted-by":"publisher","DOI":"10.1145\/2989225.2989226"},{"key":"e_1_2_1_26_1","doi-asserted-by":"publisher","DOI":"10.1145\/2025113.2025125"},{"key":"e_1_2_1_27_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-03237-0_17"},{"key":"e_1_2_1_28_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-15769-1_20"},{"key":"e_1_2_1_29_1","doi-asserted-by":"publisher","DOI":"10.1145\/2635868.2635904"},{"key":"e_1_2_1_30_1","volume-title":"International Workshop on Foundations of Object-Oriented Languages (FOOL)","volume":"10","author":"Lee Hongki","year":"2012","unstructured":"Hongki Lee, Sooncheol Won, Joonho Jin, Junhee Cho, and Sukyoung Ryu. 2012. SAFE: Formal specification and implementation of a scalable analysis framework for ECMAScript. In International Workshop on Foundations of Object-Oriented Languages (FOOL), Vol. 10."},{"key":"e_1_2_1_31_1","doi-asserted-by":"publisher","DOI":"10.1145\/2508168.2508170"},{"key":"e_1_2_1_32_1","volume-title":"29th European Conference on Object-Oriented Programming (ECOOP 2015) (Leibniz International Proceedings in Informatics (LIPIcs)), John Tang Boyland (Ed.)","volume":"37","author":"Park Changhee","year":"2015","unstructured":"Changhee Park and Sukyoung Ryu. 2015. Scalable and Precise Static Analysis of JavaScript Applications via LoopSensitivity. In 29th European Conference on Object-Oriented Programming (ECOOP 2015) (Leibniz International Proceedings in Informatics (LIPIcs)), John Tang Boyland (Ed.), Vol. 37. Schloss Dagstuhl\u2013Leibniz-Zentrum fuer Informatik, Dagstuhl, Germany, 735\u2013756."},{"key":"e_1_2_1_33_1","unstructured":"Fran\u00e7ois Pottier. 1998. Type Inference in the Presence of Subtyping: from Theory to Practice. Research Report 3483. INRIA. http:\/\/hal.inria.fr\/docs\/00\/07\/32\/05\/PDF\/RR-3483.pdf"},{"key":"e_1_2_1_34_1","volume-title":"Simplifying Subtyping Constraints: a Theory. Information &amp","author":"Pottier Fran\u00e7ois","year":"2001","unstructured":"Fran\u00e7ois Pottier. 2001. Simplifying Subtyping Constraints: a Theory. Information &amp; Computation 170, 2 (Nov. 2001), 153\u2013183."},{"key":"e_1_2_1_35_1","doi-asserted-by":"publisher","DOI":"10.1145\/2676726.2676971"},{"key":"e_1_2_1_36_1","doi-asserted-by":"publisher","DOI":"10.1145\/1375581.1375602"},{"key":"e_1_2_1_37_1","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-46425-5_24"},{"key":"e_1_2_1_38_1","doi-asserted-by":"publisher","DOI":"10.1145\/503272.503292"},{"key":"e_1_2_1_39_1","doi-asserted-by":"publisher","DOI":"10.1145\/325694.325706"},{"key":"e_1_2_1_40_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-31987-0_28"},{"key":"e_1_2_1_41_1","doi-asserted-by":"publisher","DOI":"10.1145\/1328438.1328486"},{"key":"e_1_2_1_42_1","volume-title":"Proceedings of the 3rd International Symposium on Static Analysis","author":"Trifonov Valery","year":"1996","unstructured":"Valery Trifonov and Scott Smith. 1996. Subtyping Constrained Types. SAS \u201996: Proceedings of the 3rd International Symposium on Static Analysis (1996), 349\u2013365."},{"key":"e_1_2_1_43_1","unstructured":"TypeScript. 2012. TypeScript Design Goals. https:\/\/github.com\/Microsoft\/TypeScript\/wiki\/TypeScript-Design-Goals . (2012). Accessed: 2016-11-15."},{"key":"e_1_2_1_44_1","unstructured":"Dimitris Vardoulakis. 2012. CFA2: Pushdown Flow Analysis for Higher-Order Languages. Ph.D. Dissertation. Northeastern University."},{"key":"e_1_2_1_45_1","doi-asserted-by":"publisher","DOI":"10.1145\/2908080.2908110"},{"key":"e_1_2_1_46_1","doi-asserted-by":"publisher","DOI":"10.1006\/inco.1994.1093"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3133872","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3133872","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,9,10]],"date-time":"2026-09-10T16:06:53Z","timestamp":1789056413000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3133872"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2017,10,12]]},"references-count":46,"journal-issue":{"issue":"OOPSLA","published-print":{"date-parts":[[2017,10,12]]}},"alternative-id":["10.1145\/3133872"],"URL":"https:\/\/doi.org\/10.1145\/3133872","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2017,10,12]]},"assertion":[{"value":"2017-10-12","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}