Mozilla开发语言rust 1.18官方最新版是mozilla公司开发的一款新型的编程语言,旨在为多核体系服务,利用多核计算提高软件运行效率,需要的用户赶快来下载吧。
Rust 1.18 发布了。Rust 是一门由 Mozilla 开发的专注于安全性,速度和并发性的系统编程语言。
Rust 1.18 增加了许多新特性,运行起来像这样:
#![windows_subsystem(console)]#![windows_subsystem(windows)]
Rust的元组,枚举变量字段和结构体(没有#[repr])总是有一个未定义的布局。 我们已经开始自动重新排序,结构如下:
struct Suboptimal(u8, u16, u8);
新 API
Child::try_wait is a non-blocking form of Child::wait.
HashMap::retain and HashSet::retain bring the retain API Vec<T> has to these two hash data structures.
PeekMut::pop lets you pop the top element from a BinaryHeap<T> after you’ve already peeked at it without needing to reorder the heap a second time.
TcpStream::peek, UdpSocket::peek, UdpSocket::peek_from let you peek at a stream or socket.
Rust 是 Mozilla 的一个新的编程语言,由web语言的领军人物Brendan Eich(js之父),Dave Herman以及Mozilla公司的Graydon Hoare 合力开发。
创建这个新语言的目的是为了解决一个很顽疾的问题:软件的演进速度大大低于硬件的演进,软件在语言级别上无法真正利用多核计算带来的性能提升。Rust是针对多核体系提出的语言,并且吸收一些其他动态语言的重要特性,比如不需要管理内存,比如不会出现Null指针等等。
零成本的抽象
移动语义
保证内存安全
线程没有数据竞争
trait-based泛型
模式匹配
类型推断
最小运行时
高效的C绑定
140.5M / 09-05
76.4M / 03-25
55M / 06-05
237.9M / 04-13
900.9M / 03-02
96.2M / 07-06
311.2M / 07-06
335M / 07-06
200M / 07-06
413.8M / 07-06
484.7M / 09-27
165.4M / 09-05
353.9M / 06-05
131.8M / 04-13
195.6M / 03-03
45.6M / 09-08
665.2M / 07-06
2.84G / 07-06
93M / 07-06
338.3M / 07-06
1.38G / 07-26
488.3M / 07-16
109.8M / 06-03
142M / 01-08
1.2M / 11-23
548.8M / 04-13
1.6M / 04-13
1.48G / 03-18
646.6M / 03-03
133.7M / 03-03
110.5M / 09-05
33.4M / 09-05
325.8M / 08-12
60M / 04-29
254M / 04-25
659M / 04-23
1M / 12-26
253.4M / 12-08
253M / 12-08
1.19G / 11-16
369M / 09-22
181.5M / 09-22
201.2M / 09-05
488.3M / 07-16
248.9M / 12-08
248.9M / 12-08
100.6M / 03-06
148.9M / 03-06
1.12G / 07-06
1.25G / 07-06
1.76G / 09-22
1.92G / 04-17
116.2M / 04-10
201.5M / 04-13
7.31G / 07-01
94.3M / 07-06
2.48G / 07-06
7.63G / 07-06
1M / 07-06
778.1M / 07-06
561.8M / 07-11
72M / 07-06
548.7M / 07-06
1.00G / 07-06
9.13G / 07-06
126.2M / 07-06
72M / 07-06
105.1M / 07-06
132M / 07-06
132M / 07-06