Wikipedia

Search results

Saturday, November 9, 2024

What is Rust Programming Language? Part-1

 Rust is a general-purpose programming language emphasizing performance, type safety, and concurrency. It enforces memory safety, meaning that all references point to valid memory. It does so without a traditional garbage collector; instead, both memory safety errors and data races are prevented by the "borrow checker", which tracks the object lifetime of references at compile time.

Software developer Graydon Hoare created Rust as a personal project while working at Mozilla Research in 2006. Mozilla officially sponsored the project in 2009. In the years following the first stable release in May 2015, Rust was adopted by companies including Amazon, Discord, Dropbox, Google (Alphabet), Meta, and Microsoft. In December 2022, it became the first language other than C and assembly to be supported in the development of the Linux kernel.

Platform: Cross Platform

OS: Cross Platform

File Extension: .rs, .rslib

Rust SiteRust Programming Language

Hello World program

fn main() {
    println!("Hello, World!");
}

Variables

Variables in Rust are defined through the let keyword.

fn main() {
    let foo = 10;
    println!("The value of foo is {foo}");
}

No comments:

Post a Comment

Creating Simple Selectable Menu in Turbo C++ [graphics mode]

 Here is simple code for creating a menu in graphics mode in turbo c++. you can select menus by pressing up and down arrow keys. #include ...