JelleZijlstra / autotyping

Automatically add simple type annotations to your code
238 stars 20 forks source link

Make a writeup comparing autotyping against MonkeyType #74

Open bswck opened 4 months ago

bswck commented 4 months ago

Place bets for the duel of the history, autotyping vs MonkeyType

bswck commented 4 months ago

The way both things work is obviously different, I'm very interested in exploring when which tool fits best Or whether they could be combined?

JelleZijlstra commented 4 months ago

The main difference is that autotyping is a static tool (it just looks at the source code) and monkeytype is a dynamic tool (it requires you to run the code). That leads to different tradeoffs: autotyping is easier to set up because it doesn't require you to figure out a way to run code in production or similar to collect data; monkeytype is more powerful because it has actual runtime information instead of analyzing only the source code.