RUST A Language for next 40 years!!
Rust is exciting!!
At least this is what developers in almost every discipline are saying.
With so many languages out there it’s a tough task to decide which language to learn first or later. And how can one determine which language is more exciting than the other one?
Let’s see what’s exciting about RUST and why should you learn it.
What is RUST?
Rust is a modern systems-level programming language designed with safety in mind. Rust is quite young but on surface seems much like older languages like C or C++. It offers the performance of C and C++ but with safeguards. It provides zero cost abstraction, generics, functional features and plenty more.
Carol Nichols says:
"The biggest strength of Rust is that it's an empowering technology"
He is from Rust Programming language core team and co-author of Rust programming language.
Code faster with low memory:
"To write extremely fast code with a low memory footprint previously meant using C or C++. However, using those languages in production code requires you to manage memory manually and know all the ways you might cause undefined behavior."
"The Rust compiler is stricter and makes sure you're using memory safely so that you can concentrate on the problem you're really trying to solve"
Getting started with any new language is not an easy task and there are certainly easier languages to learn, like Python, but then again Python isn’t for everyone. So why learn Rust?
Best time to learn Rust is now! Because 2018 edition is released with lots of improvements to idioms of language to make Rust more efficient to read and write.
Every language has its advantages and disadvantages. Low-level languages are good for hardware level work.
Similarly, High level languages like Python and Ruby have their own purpose, they are easier to read and write. Memory management is easy for user and comfortable to debug.
Rust blends the qualities of both. It combines the speed of low-level language and memory management, safety and debugging facility of high level language.
Every project has Cargo.toml file. Every time you build your project Cargo will package everything your project needs by using this file. This file contains all the details about the project.
Powerful combination of Rust and Web Assembly:
Rust not only brings safety and speed to hardware but also to web. Rust can be compiled into web assembly (a language and a portable executable for running code online), which runs in each major web browser at near-native speed.
"Web Assembly is a really promising new domain to bring native application performance to the web"
Frameworks such as Rocket allows you to develop web-apps purely in Rust.
Operating System made in Rust:
Redox is Unix-like micro kernel language written in Rust. Redox aims to be secure, usable and free. It is similar to GNU or BSD ecosystem but in a memory safe language and modern technology.
Create Cross-Platform and Command Line tools:
According to co-founder of Rust, Nichols:
“Cross-platform command line applications are another place where Rust really shines.”
You can cross-compile to platforms you’re targeting and get a single binary to ship to users.
Ridgrep (a line-oriented search tool that recursively searches your current directory for a regex pattern)is a great example, which works faster than any other text searching tool in its class.