Hacker News new | ask | show | jobs
by heja_bruh 3232 days ago
This is why I've lost respect for lots of developers. I mean why the heck would someone re-implement a piece of code in memory unsafe language? We've a better language now, but this habit isn't dying very soon...
3 comments

Your account is 2 hours old and all of your comments consist of you complaining about C++/proselytising Rust. Please stop trolling.
What makes you think I'm trolling? Honestly, I'm tired of all these mediocre devs just pushing their keyboards in some inefficient, unsafe language and are totally unaware of the alternatives. If I'm showing them a greater alternative, am I trolling on this site? Can you show a single reply where I spoke something that doesn't holds true? I accept that there are certain opinions of every individuals that are not ought to match, certain disagreements and other things, but you should respect mine too.
Rust is god. We got it. Now come back to topic...

Btw. are we already again in these HTML / Flash wars where the second one was shilled as the only possible future for websites and incoming death for HTML? Oh wait, children can't even remember it... Search for it on Wikipedia (or probably even a printed encyclopedia).

"We've a better language now" -- presumably you mean Rust, which tries to break into C and C++'s market.

If you check https://forge.rust-lang.org/platform-support.html , ARM is only tier 2 support, while Kovri seems to care enough to cover ARM. That's a legitimate reason to not choose Rust.

what do you mean ? its safe if its been tested well.
It's a big if, and it's a hard to prove one has done it.

The best C++ pros make mistake all the time. Because it doesn't matter how much skill you got with a can of spray paint, if you do makeup with it, you will mess up from time to time.

I've mainly worked in embedded area, most bugs were missing logic / missing use case/ or just incorrect coding / handling / logic. Memory leaks were found early in the development phase. There's also lots of improvements in c++ when using pointers now. Are you telling me that a Rust code base with over 100 devs won't have any problems
> Are you telling me that a Rust code base with over 100 devs won't have any problems

If you've had 100 problems writing c++, rust will reduce 99 of them. No data races, no SEGFAULTS - yes its impossible, no pointer mathematics, no bad (nullptr) state of pointers and much much faster than c++. Just see the benchmarks here - https://benchmarksgame.alioth.debian.org/u64q/regexredux.htm...

Rust is 2.73 seconds and c++ is at 17 seconds LOL. C is ahead but not too much. ( 1 sec difference and who cares about a second when c++ is ....). Btw, have fun with your spray paint ;)

> Just see the benchmarks here …

But you only tell us about one of them!

http://benchmarksgame.alioth.debian.org/u64q/compare.php?lan...