发布于 2018-01-05 00:54:12 | 103 次阅读 | 评论: 0 | 来源: 网友投递
Rust 编程语言
Rust是Mozilla开发的注重安全、性能和并发性的编程语言。创建这个新语言的目的是为了解决一个很顽疾的问题:软件的演进速度大大低于硬件的演进,软件在语言级别上无法真正利用多核计算带来的性能提升。Rust是针对多核体系提出的语言,并且吸收一些其他动态语言的重要特性,比如不需要管理内存,比如不会出现Null指针等等。
Rust 1.23.0 发布了。Rust 是一门由 Mozilla 开发的专注于安全性,速度和并发性的系统编程语言。
更新内容:
语言:
Arbitrary auto
traits are now permitted in trait objects.
rustc now uses subtyping on the left hand side of binary operations. Which should fix some confusing errors in some operations.
编译器:
Enabled TrapUnreachable
in LLVM which should mitigate the impact of undefined behaviour.
rustc now suggests renaming import if names clash.
Display errors/warnings correctly when there are zero-width or wide characters.
rustc now avoids unnecessary copies of arguments that are simple bindings This should improve memory usage on average by 5-10%.
Updated musl used to build musl rustc to 1.1.17
库:
Allow a trailing comma in assert_eq/ne
macro
Implement Hash for raw pointers to unsized types
impl From<*mut T>
for AtomicPtr<T>
impl From<usize/isize>
for AtomicUsize/AtomicIsize
.
Removed the T: Sync
requirement for RwLock<T>: Send
Removed T: Sized
requirement for {<*const T>, <*mut T>}::as_ref
and <*mut T>::as_mut
Optimized Thread::{park, unpark}
implementation
Improved SliceExt::binary_search
performance.
impl FromIterator<()>
for ()
Copied AsciiExt
trait methods to primitive types. Use of AsciiExt
is now deprecated.
完整内容请查看发行说明。
下载地址: