Rust 1.7 发布,安全性并发性得以增强

jopen 9年前

Rust 1.7 发布了,Rust 是 Mozilla 的一个新的编程语言,由web语言的领军人物Brendan Eich(js之父),Dave Herman以及Mozilla公司的Graydon Hoare 合力开发。

创建这个新语言的目的是为了解决一个很顽疾的问题:软件的演进速度大大低于硬件的演进,软件在语言级别上无法真正利用多核计算带来的性能提升。Rust是针对多核体系提出的语言,并且吸收一些其他动态语言的重要特性,比如不需要管理内存,比如不会出现Null指针等等。

该语言在此次更新中增强了其安全性和并发性,你值得尝试,更新记录如下:

  • <[T]>::clone_from_slice(), an efficient way to copy the data from one slice and put it into another slice.

  • Various convenience methods on Ipv4Addr and Ipv6Addr, such as is_loopback(), which returns true or false if the address is a loopback address according to RFC 6890.

  • Various improvements to CString, used for FFI.

  • checked, saturated, and overflowing operations for various numeric types. These aren’t counted in that ‘40’ number above, because there are a lot of them, but they all do the same thing.

详情请看:https://github.com/rust-lang/rust/blob/stable/RELEASES.md#version-170-2016-03-03

来自: http://www.oschina.net//news/71211/announcing-rust-1-7