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?

  • brucethemoose@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    2 hours ago

    …Have you tried ML projects in Rust?

    I mean, ML/data science devs use Python because the bajillion underlying libraries and implementations are already there.

    It’s not perfect. But that’s fine, because it’s a pretty good prototyping language for researchers, and anything performance sensitive is done in libraries anyway.


    If you want a real world example, see: Mistral.rs vs vllm.

    • socsa@piefed.social
      link
      fedilink
      English
      arrow-up
      2
      ·
      44 minutes ago

      PyTorch in particular is literally just a dispatching front end for CUDA anyway. It’s actually an incredibly powerful tool for GPGPU development, and you will struggle to make faster GPU DSP by hand.

      People making these arguments are just incredibly out of date. You can basically use python to trace super optimized GPU compute kernels and then drop them into whatever language you want via torchscript, onnx, trt, whatever.

  • who@feddit.org
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 hours ago

    you can’t make games or even big projects for GUI

    Oh no? Someone should probably tell the people who made Eve Online.

  • leanleft@lemmy.ml
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 hours ago

    i think a key consideration is wether there are alot of developer for the lang.
    a foss project will grow faster if its written in rust,js,cpp,python

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

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

      • Womble@piefed.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        7 minutes 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.

  • Feyd@programming.dev
    link
    fedilink
    arrow-up
    2
    ·
    3 hours ago

    Python obviously isn’t useless, but it is both slow, and if you’re making serious software, the worst developer experience I’ve ever had to deal with. It makes the easy things easy and the hard things hard, so to speak

    • refalo@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      5 hours ago

      Demonstrably false, there are many cases where the answer is yes… it’s just that there’s also a lot of no.

      • fruitcantfly@programming.dev
        link
        fedilink
        arrow-up
        3
        ·
        4 hours ago

        Obviously. It is, however, a good heuristic. The headlines that can be answered in the affirmative are very much in the minority

  • Dookieman12@piefed.social
    link
    fedilink
    English
    arrow-up
    16
    ·
    6 hours ago

    Saying one programming language is better than another is ignorant; it’s like arguing a screwdriver is better than a wrench.

    Each language has their strengths and weaknesses that make them better at some tasks and worse at other. Python’s strength is ease of development. Performance isn’t a big concern if you just want to quickly develop the app you want.

    Rust might be more performant, but if development takes twice as long and the app only runs once or a few times, that benefit is unrealized.

    • CarlLandry357@lemmy.worldOP
      link
      fedilink
      arrow-up
      2
      ·
      6 hours ago

      “Python’s strength is ease of development”

      That’s what I usually see with Python. I think that’s the reason people should choose it.

      “Performance isn’t a big concern if you just want to quickly develop the app you want.”

      You’re correct with that, but if your project is to make a touch screen app for fast food restaurant, now you’re wrong because of Python’s performance.

      • Piatro@programming.dev
        link
        fedilink
        English
        arrow-up
        6
        ·
        6 hours ago

        Python is very much “good enough” for that kind of environment. The touch screen drivers on the other hand, yes, should probably be rust/c.

  • onlinepersona@programming.dev
    link
    fedilink
    English
    arrow-up
    6
    ·
    6 hours ago

    No. Next question.

    (insert spongebob meme showing the fat dude a bunch of big python projects upon which many things run in this world)

  • TheMightyCat@ani.social
    link
    fedilink
    arrow-up
    6
    ·
    7 hours ago

    I don’t like python personally, but saying its useless is quite far detached from reality considering all the python projects.

    You can argue its slow and i would agree, but if people make alot of stuff with it its clearly not useless.

    A programing language cannot be better than another one because its personal opinion.

    • CarlLandry357@lemmy.worldOP
      link
      fedilink
      arrow-up
      1
      ·
      5 hours ago

      if people make alot of stuff with it its clearly not useless

      You’re correct, but we cannot avoid that it’s limites to basic stuff, you can’t make a facebook with pytho with good speed.

      • PM_ME_VINTAGE_30S [he/him]@anarchist.nexus
        link
        fedilink
        English
        arrow-up
        1
        ·
        4 hours ago

        I mean I’m posting from PyLova (Python-based and it’s been mostly good. I was truly skeptical of the viability of a Python-based Fediverse platform when PieFed first dropped, and I’m still skeptical of Python over Rust from a purely technical perspective, but it’s been smooth sailing on this instance so far 🤷