• marcos@lemmy.world
    link
    fedilink
    arrow-up
    55
    ·
    3 days ago

    None of that is “Python”. You want to learn a language and automatically know everything there is to know using Math?

  • BougieBirdie@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    47
    ·
    3 days ago

    A hammer is beginner friendly, but learning to use a hammer doesn’t necessarily mean you’re ready to build a house with it.

      • BatmanAoD@programming.dev
        link
        fedilink
        arrow-up
        7
        ·
        3 days ago

        The reason C becomes relevant to Python users isn’t typically because the interpreter is written in C, but because so many important libraries (especially numpy) are implemented in C.

        • Corbin@programming.dev
          link
          fedilink
          English
          arrow-up
          2
          ·
          2 days ago

          Extension modules are implemented in C because the interpreter is written in C. If it were written in another language, folks would write extension modules for that language instead. Also, it would be less relevant if people used portable C bindings like cffi, which are portable to PyPy and other interpreters… but they don’t.

          • BatmanAoD@programming.dev
            link
            fedilink
            arrow-up
            1
            ·
            2 days ago

            Extension modules can be, and are, written in Rust and C++. And PyPy has a compatibility layer to run extensions (such as numpy) that are written for CPython.

            The reason extension modules are typically in C is of course the API is in C, but that’s true of cffi as well (though you’re right that cffi is more portable). And the reason the API is in C is more fundamental than “CPython is written in C”.

    • AdNecrias@lemmy.pt
      link
      fedilink
      arrow-up
      2
      ·
      3 days ago

      Among all of them at least python is the choice generically people learn when they don’t want to learn programming, just want to program stuff as a helper tool to manage data. For those, python is just fine and the learning material around is tailored to for that.

      That’s how you trick people into programming. You then see people making scripts that take days to run, but it’s fine, they’re only going to use it twice and are busy enough to be able to wait

      • PapstJL4U@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 days ago

        You then see people making scripts that take days to run, but it’s fine, they’re only going to use it twice and are busy enough to be able to wait

        Sponsored by “terrible python code by Matt Parker”