Rust - Introduction Flashcards
Rust is what type of programming language?
Rust is a systems level programming language developed by Graydon Hoare.
System and application programming languages face two major problems
It is difficult to write secure code.
It is difficult to write multi-threaded code.
Rust focuses on three goals
Safety
Speed
Concurrency
Why does Rust perform well at runtime?
Because it doesn’t have a Garbage Collector
Rust is safe from what type of memory issues
Dangling Pointers
Buffer overruns
Memory leaks
Write a hello world program
fn main(){
println!(“Hello world”);
}
What is a macro?
In Rust, a macro is a feature that allows you to write code that writes other code.
It’s like a template for generating code.