News for hackers. Stuff that matters.
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!