Rust is a systems programming language sponsored by Mozilla Research. It is designed to be a “safe, concurrent, practical language”, supporting functional and imperative-procedural paradigms. Rust is syntactically similar to C++, but is designed for better memory safety while maintaining performance.
Rust is an open source programming language. The design of the language has been refined through the experiences of writing the Servo web browser layout engine and the Rust compiler. A large portion of current commits to the project are from community members.
Design and features
A presentation from linux.conf.au that explains the key concepts necessary for successful Rust programming.
The goal of Rust is to be a language suited to creating highly concurrent and highly safe systems, and “programming in the large”, that is, creating and maintaining boundaries that preserve large-system integrity. This has led to a feature set with an emphasis on safety, control of memory layout, and concurrency. Performance of idiomatic Rust is comparable to the performance of idiomatic C++.
The concrete syntax of Rust is similar to C and C++, with blocks of code delimited by curly brackets, and control flow keywords such as if, else, while, and for. Not all C or C++ keywords are implemented, however, while some Rust functionality (such as keyword match for pattern matching) will be less familiar to programmers coming from these languages. Despite the superficial resemblance to C and C++, the syntax of Rust in a deeper sense is closer to that of the ML family of languages. Nearly every part of a function body is an expression, even control flow operators. For example, the ordinary if expression also takes the place of C’s ternary conditional. A function does not need to end with a return expression; the last expression in the function is used as the return value.
For more details or to start new programming projects please Contact Us.