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?

you are viewing a single comment's thread
view the rest of the comments
[–] 2 points 2 months ago (4 children)

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

  • source
  • parent
  • hideshow 4 child comments
  • [–] 3 points 2 months ago (1 child)

    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.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 2 points 2 months 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.

  • source
  • parent
  • [–] 3 points 2 months ago (1 child)

    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.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 2 months 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".

  • source
  • parent