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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Microsoft's Safe Systems Programming Languages Effort (Rust)

53 点作者 Leace将近 5 年前

4 条评论

server_bot将近 5 年前
Good intro to the benefits of Rust for a broad audience, but one important omission: the Use-After-Free and Double-Free protection he mentioned is provided by compile-time static analysis, but Rust also does runtime bounds checks to prevent classic stack smashing (with minimal performance overhead).<p>That may not seem like a big deal for the x86_64 world where modern mitigations largely make shellcode a thing of the past (hence heap exploitation, ROP&#x2F;JOP, etc) but it is a BIG DEAL for embedded microcontrollers that lack OS&#x2F;HW memory protection - an area where #![no_std] Rust shines.<p>As a security researcher and not a developer, let me be very frank: you should STRONGLY consider Rust in place of C or C++. But know that release profile builds don&#x27;t do integer overflow checking, so don&#x27;t get cocky :P
评论 #23280339 未加载
melling将近 5 年前
He mentions this book as “the book” on Rust.<p><a href="https:&#x2F;&#x2F;www.amazon.com&#x2F;Rust-Programming-Language-Steve-Klabnik-ebook&#x2F;dp&#x2F;B071YKRV8Q" rel="nofollow">https:&#x2F;&#x2F;www.amazon.com&#x2F;Rust-Programming-Language-Steve-Klabn...</a><p>I think it’s also available for free online. Here? <a href="https:&#x2F;&#x2F;doc.rust-lang.org&#x2F;book&#x2F;" rel="nofollow">https:&#x2F;&#x2F;doc.rust-lang.org&#x2F;book&#x2F;</a>
评论 #23277674 未加载
jbritton将近 5 年前
One thing I like about C as a systems programming language is that it is easy for every other language to bind to it. I’m fine with C++ if the external interface is extern “C”, but that is often not the case. I don’t know how easy it is for other languages to bind to Rust. It would be nice if a language could automatically generate Swig definition files or something similar. However one is going to run into language semantics and impedance mismatches with richer languages. The simplicity of “C” makes a nice bind target. Although I have yet to see a thorough binding to Win32, so I suspect the preprocessor makes this difficult.
评论 #23279694 未加载
akmittal将近 5 年前
Defination of systems programming language is really contradicting. Go was sold as systems programming language in beginning.
评论 #23277605 未加载
评论 #23277655 未加载