TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Memory Unsafety in Apple's Operating Systems

14 点作者 reaperhulk将近 6 年前

3 条评论

lvh将近 6 年前
This is great, and pretty damning evidence of traditional, unsafe languages.<p>Do we have any data on how much of iOS is implemented in unsafe code vs in macOS? In particular, I want to know if the difference in memory safety ratio correlates with a language choice ratio. I don’t think sufficient information to make that determination is public, but I would love to be wrong about that.<p>(I guess one of the problems with that measurement would be is that it’s hard to tell if an ObjectiveC file has parts of straight C in it, which you’d expect more of in system code.)
评论 #20526938 未加载
rurban将近 6 年前
You can also compare the valgrind suppression files for the various versions of darwin, vs Linux glibc known vulnerabilies, mostly memory leaks. Darwin is just horrible. Even if it just copied Freebsd&#x27;s libc, it managed to add so many mistakes with everything they touched. glibc is mostly fine
评论 #20533315 未加载
693471将近 6 年前
&gt; Yes, of course migration is difficult! Any company doing it will need to retrain people, make toolchain changes, and undoubtedly invest in improving both the compiler and language itself. If only there was some enormous company with vast resources and a commitment to privacy and security who could embark on a journey like this…<p>You mean Swift?