/The Rust language: Developing safer software

The Rust language: Developing safer software

Video: The Rust language: Developing safer software


If you want to create software that runs fast and close to the system like operating systems or device drivers things don't get much faster than C or C++ but the power of those languages comes with responsibility and risk it's too easy to write unsafe software in C or C++ in fact barely a week goes by without people discovering security or safety issues in the soft water rust presents programmers with a new way to write fast system level software it's designed to make it easier to deal with many of the trickier parts of such programming like memory and management in most languages memory management problems show up only when you run the program rust ensures that problems with memory management are caught by the compiler before your program is created if you try to write a rest program that doesn't use memory responsibly it won't even compile it definitely won't run this way obvious problems with memory management never make it into production rust uses its own custom metaphors one is called borrowing and the other is called ownership both describe aspects of how memory is managed across the lifetime of a program it takes time for developers to master these concepts but once you've mastered them you'll find it easy to program in rust rust code compiles to native platform code like C or C++ so it runs fast and doesn't need a separate runtime the Ruess compiler can build binaries for Windows Linux Mac OS iOS and Android so you can do your coding in any operating system you like and know the code will work on all the rest you can even compile to web assembly the next generation binary format for browser-based apps ruts toolchain works hand-in-hand with the modern tools developers expect to use today in fact popular ideas like Visual Studio code can provide live feedback on rust code as you type the biggest obstacle for rust right now is how new it is other languages have huge established user bases and decades of expertise behind them but rusts fast-moving development and devoted user base are working to make it a viable option for today's software and tomorrow's too.

READ  How to use your Smartphone to open a Linux Session over Bluetooth ? Yes, I Know IT ! Ep 27