JelleZijlstra / autotyping

Automatically add simple type annotations to your code
210 stars 17 forks source link

Make a writeup comparing autotyping against MonkeyType #74

Open bswck opened 5 days ago

bswck commented 5 days ago

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

bswck commented 5 days 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 5 days 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.