4 ms·
The other day someone posted rust was faster than C and I asked for context because the article had no proof. My post was flagged This article shows exactly wh
by SimpleGoto1080 6y ago
The other day someone posted rust was faster than C and I asked for context because the article had no proof. My post was flagged
This article shows exactly why C is nearly twice as fast as C++ and why rust is in between. This is a good article, the other thread was a bad article and bad thread
- steveklabnik 6y agoYou didn't ask for context. https://news.ycombinator.com/item?id=26448432 https://news.ycombinator.com/item?id=26448432 You asserted there was no context, and so you believed it to be wrong. Hacker News tends to frown on very short, negative posts from new accounts.
- SimpleGoto1080 6y agoCorrect. I misspoke. I wanted to edit but the site was down and it looks like I can't any longer
- SimpleGoto1080 6y agoMaybe it was negative but how else would you talk about a problem with an article? Every benchmark I seen with actual numbers and code had C++ faster except for one and we were able to check the source to why
- steveklabnik 6y agoEven this comment, while short, is much better! "doesn't have context" is, ironically, kind of context-free. What context did you want? Given what you just said, the answer is apparently "benchmarks." You don't even need to make your comment all that much longer to be much, much better (imho, I'm not dang, I don't own this place, heh) > With the lack of context in this article I'm willing to bet rust isn't actually faster than C into something like > Without benchmarks, I'm willing to bet rust isn't actually faster than C. Now that I write that out, it's even shorter! But it's way better. You've made a specific criticism of the article, rather than making a very abstract one. I'd still say that something this short isn't likely to be upvoted, but it isn't likely to be downvoted like you were. Compare your comment to this one: https://news.ycombinator.com/item?id=26446830 https://news.ycombinator.com/item?id=26446830 While it does start with some "I like Rust," imho that wasn't even necessary. It's also more aggressive than you were, but even got some replies. Even though it contained the same sentiment.
- SimpleGoto1080 6y agoThanks for the tips I'm not sure if people think benchmarks is just the numbers but I wanted to see source so I can why it was faster and what conditions. C++ is basically an assembler and saying you're faster than assembly is either completely untrue or it'd be poorly written assembly which should be examined. So essentially I wanted actual code with example numbers