Rust 1.7 發布,安全性并發性得以增強

jopen 8年前發布 | 5K 次閱讀

Rust 1.7 發布了,Rust 是 Mozilla 的一個新的編程語言,由web語言的領軍人物Brendan Eich(js之父),Dave Herman以及Mozilla公司的Graydon Hoare 合力開發。

創建這個新語言的目的是為了解決一個很頑疾的問題:軟件的演進速度大大低于硬件的演進,軟件在語言級別上無法真正利用多核計算帶來的性能提升。Rust是針對多核體系提出的語言,并且吸收一些其他動態語言的重要特性,比如不需要管理內存,比如不會出現Null指針等等。

該語言在此次更新中增強了其安全性和并發性,你值得嘗試,更新記錄如下:

  • <[T]>::clone_from_slice(), an efficient way to copy the data from one slice and put it into another slice.

  • Various convenience methods on Ipv4Addr and Ipv6Addr, such as is_loopback(), which returns true or false if the address is a loopback address according to RFC 6890.

  • Various improvements to CString, used for FFI.

  • checked, saturated, and overflowing operations for various numeric types. These aren’t counted in that ‘40’ number above, because there are a lot of them, but they all do the same thing.

詳情請看:https://github.com/rust-lang/rust/blob/stable/RELEASES.md#version-170-2016-03-03

來自: http://www.oschina.net//news/71211/announcing-rust-1-7

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!