Message177338
Alex: yes, the builtins could almost all be re-implemented in pure Python, but there is a performance consideration vs. benefit (e.g. if we re-implemented map() in Python which VMs would use it vs. implement it in some native way for performance?).
But one place I think there could be a benefit w/o performance issues is the built-in exceptions as you should be able to store references to the classes to help minimize the added cost of startup creating the exceptions from Python code.
Amaury: other VMs and easier extensibility in the future. We might as well all share the burden of maintaining pure Python versions instead of re-implementing the same thing over and over in little VM silos. And if some new thing needs to be added for a module it's easier to do it in Python than C (which then also continues to benefit other VMs). |
|
Date |
User |
Action |
Args |
2012-12-11 14:16:43 | brett.cannon | set | recipients:
+ brett.cannon, amaury.forgeotdarc, pitrou, christian.heimes, pjenvey, Arfrever, alex, brian.curtin, asvetlov, chris.jerdonek, serhiy.storchaka |
2012-12-11 14:16:43 | brett.cannon | set | messageid: <1355235403.4.0.904671744211.issue16651@psf.upfronthosting.co.za> |
2012-12-11 14:16:43 | brett.cannon | link | issue16651 messages |
2012-12-11 14:16:42 | brett.cannon | create | |
|