发布于 2015-08-07 23:52:04 | 176 次阅读 | 评论: 0 | 来源: 网友投递

这里有新鲜出炉的Rust教程,程序狗速度看过来!

Rust 编程语言

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


Rust 1.2 稳定版发布了,该版本对编译器进行改进,包含两方面主要的性能提升:

  • An across-the-board improvement to real-world compiler performance. Representative crates include hyper (compiles 1.16x faster), html5ever (1.62x faster), regex (1.32x faster) and rust-encoding (1.35x faster). You can explore some of this performance data at Nick Cameron’s preliminary tracking site, using dates 2015-05-15 to 2015-06-25.

  • Parallel codegen is now working, and produces a 33% speedup when bootstrapping on a 4 core machine. Parallel codegen is particularly useful for debug builds, since it prevents some optimizations; but it can also be used with optimizations as an effective-O1flag. It can be activated by passing-C codegen-units=Ntorustc, whereNis the desired number of threads.

Cargo 的性能也得到提升:

  • Builds that do not require any recompilation (“no-op builds”) for large projects are much faster: for Servo, build time went from 5 seconds to 0.5 seconds.

  • Cargo now supports shared target directories that cache dependencies across multiple packages, which results in significant build-time reduction for complex projects.

同时 Rust 1.2 支持 MSVC (Microsoft Visual C) 工具链。在语言方面 Rust 1.2 完成了 dynamically-sized type (DST) 工作。详细介绍请看发行说明

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

 


历史版本 :
Rust 1.23.0 发布,Mozilla 开发的系统编程语言
Rust 1.22.0 发布,Mozilla 开发的系统编程语言
Rust 1.21.0 发布,Mozilla 开发的系统编程语言
Rust 1.19 发布,Mozilla 开发的系统编程语言
Rust 1.18 发布,Mozilla 的编程语言
Rust 1.17 发布,Mozilla 的编程语言
Rust 1.16 发布,Mozilla 的编程语言
Rust 1.15 发布,Mozilla 的编程语言
Rust 语言服务器 Alpha 版本发布
Rust 1.14 发布,Mozilla 的编程语言
Rust 1.13 发布,Mozilla 的编程语言
Rust 1.12 发布,Mozilla 的编程语言
最新网友评论  共有(0)条评论 发布评论 返回顶部

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务