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

  • fartsparkles@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    48
    arrow-down
    4
    ·
    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.

      • fartsparkles@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        17
        arrow-down
        1
        ·
        1 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@kbin.social
            link
            fedilink
            arrow-up
            10
            arrow-down
            3
            ·
            1 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!

              • fartsparkles@sh.itjust.works
                link
                fedilink
                English
                arrow-up
                8
                arrow-down
                1
                ·
                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!

      • adhdplantdev@lemm.ee
        link
        fedilink
        English
        arrow-up
        12
        arrow-down
        1
        ·
        1 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@lemmy.world
        link
        fedilink
        English
        arrow-up
        5
        ·
        1 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?