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.

Guarding Against Broken Encapsulation

10 pointsby pcr910303almost 3 years ago

1 comment

nine_kalmost 3 years ago
The OS&#x27;s encapsulation barrier is a process, not a crate, hence no automatic crate-level boundaries for OS calls.<p>AFAICT the idea is that stuff from different crates should be insulated from each other by the compiler, and only made to interact by explicit programmer&#x27;s intent. If a crate is dedicated to provide interaction with specific OS calls, this becomes an interesting problem.