From c7792cb988952ec766a3bf3b48e121f7298014fa Mon Sep 17 00:00:00 2001 From: Steve Klabnik Date: Mon, 14 Dec 2015 15:44:18 -0500 Subject: [PATCH] import introduction --- src/introduction.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/src/introduction.md b/src/introduction.md index e10b99d01..9a734f76d 100644 --- a/src/introduction.md +++ b/src/introduction.md @@ -1 +1,31 @@ # Introduction + +Welcome to “The Rust Programming Language,” an introductory book about Rust. +Rust is a programming language that’s focused on safety, concurrency, and +speed. It maintains these goals without having a garbage collector, making it a +useful language for a number of use cases other languages aren’t good at: +embedding in other languages, programs with specific space and time +requirements, and writing low-level code, like device drivers and operating +systems. It improves on current languages targeting this space by having a +number of compile-time safety checks that produce no runtime overhead, while +eliminating all data races. Rust also aims to achieve ‘zero-cost abstractions’ +even though some of these abstractions feel like those of a high-level +language. Even then, Rust still allows precise control like a low-level +language would. + +This book is written for a reader who already knows how to program in at least +one programming language. Which language that is does not matter very much, +though you may have an easier time if you’ve programmed in a low-level language +with manual memory allocation. + +After reading this book, you should be comfortable writing Rust programs. We’ll +be learning Rust through small, focused examples that demonstrate each topic. +The chapters build upon each other, so if you skip ahead, you may have to skip +back to refer to a previous concept. + +## Contributing to the book + +This book is open source. If you find an error, please don’t hesitate to file an +issue or send a pull request [on GitHub]. + +[on GitHub]: https://github.com/rust-lang/book