News for hackers. Stuff that matters.
Re:Great things about Rust that aren't just performance by oasisaimlessly on Sunday January 12, 2025 @03:11PM (#42676473)
> Doesn't this mean that Mutex introduces one more pointer?

No. That syntax is roughly equivalent to the following C++:

    auto const lock = std::make_shared<std::pair<std::mutex, uint32_t>>(
        std::piecewise_construct,
        std::make_tuple(),
        std::make_tuple(0));
Re:Great things about Rust that aren't just performance by sesm on Sunday January 12, 2025 @03:17PM (#42676524)
Thanks, that's the best explanation!