{"id":1392,"date":"2016-01-26T18:53:36","date_gmt":"2016-01-26T15:53:36","guid":{"rendered":"http:\/\/sobbayi.com\/?p=1392"},"modified":"2024-02-21T23:23:18","modified_gmt":"2024-02-21T20:23:18","slug":"rust-programming-language-quick-glance","status":"publish","type":"post","link":"http:\/\/local.brightwhiz\/rust-programming-language-quick-glance\/","title":{"rendered":"What is Rust Programming Language, a Quick Glance"},"content":{"rendered":"

So you ask. What is Rust<\/a> Programming Language<\/a>? As we attempt to answer that question we will focus a little on the history of this systems language. We will see what inspires it and who developed it.<\/p>\n

In addition, we will throw in some basic syntax examples. To be more precise the famous Hello World<\/strong> code snippet. This, however, will not be a tutorial.<\/p>\n

So What is Rust Programming Language?<\/h2>\n

In basic terms, Rust is a fast running systems programming<\/a> language designed in a way that guarantees thread and memory safety and prevents segfaults.<\/p>\n

Rust can be classified as a general purpose, multi-paradigm, compiled programming languages such as C or C++<\/a>. Unlike the latter languages mentioned here, Rust is designed to be thread-safe. It supports pure functional, imperative procedural, and object-oriented coding styles.<\/p>\n

Originally developed in 2010 by Graydon at Mozilla Research, this systems language is now maintained by the Rust Project Developers which is an open development community.<\/p>\n

So What is Rust Programming Languages Goal?<\/h2>\n

Its goal is to create highly concurrent and safe software systems. It does this by placing emphasis on safety, concurrency, and control of memory. Even though Rust borrows its syntax from C and C++ it does not permit null pointers or dangling pointers. Both of which have been causes of system crashes, memory leaks and insecure code in C and C++.<\/p>\n

Rather than classes, Rust uses implementations, traits, and structured types. Implementations are what would be classes in C++ and other object-oriented languages.<\/p>\n

The common control structures such as if-else, and loop statements for and while are present in Rust. Blocks of code are scoped with curly brackets as is the case in C and C++ style languages.<\/p>\n

Rust has managed to be memory safe without the overhead of automated garbage collectors the way they are implemented in .NET and Java programming languages.<\/p>\n

This is an example of a code snippet of Rust programming language showcasing the classic Hello World application:<\/p>\n