A detailed examination of Python 3.12’s internal changes featuring the concept of ‘immortal’ objects, for performance enhancements
Understanding Immortal Objects in Python 3.12: A Deep Dive into Python Internals
Submitted 1 year ago by abhi9u@lemmy.world to technology@lemmy.world
https://codeconfessions.substack.com/p/understanding-immortal-objects-in
DefinitelyNotBirds@lemmy.world 1 year ago
Breaking News: Python Sets New Record in Slowness Competition! Participants in awe of how Python lags behind C++, Java, C#, Ruby, and PHP in the race to the finish line. Stay tuned as we watch Python take its leisurely stroll in the world of programming speed! 🐌😉
fartsparkles@sh.itjust.works 1 year ago
Python isn’t used for the problem space of speed… Try using PHP for data science visualisation. Need a library to solve a problem? Ruby probably doesn’t have it. Need to write a quick script to transform some data, better spend a more time than doing it manually as you accidentally allocate memory incorrectly in C++. Want to scrape a website for some text? Enjoy tonnes of boilerplate and 30 lines of Java vs the three lines of Python.
Python isn’t about speed, it’s not even about being the best at anything, it’s about being good enough at pretty much any task your average coder needs to pull off in as short a time as possible, all with a single language. Plus, it’s way to bounce to another language from Python should you need to (for instance it’s much easier to write a speed-critical component in Go vs the entire application stack in Go - Python has a much lower cognitive load and developers can easily extend or refactor thanks to Pythonic code).
Thinking speed is a ding on Python shows a gross lack of knowledge of Python and its purpose.
DefinitelyNotBirds@lemmy.world 1 year ago
Tell me you are abusing chat gpt without telling me you are abusing chat gpt
eager_eagle@lemmy.world 1 year ago
that’s like making a snarky comment about how shovels are terrible at hitting nails
magic_lobster_party@kbin.social 1 year ago
Try training a deep learning model on your GPU with some other programming language.