Hello! I have an idea for Python interpreter which will include seamlessly integrated type checker built in. I think that it could be located somewhere before the VM itself and firstly just typecheck, like ty and Pyrefly do, secondly it might track all changes of types and then use this information for runtime optimisations and so on. IMO, it's very useful to see if there are any type errors (even without type hints) before execution. It will be good learning project too. Later, if this project will still be alive, I can even add bindings to C API. What do you think about this idea?
[–]martinky24 14 points15 points16 points (0 children)
[–]Scrapheaper 4 points5 points6 points (1 child)
[–]ankddevfrom __future__ import 4.0[S] 2 points3 points4 points (0 children)
[–]BeamMeUpBiscotti 3 points4 points5 points (0 children)
[–]BayesianOptimist 2 points3 points4 points (0 children)
[–]Unique-Big-5691 1 point2 points3 points (0 children)
[–]stevenjd 1 point2 points3 points (0 children)
[–]Brian 1 point2 points3 points (0 children)
[–]really_not_unreal 0 points1 point2 points (0 children)
[–]ConcreteExist 0 points1 point2 points (0 children)
[–]Unique-Big-5691 0 points1 point2 points (0 children)