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 an email! Want to get involved? We love contributions.
Updates from Rust Community
News & Blog Posts
- Introducing Helix. Rust + Ruby, without the glue.
- Taking Rust everywhere with rustup. Push-button cross-compilation with rustup.
- Non-lexical lifetimes: Adding the outlives relation.
- Deep Learning in Rust: a walk in the park
- Rust for Node.js developers - Part 1 - Introduction to Rust.
- Writing documentation in Rust.
- Fancy Rust development with Emacs.
- Quick check: does your code work? Using QuickCheck to do property based testing.
- Autoconf for Rust projects.
- This week in Servo 62.
- This week in Rust docs 3.
- This week in intermezzOS 1. intermezzOS is a learning operating system with a companion book, written in Rust.
- [video] Ferris makes emulators: Episode 8. Live stream of Ferris developing a N64 emulator in Rust (also on Twitch).
New Crates & Project Updates
- Announcing RustFest Berlin 2016 (17-18 September 2016).
- hydrogen. Multithreaded, non-blocking Linux server framework in Rust.
- cargo-profiler. Cargo subcommand to profile binaries.
- cargo clippy subcommand for convenient production of annoying warnings.
- rfmt. Rust source code formatter.
- RustDT 0.6.0 is out with improved build target support and experimental auto-check.
Crate of the Week
This week's Crate of the Week is cargo-profiler, which lets us profile our code directly from cargo using a variety of tools, notably valgrind's callgrind and cachegrind. Thanks to kbknapp for the suggestion!
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.
- [easy] rust: Participate in 2016 State of Rust Survey.
- [easy] redox: Participate in Redox Survey.
- [easy] clippy: Participate in Rust Clippy Survey.
- [easy] rust: Add error explanations for all error codes.
- [medium] rustup: Make
rustup default x86_64-unknown-linux-gnudo something smarter.
- [easy] servo: Remove
If you are a Rust project owner and are looking for contributors, please submit tasks here.
Updates from Rust Core
132 pull requests were merged in the last two weeks.
- custom panic runtimes (finally implements RFC #1513 – embedded Rust users rejoice!)
- cache ast-ty-to-ty again
- AtomicBools are now 8 bits wide (used to surprisingly be one ptr wide)
- reduce LLVM IR bloat in simple switches for large enums
- reduce LLVM IR bloat on CFG simplification
- split the type context into a local/global one for some memory savings
- MIR: CFG block merging
- MIR: allow mutable slicing of arbitrarily long arrays
- MIR: Prettier MIR pretty printing
- more MIR blockers fixed
- save-analysis format changes
- correct temp drop scheduling order
- don't use
- Better derived impls for large (mostly) C-like enums
- std::sync::OnceState now public (though unstable)
- normalize trait refs before use
- const_eval can now cast byte slices to bare ptrs
- earlier name resolution
- allow repr attribute on single variant enum
- `impl (Partial)Ord for Cell
+RefCell where T: (Partial)Ord
- integer atomic types
- fix gdb pretty printing
- the playpen now uses the new error format
- rustdoc no longer skips blanket impls
- make lifetime error reporting less confusing
- There were a lot of documentaion improvements, too numerous to mention each.
- Brian Green
- Cristian Oliveira
- Dan Fockler
- Geordon Worley
- Haiko Schol
- Pavel Sountsov
- Stefan Schindler
- Steven Burns
Changes to Rust follow the Rust RFC (request for comments) process. These are the RFCs that were approved for implementation this week:
- RFC 1358: Add
#[repr(align = "N")].
- RFC 1492: Permit the
..pattern fragment in more contexts.
- Amendment to RFC 1214: All but the last field of a tuple must be Sized.
Final Comment Period
No RFCs are currently in final comment period.
- 5/17. Moscow Rust Conference.
- 5/18. Rust Meetup Taipei #2.
- 5/18. Rust Community Team Meeting at #rust-community on irc.mozilla.org.
- 5/18. Rust Berlin: Rust 1.0 Anniversary Meetup.
- 5/24. Rust Brisbane Meetup #1.
- 5/24. Rust Barcelona - Cross compiling for ARM linux targets + accessing the GPIO in a Raspberry Pi.
- 5/25. Rust Community Team Meeting at #rust-community on irc.mozilla.org.
- 5/25. Boston Rust Meetup w/ Steve Klabnik and Andrew Gallant.
- 5/26. Rust DC - Inaugural Meetup.
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
No quote was selected for QotW.