• @brombek
    link
    124 years ago

    Performance metrics generally put Rust squarely ahead of Go, but not by a lot.

    10x, 4x and 3x performance difference is not “but not by a lot”, it is al lot! :D Imagine needing 1 server vs 10 servers to run same app. Same for memory.

    Can people stop contradicting themselves when comparing X with Rust just to make X look less horrible, please!

  • @exapsy@sh.itjust.works
    link
    fedilink
    3
    edit-2
    9 months ago

    Nop nop nop! If I ever make a single API in Rist ever again I’m gonna go to the last apartment’s floor, break the door for the roof, get a power cable from one of the solar panels installed there, tie it up to the door handle and then run and jump so I have a less painful death than writing a Rust “microservice”.

    Rust is beautiful language. In its own weird way. But not for multithreading async communication. Let’s not start talking about tokio and async-std and their controversies and the language hasn’t figured out yet a standard way to do async. And definitely not for connecting to databases or other standard things you do very easily in Go or NodeJS, especially in Go where you have Goroutines and really easy to read and write maintainable code. Last time I wanted to connect to a database in Rust for a microservice I was doing 100 times more leaning the “ecosystem” of Postgres in rust or MongoDB, and I still didn’t manage to do it and so I thought wait a minute, every single time I’ll have to figure or someone else these shits out? Fuck it, back to Go.

    I’ll do other things in Rust. Like pure system programming. Just ……… not web services.

    • Arghblarg
      link
      fedilink
      29 months ago

      Different tools for different jobs. If performance was the absolute, only metric then garbage-collected languages would not exist (and trust me, I’m no fan of Java, but like Go a lot – and its GC is pretty good AFAIK). Python has its place, even if it will never be as fast as C/C++/Rust.

      • @exapsy@sh.itjust.works
        link
        fedilink
        1
        edit-2
        9 months ago

        Exactly, each tool for its job. Comparing tools like they’re models (edit: Super models, as in Victoria secret, god I forgot we’re nerds and we might think other things with term “model”) in a model competition is just stupid and tired of seeing it.

        Even at this point, in a world where Rust’ers LOVE to say “Rust is better than C++”, C++ has its massive place in comparison to Rust because Rust treats you like a kid and in C++ you can build unsafe code for embedded systems and very low level code with more reliability and less maintenance and you’ll be sure for it to be supported.

        I’m for improving all languages, I mean the ones we use regularly, and for evolution or even building new languages to solve problems in a better way. But when it comes to just pure stupid comparisons and comparing apples to oranges it’s just frustrating.

  • Ephera
    link
    24 years ago

    Python is a great example, it is one of the slowest languages but has some of the cleanest syntax.

    I really don’t understand this view of Python. It lacks proper syntax concepts for many language features, such as private methods, constant values and overriding of methods. It has tons of inconsistencies in the standard lib. Its import mechanisms often force you to give redundant names to files. You have to order your methods in the reverse-order of how they call each other. And it lacks many visual cues, in particular scope delimiters.

    Sure, that last part is “clean”, if you want to be reading a book, but for reading code, I think seeing your scopes clearly makes it a cleaner reading experience.

    • @Zimmax
      link
      14 years ago

      Many of the things you mentioned are features. Somehow, it all works well as a complete package. Go figure…

  • DessalinesA
    link
    1
    edit-2
    4 years ago

    This is pointless without comparisons of web servers in those languages. Here those are for rust vs go compared.

    Go has a lot more frameworks written for it, but actix (this is what lemmy uses BTW), is twice as fast as the fastest go framework.