Rust 0.10 发布,Mozilla 新的编程语言

linux新闻评论1.1K views阅读模式

Rust 0.10 发布,此版本被认为是 ALPHA 版本,所以大家谨慎使用。此版本分离了 libextra 库;引入了 cross-crate 语法扩展和宏;改进了 Deref trait 指针;改进了编译器外的 I/O 错误处理。此版本看似引入了新 RFC 进程,但是同时也支持二进制安装。更多内容请看发行说明。

源码下载

* http://static.rust-lang.org/dist/rust-0.10.tar.gz
  http://static.rust-lang.org/dist/rust-0.10.tar.gz.asc
  SHA256 (of .tar.gz):
  c72cfbbf03016804a81d7b68e8258ffaf018f8f5a25550ad64571ce6c2642cf9

Windows installer

* http://static.rust-lang.org/dist/rust-0.10-install.exe
  http://static.rust-lang.org/dist/rust-0.10-install.exe.asc
  SHA256 (of .exe):
  ee7ea67845f5dd3b545b225135cca21fa5786baef4ab03f9f996f2e72bf40c6e

Linux binary tarballs

* http://static.rust-lang.org/dist/rust-0.10-x86_64-unknown-linux-gnu.tar.gz
  http://static.rust-lang.org/dist/rust-0.10-x86_64-unknown-linux-gnu.tar.gz.asc
  SHA256 (of .tar.gz):
  e5d6d490beee3c8f2d284f62e730193a92080d4cdf46bf972a8ddbec5bc16045

* http://static.rust-lang.org/dist/rust-0.10-i686-unknown-linux-gnu.tar.gz
  http://static.rust-lang.org/dist/rust-0.10-i686-unknown-linux-gnu.tar.gz.asc
  SHA256 (of .tar.gz):
  7e17912b23dc790ca8ff3272500beba41afc9a1cd923bbf7a606e7d21d3ea89a

Mac OS X binary installers

* http://static.rust-lang.org/dist/rust-0.10-x86_64-apple-darwin.pkg
  http://static.rust-lang.org/dist/rust-0.10-x86_64-apple-darwin.pkg.asc
  SHA256 (of .pkg):
  332253023b8f641b6d0b21289a1542521d83d1e77c6aa4d1a9b94c2927769407

* http://static.rust-lang.org/dist/rust-0.10-i686-apple-darwin.pkg
  http://static.rust-lang.org/dist/rust-0.10-i686-apple-darwin.pkg.asc
  SHA256 (of .pkg):
  26b5630083afd2286526128158e9d83fb9d4b7d965d9d89e6c6cf536105ed756

Mac OS X binary tarballs

* http://static.rust-lang.org/dist/rust-0.10-x86_64-apple-darwin.tar.gz
  http://static.rust-lang.org/dist/rust-0.10-x86_64-apple-darwin.tar.gz.asc
  SHA256 (of .tar.gz):
  ad0ad37886a43f0817f8115ae4e5daf17912fc31d258ebf79a73647bcc5f4eb8

* http://static.rust-lang.org/dist/rust-0.10-i686-apple-darwin.tar.gz
  http://static.rust-lang.org/dist/rust-0.10-i686-apple-darwin.tar.gz.asc
  SHA256 (of .tar.gz):
  96c51f784e0f5c13d02c1fa4f4ad35936c0396afd8e2217b07f9708be08e06bb

 

Mozilla 目前正在开发一个新的编程语言,名为“Rust”,由web语言的领军人物Brendan Eich(js之父),Dave Herman以及Mozilla公司的Graydon Hoare 合力开发。

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

Rust 最早是在今年7月的Mozilla的社区峰会上公之于众的,当时就有人问以后是否会用Rust重写Firefox,Brenda说希望如此。Rust目前还处于初期的开发阶段,开发团队目前并不想花太多的时间在语法上,不过他们还是提供了一小段代码:

iter pairs() -> tup(int,int) {

let int i = 0;

let int j = 0;

while (i < 10) {

put tup(i, j);

i += 1;

j += i;

}

}

fn main() {

let int i = 10;

let int j = 0;

for each (tup(int,int) p in pairs()) {

log p._0;

log p._1;

check (p._0 + 10 == i);

i += 1;

j = p._1;

}

企鹅博客
  • 本文由 发表于 2019年8月24日 15:50:25
  • 转载请务必保留本文链接:https://www.qieseo.com/284684.html

发表评论