2016-09-27

Hello and welcome to another issue of This Week in Rust!
Rust is a systems language pursuing the trifecta: safety, concurrency, and speed.
This is a weekly summary of its progress and community.
Want something mentioned? Tweet us at @ThisWeekInRust or send us a pull request.
Want to get involved? We love contributions.

This Week in Rust is openly developed on GitHub.
If you find any errors in this week's issue, please submit a PR.

Updates from Rust Community

News & Blog Posts

Returning from Exceptions. How to return from exceptions correctly. Part of the series Writing an OS in Rust.

ripgrep is faster than {grep, ag, git grep, ucg, pt, sift}. ripgrep is a command line search tool that combines the usability of The Silver Searcher (an ack clone) with the raw speed of GNU grep.

Intersection Impls. A specialization example of adding a blanket impl that implements Clone for any Copy type, its shortcomings, and one proposed fix using intersection impls (also called lattice impls).

My adventures in Rust web development.

From tweet to Rust feature. Journey of an idea from being a tweet to becoming a Rust feature.

How to count newlines really fast in Rust.

Writing Cocoa apps in Rust.

Experiment: compare ZODB file-storage iteration with Python and Rust.

Implementing Huffman coding in Rust.

RustConf/RustFest Experiences

My Thoughts on RustConf 2016 by Jeena Lee.

RustConf and Strange Loop 2016 by Malisa.

Habitat at RustConf by Salim Alam.

RustFest was great! by Cyryl Płotnicki.

New Crates & Project Updates

Rust Community Team announces the Rust programming language video channel on YouTube and Twitter.

Servo maintains a fork of rust-bindgen which just got updated with a major rewrite that cleans up the codebase and paves the way for future improvements.

slog version 1.0 released. slog is a structured, composable logging library for Rust.

Cyano. An advanced Rust-to-JavaScript transpiler.

gimli. A lazy, zero-copy parser for the DWARF debugging format.

Sarkara. A Post-Quantum cryptography library written in Rust.

Native Windows GUI. Native Window GUI (nwg for short) is a GUI library for Windows.

dataplotlib. Plotting library that tries to make it easy to do scientific plots in Rust.

rouille. Rust web server middleware.

Perlin. A lazy, zero-allocation and data-agnostic Information Retrieval library.

This week in Rust Docs 23. Updates from the Rust documentation team.

This week in Servo 78. Servo is a prototype web browser engine written in Rust.

This week in Tock OS 5. Tock is a safe, multitasking operating system for low-power, low-memory microcontrollers.

These weeks in intermezzOS 3. intermezzOS is a teaching operating system focused on introducing systems programming concepts to experienced developers.

This week in TiKV 2016-09-16. TiKV is a distributed Key-Value database which is based on the design of Google Spanner and HBase.

This week in Ruma 2016-09-18. Ruma is a Matrix homeserver written in Rust.

This week in Ruma 2016-09-25.

What's coming up in imag 16. imag is a text based personal information management suite.

Crate of the Week

Somewhat unsurprisingly, this week's crate of the week is ripgrep. In case you've missed it, this is a grep/ag/pt/whatever search tool you use replacement that absolutely smokes the competition in most performance tests. Thanks to DanielKeep for the suggestion!

Submit your suggestions and votes for next week!

Call for Participation

Always wanted to contribute to open-source projects but didn't know where to start?
Every week we highlight some tasks from the Rust community for you to pick and get started!

Some of these tasks may also have mentors available, visit the task page for more information.

Rust Design Patterns is looking for collaborators. Check out the README for more information.

[easy] rust: incr.comp.: Issue warning if cache directory is on FS without hard-linking.

[tedious] rust: Initial webassembly support via LLVM.

[easy] rust: Bootstrap key logic is too strict.

[easy] rust: rustc should emit an error when there's a bootstrap key mismatch.

[easy] rust: Lint against using generic conversion traits when concrete methods are available.

[moderate] rust: Create official .deb packages.

[easy] rust-www: Better front-page example.
The front page example on the website isn't so special. Make it shine.

If you are a Rust project owner and are looking for contributors, please submit tasks here.

Updates from Rust Core

77 pull requests were merged in the last two weeks.

Self can no longer be a type parameter

MIR: Trivial copy propagation

MIR: Constant propagation

Attribute invocation at crate root level allowed again (were inadvertently disallowed two weeks ago)

TypedArena now allocates lazily, loses .with_capacity(_) (the latter is a breaking change)

syntax::codemap::Spans can now be merged if adjacent

RBML is gone (epic PR)

#[inline]d functions are now only instantiated on use site (epic speedup)

Better parent info for `save-analysis

trans::adt is superceded by rustc::ty::layout

Rustc metadata diagnostics

assert_ne!(..) and debug_assert_ne!(..)

2u64.pow(99) now panics instead of silently overflowing

String no longer impls From
>
nor From (for now, until the regressions are sorted out)

ARM LLVM bug workaround: Setting discriminant via memset

Preparations for macros 2.0

New Contributors

aclarry

Alexander von Gluck IV

Andrew Lygin

Ashley Williams

Austin Hicks

Eitan Adler

Gianni Ciccarelli

jacobpadkins

James Duley

Joe Neeman

Niels Sascha Reedijk

Vanja Cosic

Approved RFCs

Changes to Rust follow the Rust RFC (request for comments)
process. These
are the RFCs that were approved for implementation this week:

No RFCs were approved this week.

Final Comment Period

Every week the team announces the
'final comment period' for RFCs and key PRs which are reaching a
decision. Express your opinions now. This week's FCPs are:

Let a loop { ... } expression return a value via break my_value;.

New RFCs

Custom attributes.

Specify #[repr(transparent)].

Upcoming Events

9/28. Boston Rust Meetup.

9/28. Rust Community Team Meeting at #rust-community on irc.mozilla.org.

9/28. Rust Documentation Team Meeting at #rust-docs on irc.mozilla.org.

9/29. Rust Meetup Dresden.

9/29. Rust DC: Who is more foolish? Novice traps in Rust.

10/5. Open-Space Rust Meetup Cologne/Bonn.

10/5. Rust Community Team Meeting at #rust-community on irc.mozilla.org.

10/5. Rust Documentation Team Meeting at #rust-docs on irc.mozilla.org.

10/6. Rust release triage.

10/10. Seattle Rust Meetup.

If you are running a Rust event please add it to the calendar to get
it mentioned here. Email the Rust Community Team for access.

fn work(on: RustProject) -> Money

No jobs listed for this week.

Tweet us at @ThisWeekInRust to get your job offers listed here!

Quote of the Week

You can actually return Iterators without summoning one of the Great Old Ones now, which is pretty cool.

— /u/K900_ on reddit.

Thanks to Johan Sigfrids for the suggestion.

Submit your quotes for next week!

This Week in Rust is edited by: nasa42, llogiq, and brson.

Show more