News for hackers. Stuff that matters.
Re:Rust 1.32 released by scoutt on Friday January 18, 2019 @03:19AM (#18937822)
Any multi-instance, multithread-capable language must have an appropriate debugger.

> [src/main.rs:4] x = 5

How to differentiate the value of 'x' for a given thread/instance/whatever? Don't add the info by hand to the debug message.

edit: typo

Re:Rust 1.32 released by root_axis on Friday January 18, 2019 @03:55PM (#18942977)
Using a debugger for testing multi-threaded code is particularly painful. Tests and logs are especially superior in this case because you can make complex assertions that capture emergent behavior of a multi-threaded application. Pausing threads to step through them can often make it harder to observe the behavior you might expect to see when multiple threads are working together in real time.