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


Design Your Own Self-Driving Car
28/10/2017

We don't all have the money or time to build a self-driving car, but the software angle is still something you can have fun with. Who knows, you might even demonstrate that you can do it better.  [ ... ]



Discover How Web Apps Perform With Chrome User Experience Report
25/10/2017

Unveiled at the Chrome Dev Summit in San Francisco, the Chrome User Experience Report is intended to let developers discover how their web apps perform in the wild by providing data collected from the [ ... ]


More News

 

 
 

 

blog comments powered by Disqus

Last Updated ( Saturday, 23 January 2016 )
 
 

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