2024-03-14

  • In a previous/recent post, I mentioned that you could, in theory, use runtime profiling data of your program to determine the type information for your program (which is normally determined in source code, written by the developer, and then verified by the compiler). It was just an interesting thought experiment, but seemed hard to implement for operationally. Anyways, something amazing happened recently. I went to a coffee meetup in midtown for systems engineers/enthusiasts. While there, I met a guy who was working on “runtime profiling” stuff. So, I shared my little theory with him about providing type information to dynamically typed programs using runtime information. He told me, “Yes! That’s indeed a great idea! And, when I worked at Facebook, they had a system that did exactly that for Python!” And then he showed me the Githup repo for monkeytype, which is indeed almost exactly what I described. So cool. I love experiences like that.

Date
March 14, 2024