TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

A Rust View on “Effective Modern C++”

3 pointsby adgasfalmost 8 years ago

1 comment

adgasfalmost 8 years ago
&quot;std::shared_ptr corresponds to Rust&#x27;s Arc type. Both provide thread-safe reference counting. Rust also supports much faster thread-local refcounting with the Rc type. Don&#x27;t worry, the compiler will complain if you try to send an Rc between threads.&quot;<p>Perhaps converting from Arc to Rc could be automated?