I mean by useless is it’s so slow you can’t make games or even big projects for GUI, only you can do is AI/ML, Data Science, and basic stuff. I think Rust is better because of its speed and language capabilities?

  • atzanteol@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 day ago

    Was it though? Or is it like other things “written in Python” where all of the heavy work is handled by C libraries?

    • Solemarc@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      20 hours ago

      I hate this argument on principal, if I write a game with Pygame, it’s written in Python not C.

      Balatro is written in Lua not C just because Love uses SDL.

      This is like saying Python, CPP, JS, PHP, LUA, Perl, Dart, C# and Java are just written in C.

      This is like saying Rust isn’t a real language because it relies on LLVM which is written with C/CPP.

      If I split the lua code in balatro from the SDL library, I don’t have a game anymore.

      • atzanteol@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        1
        ·
        10 hours ago

        Why do you feel a need to be able to claim that something is “written in Lua” or “Python” when it’s using native libraries? Many games are using a mix of languages these days. There’s no shame in it and I didn’t imply there is.

        People get very confused over this thinking that “Python is very fast at number crunching” because of things like numpy which is written partly in C to achieve that performance.

        This is like saying Rust isn’t a real language because it relies on LLVM which is written with C/CPP.

        That’s entirely different - I’m not talking about the interpreter or compiler. Just the runtime code.

    • Womble@piefed.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 day ago

      Python itself is just a program written in c, every time you do len(string) you are calling out of the python interpreter into compiled c code. The distinction between python wrapped c library and a python lib can be fuzzy.

      • atzanteol@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        1
        ·
        10 hours ago

        That’s not what I’m talking about. Things like “numpy” which are actually written with a fair amount of C for performance. Or pandas which uses Cython to trans-pile Python to C to compile.

        It’s not “pure python”.