Why the Sorbet typechecker is fast - Made of Bugs

<![endif] Made of Bugs Archives Subscribe Author Jan 23, 2020 This is the second in an indefinite series of posts about things that I think went well in the Sorbet project. The previous one covered our testing approach. Sorbet is fast. Numerous of our early users commented specifically on how fast it was, and how much they appreciated this speed. Our informal benchmarks on Stripe’s codebase clocked it as typechecking around 100,000 lines of code per second per core, making it one of the fastest production typecheckers we are aware of. In this post, I want to explore some of the reasons for Sorbet’s performance. 🔗︎ Sorbet is written in C++. We chose C++ for a number of reasons, but performance was definitely one of them. We knew from the start of the project that we wanted to build a fast tool, and believed C++ would give us our best shot at doing so. Writing ...

Linked on 2020-04-10 23:52:43 | Similar Links