BT

Rust 0.9 Released With Revised Threading Model

by Jeff Martin on Jan 16, 2014 |

Rust, the Mozilla-backed systems programming language, has released version 0.9, bringing with it a host of improvements as the language progresses towards the 1.0 milestone.  Rust has been undergoing significant changes as it evolves into a language ready for long-term support and stability.  Rust's creator Graydon Hoare has said the language targets “frustrated C++ developers” as it focuses on its goal to be a modern replacement for C/C++.

 

Rust is an open source language with a binary installer available for Windows and a source package available for UNIX based systems (FreeBSD, Mac OS X, and Linux).

 

Release 0.9 marks the inclusion of several features:

  • Rust now provides the choice for developers to choose whether to build dynamic or statically linked libraries.
  • Native libraries are now first-class citizens, allowing a Rust library to be built and distributed without requiring the accompaniment of native libraries.
  • The I/O infrastructure has been completely revised.  Logistically, all I/O functionality is now located in the module std::io.  The comm module (providing high level communication abstractions) has been rewritten.
  • Several of the I/O changes come from the creation of two new libraries, libgreen and libnative.  The Rust standard library is no longer set to a particular scheduling method, so your program can run m:n (m application threads map onto n kernel threads) or 1:1  (one application thread for each kernel thread).  This allows developers to choose the threading model that will provide the best performance for their application.
  • Rust developers should note the deprecation of managed pointers (signified by the @ sigil) and transition code to using Rc (reference counted pointers) or Gc (garbage collected pointers).

For complete details refer to the official Rust 0.9 release notes.  Developers looking to learn more about this language have several different resources available in addition to the official Rust Tutorial:  Rust is being taught at the University of Virginia in an undergraduate OS course and Steve Klabnik has recently prepared “A 30 minute introduction to Rust”.  

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Discuss

Educational Content

General Feedback
Bugs
Advertising
Editorial
InfoQ.com and all content copyright © 2006-2014 C4Media Inc. InfoQ.com hosted at Contegix, the best ISP we've ever worked with.
Privacy policy
BT