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.

Microsoft's Safe Systems Programming Languages Effort (Rust)

53 pointsby Leacealmost 5 years ago

4 comments

server_botalmost 5 years ago
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 未加载
mellingalmost 5 years ago
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 未加载
jbrittonalmost 5 years ago
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 未加载
akmittalalmost 5 years ago
Defination of systems programming language is really contradicting. Go was sold as systems programming language in beginning.
评论 #23277605 未加载
评论 #23277655 未加载