Monday, 30 January 2017

Introduction · A Guide to Porting C and C++ code to Rust

Introduction · A Guide to Porting C and C++ code to Rust: "This book is for people familiar with C or C++ who are thinking of using Rust.
"

Normally such software would be written in C or C++, but consider these every day programming issues that afflict these languages:
  • Dangling pointers. A program calls an invalid pointer causing a crash.
  • Buffer overruns / underruns. Code writes beyond an allocated buffer causing memory corruption or a page exception.
  • Memory leaks. Code that allocates memory without calling the corresponding free action.
  • Data races. Multiple threads write to data at the same time causing corruption or other destabilizing behavior.
Rust stops these bad things happening by design. And it does so without impacting on runtime performance because all of these things are checked at compile time...
'via Blog this'

No comments:

Post a Comment