Is this typical?
Fivefold Slower Compared to Go? Optimizing Rust's Protobuf Decoding Performance
11–20 of 63 posts
Re: Fivefold Slower Compared to Go? Optimizing Rust's Protobuf Decoding Performance
#12Earlier quoted context omitted.
Isn’t it tiring to think about every possible offence in the world and how someone somewhere will be offended by (knives, tires, cars, pens, saws, sharks, planes, needles, ropes, speakers, games, … you get the point) while writing an article about a programming language? At some point one needs to exercise common sense and learn to live in a public society where people speak and not everyone is out to offend you.
What does a weapon (a knife) have to do with an article about a programming language?
Is it wrong to post a meme of a dog sitting near fire - https://knowyourmeme.com/memes/this-is-fine As a joke from SREs who handle firefighting calls? Does it offend dog lovers, people who are scared of fire?
Re: Fivefold Slower Compared to Go? Optimizing Rust's Protobuf Decoding Performance
#13Earlier quoted context omitted.
Isn’t it tiring to think about every possible offence in the world and how someone somewhere will be offended by (knives, tires, cars, pens, saws, sharks, planes, needles, ropes, speakers, games, … you get the point) while writing an article about a programming language? At some point one needs to exercise common sense and learn to live in a public society where people speak and not everyone is out to offend you.
What does a weapon (a knife) have to do with an article about a programming language?
I guess it can also be viewed as a play on words, given that crablang is a fork.
Given that the creators of crablang explicitly say it was a "lighthearted response"[2] to some of Rust's changes, it makes sense that they'd use a meme for a logo.
That said, seems you're not alone in wanting a different logo[3].
[1]: https://knowyourmeme.com/memes/you-mess-with-crabo-you-get-a...
Re: Fivefold Slower Compared to Go? Optimizing Rust's Protobuf Decoding Performance
#14So in this case, with some modest performance engineering, Golang is surprisingly fast out of the box, and Rust requires more effort and increasingly less idiomatic code to reach the same result. Is this typical?
Go has a good perf story, but typically rust or c++ would be faster after heavy optimisation; and should be more or less on par with typical applications. This isn’t a critique of go, and shouldn’t surprise anyone.
Typically go also has unexpected optimisation hoops to jump through and problems related to the heavy use of channels (see the well documented answer here: https://stackoverflow.com/questions/47312029/when-should-you...), so you would generally expect it to be slower…
…but, naive implementations are always slower, and really, it’s probably much of a muchness out the box for most day to day uses.
In almost all situations (even python or Java) you can get great performance if you invest time and effort in it.
But idiomatic code typically faster than rust? No, not really.
Re: Fivefold Slower Compared to Go? Optimizing Rust's Protobuf Decoding Performance
#15So in this case, with some modest performance engineering, Golang is surprisingly fast out of the box, and Rust requires more effort and increasingly less idiomatic code to reach the same result. Is this typical?
Essentially it's a comparison between reference counting and tracing garbage collection based on reacheability.
Re: Fivefold Slower Compared to Go? Optimizing Rust's Protobuf Decoding Performance
#16In the image at the top of the article, why is the Rust crab altered to have "angry" eyes and holding a knife aimed at the Go gopher? Aside from the joke of "don't bring a knife to a protobuf fight" the inference of violence sucks and lessens the spirit of friendly competition and "all in good fun." I don't know if Rust has a code-of-conduct or rules for use of their mascot, but I bet this doesn't follow it.
It's the logo of CrabLang: https://crablang.org/
Re: Fivefold Slower Compared to Go? Optimizing Rust's Protobuf Decoding Performance
#17Earlier quoted context omitted.
What does a weapon (a knife) have to do with an article about a programming language?
Exactly, then why does it matter that the author had anything in their post as a figure of speech or analogy? Is it wrong to post a meme of a dog sitting near fire - https://knowyourmeme.com/memes/this-is-fine As a joke from SREs who handle firefighting calls? Does it offend dog lovers, people who are scared of fire?
Re: Fivefold Slower Compared to Go? Optimizing Rust's Protobuf Decoding Performance
#18Re: Fivefold Slower Compared to Go? Optimizing Rust's Protobuf Decoding Performance
#19So in this case, with some modest performance engineering, Golang is surprisingly fast out of the box, and Rust requires more effort and increasingly less idiomatic code to reach the same result. Is this typical?
While it’s a nice bed time story if you like go, the reality is no, it’s not typical. Go has a good perf story, but typically rust or c++ would be faster after heavy optimisation; and should be more or less on par with typical applications. This isn’t a critique of go, and shouldn’t surprise anyone. Typically go also has unexpected optimisation hoops to jump through and problems related to the heavy use of channels (…
it is concerning how much digging was required to optimize rust code in this case.
Re: Fivefold Slower Compared to Go? Optimizing Rust's Protobuf Decoding Performance
#20I got confused through it ; is the resulting code still technically safe?
I believe that how `unsafe` works, the programmer, instead of compiler, ensures safety.