3 ms·
How would PyO3 help you avoid type hints and mypy?
by pansa2 6y ago
How would PyO3 help you avoid type hints and mypy?
- brundolf 6y agoI think the idea is that they move their business logic to the Rust code, since Rust's type system is more powerful and more sound, instead of trying to make do with MyPy
- zerkten 6y agoWouldn't it be more of a priority to move it for lower memory use and higher request speed? A better type system is good, but often these are a struggle with scaling interpreted languages compared to other lower level languages.
- brundolf 6y agoFor many people the primary appeal of Rust is its type system and related features (declaring deep immutability, pattern-matching, etc) > often these are a struggle with scaling interpreted languages compared to other lower level languages Not sure what's meant by this
- LockAndLol 6y agoIt would minimize the python surface required to be covered with type-hints and mypy. If possible, one could simply point django to the modules generated from rust. I'll give it a shot tonight and see how it goes. Now I'm curious.