is Rust safer than C/C++?

“This means no matter what language you use, the only safe way is to keep in mind: stop doing stupid things.” (src)

Update 2020-08: “Through the past five years of experimentation, I’ve gone from intrigued, to optimistic, to convinced that Rust is an ideal language to build industrial grade, bulletproof bare metal software. Beyond that, I’ve come to realize that even the highest level constructs that the base language offers are applicable to firmware development, very much unlike other languages that span a wide range of paradigms (I’m looking at you, C++). There are a few reasons I felt this way:

  • Rust’s safety guarantees and general strictness bring the debug time down significantly, so there’s less need to spend time developing mental maps of how high level constructs correspond to hardware primitives.
  • The type system is great at enforcing local reasoning and preventing leaky abstractions. Building decoupled systems with no runtime cost is easy.
  • The compiler error messages are worthy of an AI assistant with concerning mind-reading abilities.” (src)

if one is viewing this site using Firefox or Gecko-Engine… one is running RUST already.

At the beginning – one was big fan of Java – Java was/still is all the rage – theoretically write once – run anywhere linux, osx and (thanks to Google) on mobile and even on the closed source OS who’s name shall not be mentioned, nobody knows what the Java Virtual Machine does besides running bytecode, Java on slow ARM CPUs is kind of a burden.

Here comes RUST.

About RUST: it’s a lengthy talk so take some time… or go into parts.

how to keep a good culture at Open Source:


+ rust promises the same and even more cross os compatibility than java (even ARM and RISCV! (OSX not officially supported but it seems someone cross compiled OSX binaries via Ubuntu))

+ faster than Java, almost as fast as C (binaries are larger than those of C or C++)

+ safer than C and C++

+ cargo and crates: comes with online colaboration and code sharing tool


– rust programs can not use a GUI yet

– sorry to say – the least sexy name – someone EVER has given an programming language X-D (next time call it “dirt” or “crap” or “cancer” X-D)

  1. why would one name a language after corroded (oxidized) metal and give it a pet that can be pronounced “crap”?
  2. “crab” in German is “Krebs” and the general name for cancer (sorry Brian X-D really love your work and blog, advice: just marry someone and adopt another name)

getting started:

assume one has already installed rust.

cd; # change to one's home dir
rustc --version; # show current version
rustc 1.37.0 (eae3437df 2019-08-13)

# will download 1-200MBytes
update rust; # update rust
rustc --version; # show current version

  stable-x86_64-unknown-linux-gnu updated - rustc 1.39.0 (4560ea788 2019-11-04)

rustc --version; # again check current version
rustc 1.39.0 (4560ea788 2019-11-04)

# point browser to offline docs
rustup docs --book

offline documentation can be found here:


getting started links:





hello world:

let’s create one’s first program:

# create a folder to hold all projects (workspace)
mkdir /projects;

cd /projects;

# create new folder for project "hello world"
mkdir hello_world;
cd hello_world;

# optional, but recommended because it makes
# colorful source code is much more pleasant to look at :)

apt install git; # install git
# enable rust compatible syntax highlighting in vim
git clone https://github.com/rust-lang/rust.vim ~/.vim/pack/plugins/start/rust.vim
# create first source file
vim hello_world.rs

# fill with
fn main()
		println!("Hello World!");
:wq # write and quit
# compile it!
rustc hello_world.rs

# check results:

# run it
Hello World!
# HURRAY! :)
# now why is it 2.4MBytes in size?
# because it has a lot of debug symbols in it
strip ./hello_world
# strip removes those and binary now 10% 215KBytes

would recommend the online documentary:

is vim a bad ide?

it even can do auto complete, type part of a word, hit Ctrl+P


official website: https://www.rust-lang.org/

official forum: https://users.rust-lang.org/

how-to-conduct: https://www.rust-lang.org/policies/code-of-conduct

news/stay updated: https://blog.rust-lang.org/

via rss:




samples/examples/to the book: https://github.com/ProgrammingRust

reference: https://doc.rust-lang.org/cargo/reference/manifest.html

RFCs: https://github.com/rust-lang/rfcs

rust-foundation: https://foundation.rust-lang.org/

her blog: https://github.com/edunham

book: https://github.com/rustwasm/book

Austria rust community: https://rust-linz.at/

wiki: https://en.wikipedia.org/wiki/Rust_(programming_language)




straight from the creator:

probably the right dunham?

average rating 0 / 5. based on ratings 0

not rated yet