📜 ⬆️ ⬇️

Rust 0.9 released


Mozilla has released a new version of the Rust 0.9 compiler and related tools.

Rust is a compiled and multiparadigm language for system programming, which is positioned as an alternative to C / C ++. Visually, it is similar to C, but differs in the details of syntax and semantics. Ideal for parallel computing.

The developers talk about a significant improvement in runtime and I / O subsystem. So, static links appeared in the compiler and optimization during link-time is supported. The language has reduced the number of different types of closures in order to simplify and make the syntax more logical.

Rust 0.9 also begins a series of scheduled changes in pointer processing. To begin with, the built-in managed pointer type and the corresponding @ symbol are disabled. At the same time, new types of smart pointers are presented in the standard library.
')
The compiler implements warnings about the "dead" code (unused functions and the like). Also implemented dynamic typing,.

Like previous versions, 0.9 should be considered an alpha version, that is, it should not be used in commercial applications. But the unique qualities of Rust are worth exploring. In the future, this programming language will surely take its rightful place in the list of tools for low-level programming.

In more detail about the made changes it is possible to esteem here .

Archive Rust 0.9 and installer for Windows
http://static.rust-lang.org/dist/rust-0.9.tar.gz
http://static.rust-lang.org/dist/rust-0.9-install.exe

A small sample program on Rust
fn main() { let nums = [1, 2]; let noms = ["Tim", "Eston", "Aaron", "Ben"]; let mut odds = nums.iter().map(|&x| x * 2 - 1); for num in odds { do spawn { println!("{:s} says hello from a lightweight thread!", noms[num]); } } } 


Rust programming language overview: 1 , 2

UPD. For links to additional resources, see the first comment on the topic.

Source: https://habr.com/ru/post/208664/


All Articles