Frequently Asked Questions


What is Rust?Edit

Rust is a systems programming language, designed to be safe and fast.

Being safe mostly means that the language has a easy-to-write subset with no undefined behavior; if you never use the unsafe keyword, it's fine. Being fast means that it doesn't require the runtime features that a lot of languages use to achieve that safety, and instead it uses a static analysis system called the borrow checker. And being a systems programming language means it doesn't need a runtime, but can actually be used to implement the operating system facilities that other languages rely on.

Why would I use Rust?Edit

Rust is being used for almost anything you might write computer software for, but here's a few things it's uniquely fit for:

  • "Speeding up" a program written in another language, like Python, Ruby, and JavaScript.
  • Writing device drivers.
  • Implementing latency-sensitive services like network load balancers and caches.

Why would I not use Rust?Edit

Rust is specifically aimed at speed and safety. The main feature it gives up is convenience, because the borrow checker will occasionally reject programs that are just fine, but that it can't prove are correct.

Some prominent video game developers have been highly critical of Rust, arguing that memory corruption bugs aren't as big of a deal as being able to iterate quickly on a design, and even if one is shipped, it might just become a fun speedrunning strategy anyway. Others building business logic systems similarly find that Rust is overkill for their needs, preferring to live with the garbage collection pauses because the computer isn't the slowest part of their workflow anyway.


Code StructureEdit

References and TypesEdit


Arrays and VectorsEdit


Useful SnippetsEdit