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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

My Reaction to Dr. Stroustrup’s Recent Memory Safety Comments

2 点作者 dolfins超过 2 年前

1 comment

PaulHoule超过 2 年前
In my mind FORTRAN and COBOL are better languages than C&#x2F;C++. If people really cared about performance they&#x27;d write code in some kind of macro assembler rather than have their CPU performing meaningless activity to keep up C&#x2F;C++ calling conventions. (This is particularly shocking in the case of AVR-8 code for the Arduino where a program that could keep almost all its states in the rather large register file is moving the stack pointer around for no real reason.)<p>Mostly they want to keep using their legacy libraries and that is the whole reason why &quot;safe&quot; C&#x2F;C++ is an oxymoron. So long as you maintain backwards compatibility with dangerous libraries and people keep using dangerous libraries than even simple programs that they write are dangerous.<p>Really the NSA should take one of those backdoors they are hiding and trash every C compiler on the planet.