How Python was Shaped by leaky Internals, Armin Ronacher, Flask framework
Видео с мероприятий {speach! · 9 位 HN 用户推荐 · 2019–2023
Flask 作者 Armin Ronacher 剖析 Python 内部实现如何泄漏并塑造了语言
No offense (I use Python all the time), but Python seems almost like the worst of all worlds, except for ease of use in the first month of using it -- with its only advantage being library inertia (which is a massive advantage in practice though). As eg: here's an excellent talk on the cruft in Python internals by Armin Ronacher: [link]
— ssivark, 2019PyPy is often a factor of 10 behind julia performance and projects like Numba, PyTorch (the PyTorch people had to build their own Python JIT compiler yikes!), etc. will always have a more restricted scope than a project like Julia because Python's very semantics make many optimizations impossible. Here's a great talk from the author of the famous Flask library in Python: [link] where he discusses
— eigenspace, 2020I highly recommend this talk by Armin Ronacher as an accompaniment (or prologue, or epilogue) to the article: "How Python was shaped by leaky internals", [link]
— nerdponx, 2020I found the following talks by Armin Romacher very informative on these topics (C API, why python is more difficult to speed up than JS). [link] [link]
— ilyagr, 2020It can be optimised and for sure there's some impressive attempts at doing so. However I don't think pure Python will ever be considered "fast" as these things necessarily get in the way. I highly recommend the two videos posted here that go into more detail as to why there are limits to how far optimisation can go: [link] [link]
— arc776, 2020Python lets you do _far_ more shenanigans that Javascript does; and a lot of large libraries depend on some of that behavior. Breaking it would probably cause a new 2 -> 3 situation. [link]
— nemothekid, 2021I think "a + b" is a good example. I really recommend the talk I linked ( [link] ), it gets deep into this stuff. I don't think anyone benefits from "a + b" having so many special cases.
— haberman, 2021How Python was Shaped by leaky Internals(2016): [link]
— fault1, 2022You can't have Python run that much faster without loosing lots of features. I guess if they open sourced it, people wouldn't be that impressed with what they implemented. This video [0] from the creator of Flask explains it quite well. Here [1] is Guido talking about Mojo being in early days and sharing some technical details. [0] [link] [1] [link]
— gobdovan, 2023