Rust 1.3 Released
Rust 1.3 Released
Written by Kay Ewbank   
Tuesday, 22 September 2015

The Rust core team has released a stable version of Rust 1.3 with new object lifetime defaults.  

rust

Systems programming language Rust is designed to be safe, fast and concurrent without having a garbage collector that is good for embedding in other languages, writing programs with specific space and time requirements, and writing low-level code, like device drivers and operating systems.

The stable version of Rust 1.3 is faster than previous versions, mainly due to changes in the standard library. The release ships with a new book called Rustonomicon, a guide to “The Dark Arts of Advanced and Unsafe Rust Programming”. According to a post on the Rust language blog:

“while it’s still in draft form, this book already provides deep coverage of some of Rust’s darker corners”.

The new release has also benefited from API stabilization, including the new Duration API and enhancements to Error and Hash/Hasher.

The focus on improving performance by modifying the standard library means the substring matcher now uses a more efficient algorithm; there are improvements to zero filling that speed up Vec::resize and Read::read_to_end; and the PartialEq implementation on slices is now much faster.

The team has also added preliminary support for targeting Windows XP. While they do not intend to treat Windows XP as a “first tier” platform, it is now feasible to build Rust code for XP as long as you avoid certain parts of the standard library. The blog post says that work on MSVC toolchain integration is ongoing, with full support (on 64-bit) shipping in the 1.4 beta, which has shipped at the same time as the 1.3 stable version.

The main enhancement to Cargo, Rust’s package manager,is support for lint capping. The idea is that lints in your dependencies should not affect your ability to compile cleanly, which in turn makes it easier to tweak the way lints work without undue hassle in the ecosystem.

One breaking change in the new version comes in the new object lifetime defaults. The release notes on GitHub say that these:

“have been turned on after a cycle of warnings about the change”.

Now types like &'a Box<Trait> (or &'a Rc<Trait>, etc) will change from being interpreted as &'a Box<Trait+'a> to &'a Box<Trait+'static>.

 

rust

Banner


Which Languages Are Bug Prone
27/12/2017

A study of the effect of programming languages on software quality was reported in October's Communications of the ACM. In this most-read news item of 2017 we report some of its major findings re [ ... ]



Quantum Computation on edX
11/01/2018

A series of three courses from MIT on the theory and practice of quantum computation starts next week on the edX platform. One of the two instructors for the courses, which comprise videos of live lec [ ... ]


More News

 

 
 

 

blog comments powered by Disqus

Last Updated ( Saturday, 23 January 2016 )
 
 

   
Banner
RSS feed of news items only
I Programmer News
Copyright © 2018 i-programmer.info. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.