News for hackers. Stuff that matters.
Re:Performance Showdown: Rust vs Javascript (2020) by mamcx on Friday February 12, 2021 @07:45AM (#26113037)
> This is why no language is "just faster" than another.

No, that is not what this is. Rust IS faster than most languages on earth.

This is FACT.

Some tools ARE better than others. You only heard the "opposite" when a outlier happened or a user misunderstood how use the tool.

Also this apply to interpreted languages too!:

http://lambda-the-ultimate.org/node/5075

IF you hit their sweet spots.

PD: Just check the Rust reddit. Tons of case of naive newcomers with massive improvements on speed/performance just porting to Rust.

---

This kind of history is similar to "A virus happened on OS X/Linux!" Then say "No OS is more secure than others!" is a massive flaw. Some are more secure. Only this time is news precisely because is RARE!

Re:Performance Showdown: Rust vs Javascript (2020) by taneq on Friday February 12, 2021 @07:53AM (#26113099)
Honestly the safety is a far bigger drawcard to me than the performance. C(++)'s UB just scares me these days because it's often so subtle.
Re:Performance Showdown: Rust vs Javascript (2020) by lionkor on Friday February 12, 2021 @08:04AM (#26113174)
If you have to work with C++, I recommend using -fsanitize=undefined so you get runtime-errors when your program runs into undefined behavior. Very handy!
Re:Performance Showdown: Rust vs Javascript (2020) by Leherenn on Friday February 12, 2021 @08:49AM (#26113586)
It's really useful, but it's dynamic. You need tests that actually trigger the UB to make it useful.
Re:Performance Showdown: Rust vs Javascript (2020) by uglycoyote on Friday February 12, 2021 @03:25PM (#26118142)
UB means unsigned byte in this context?
Re:Performance Showdown: Rust vs Javascript (2020) by SAI_Peregrinus on Friday February 12, 2021 @05:02PM (#26119067)
Undefined Behavior.

It adds a runtime sanitizer to detect some (but not all) UB.

Re:Performance Showdown: Rust vs Javascript (2020) by taneq on Friday February 12, 2021 @09:16AM (#26113844)
Oooh I'm gonna add that to everything. Thankyou!