4 ms·
Given that modern ML libs can bring hundreds of megabytes of binaries with them, this is a great point. As for static analysis in Python, I am not sure it can g
by ashvardanian 4y ago
Given that modern ML libs can bring hundreds of megabytes of binaries with them, this is a great point. As for static analysis in Python, I am not sure it can get much worse :) The language is essentially built around the idea of making everything absolutely dynamic
- emptysea 4y agoTyping in python is pretty thorough nowadays, you’ve got overloads, literal types, strict null checking, unions It’s a more advanced type system than Go and Java
- dagmx 4y agoTyping is very surface level though and doesn’t negate what the person you’re replying to is saying: Python is über dynamic. It’s very trivial to have something pass the type hinting checks, but be completely different at time of use. Even if you hold on to a single instance of an object, it’s easy for any thing to monkey patch it.