A detailed examination of Python 3.12’s internal changes featuring the concept of ‘immortal’ objects, for performance enhancements

  • DefinitelyNotBirds
    link
    English
    -22
    edit-2
    1 year ago

    !Breaking News: Python Sets New Record in Slowness Competition! Participants in awe of how Python lags behind C++, Java, C#, Ruby, Go 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!!!

    • @[email protected]
      link
      fedilink
      English
      181 year ago

      Participants in awe of how Python lags behind C++, Java, C#, Ruby, Go and PHP

      Comparing Python to compiled languages is like C++ is pretty unreasonable.

    • @[email protected]
      link
      fedilink
      English
      121 year ago

      You will appreciate this news then since it’s an optimization that’ll make it faster.

    • @[email protected]
      link
      fedilink
      English
      51 year ago

      It’s python, it’s supposed to be slow.

      Assembly runs the hardware, c kernel runs the assembly, c++ runs the libraries on the kernel, python runs rhe c++, the human runs the python.

      Used to write all my uis in c++, but the turnaround time for python is just incredible, write the business logic there, if it turns out you’re using it to much lower it to c++.

    • @[email protected]
      link
      fedilink
      English
      59
      edit-2
      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 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 easier 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).

      The amount of Python libraries that are actually written in C is huge and Python makes no attempts to suggest it’s more performant than something like C - why do you think Python bindings even exist?

      Thinking speed is a ding on Python shows a gross lack of knowledge of Python and its purpose.

        • @[email protected]
          link
          fedilink
          English
          231 year ago

          What are you even on about? I’ve been writing code likely long before you were even born. And by your post history of drugmemes and suggesting Python scripts to people, I’m concerned you don’t know what you’re on about either.

            • skulblaka
              link
              fedilink
              111 year ago

              Incredible, DefinitelyNotBirds coming in with the unprecedented triple down! Unsatisfied with being proven wrong once and being made a fool of once, DefinitelyNotBirds is now making a fool of themselves in order to even the score. Amazing stuff, folks. Tune in for the next round of methposting and see what happens next!

                • @[email protected]
                  link
                  fedilink
                  English
                  9
                  edit-2
                  1 year ago

                  Ah, I see you’ve discovered the secret loophole to being infallible: simply declare it with a “lol” at the end! 🤣

                  This witty retort actually brought to you by ChatGPT (I made an account just for you).

                  Edit: Actually, here’s some more as they’re great:

                  Well, aren’t you the Picasso of self-assurance, splashing confidence all over the place! 🎨😄

                  Ah, I see you’ve mastered the art of selective attention! Impressive! 😄

                  Ah, the master of self-certainty and the commander of error-free expeditions!

                  Your unshakable confidence is truly a sight to behold, a shining monument to perfection! Bravo!

                  Your unwavering conviction could power a small village with its renewable energy!

                  I’m taking notes on your exceptional ability to dance gracefully between fact and fiction!

                  They say humility is overrated, and you, my friend, are living proof of that maxim!

        • @[email protected]
          link
          fedilink
          English
          151 year ago

          Tell me you have no idea what programming languages are used for without telling me you have no idea what programming languages are used for.

        • @DigitalWebSlinger
          link
          English
          61 year ago

          Too many negative words for chatgpt, imo. “isn’t”, “not”, etc, chatgpt is usually positive and friendly to a fault.

          Maybe you could provide a prompt that would output something substantially similar to what they wrote?

        • @[email protected]
          link
          fedilink
          English
          51 year ago

          Not everyone with an attention span longer than yours is ChatGPT.

          Assuming you’ve even read THIS far, that comment lacks all of the common gpt hallmarks.

        • LoafyLemon
          link
          fedilink
          11 year ago

          That’s rich coming from you when your first message was written by ChatGPT.

    • Eager Eagle
      link
      English
      271 year ago

      that’s like making a snarky comment about how shovels are terrible at hitting nails