发布于 2017-11-23 00:51:55 | 126 次阅读 | 评论: 0 | 来源: 网友投递
Rust 编程语言
Rust是Mozilla开发的注重安全、性能和并发性的编程语言。创建这个新语言的目的是为了解决一个很顽疾的问题:软件的演进速度大大低于硬件的演进,软件在语言级别上无法真正利用多核计算带来的性能提升。Rust是针对多核体系提出的语言,并且吸收一些其他动态语言的重要特性,比如不需要管理内存,比如不会出现Null指针等等。
Rust 1.22.0 已发布,该版本带来了语言、编译器、库和稳定 API 方面的更新,具体如下:
Language
T op= &T
now works for numeric types. eg. let mut x = 2; x += &8;
types that impl Drop
are now allowed in const
and static
types
Compiler
rustc now defaults to having 16 codegen units at debug on supported platforms.
rustc will no longer inline in codegen units when compiling for debug This should decrease compile times for debug builds.
Libraries
Allow atomic operations up to 32 bits on armv5te_unknown_linux_gnueabi
Option<T>
now impls Try
This allows for using ?
with Option
types.
Stabilized APIs
Cargo
Changed [root]
to [package]
in Cargo.lock
Packages with the old format will continue to work and can be updated with cargo update
.
Misc
Stabilised the compile_fail
attribute for code fences in doc-comments. This now lets you specify that a given code example will fail to compile.
Compatibility Notes
The minimum Android version that rustc can build for has been bumped to 4.0
from 2.3
Allowing T op= &T
for numeric types has broken some type inference cases
下载地址
Rust 是一种系统编程语言。 它有着惊人的运行速度,能够防止段错误,并保证线程安全。