News for hackers. Stuff that matters.
Re:Inside Rust's std and parking_lot mutexes – who wins? by questioner8216 on Tuesday November 25, 2025 @08:55PM (#46053297)
I have not given it much thought, but it would primarily be for the subset of Rust programs that do not need zero-cost abstractions as much, right? Since, even in the case of no panics, one would be paying at runtime for registering panic hooks, if I understand correctly.
Re:Inside Rust's std and parking_lot mutexes – who wins? by JoshTriplett on Wednesday November 26, 2025 @10:48AM (#46058593)
I can imagine ways to reduce that cost substantially. And the cost would be a key input into the design, since it's important to optimize for the success path and not have the success path pay cost for the failure path.