# Language of the month for December 2020: Rust

In accordance with our meta agreement, since one candidate received more votes than the others, we have a new featured language! Throughout December 2020, our Language of the Month, nominated by myself (Technohacker, a.k.a K3v1n) will be:

# Rust

What's a Language of the Month?

See the meta post for nominations. In short, during December, those who wish to participate should learn (at least the basics of) Rust, and use it to solve challenges. Participation is completely optional, but is anticipated to be fun!

Verbatim from their homepage:

A language empowering everyone to build reliable and efficient software.

It may not be a language built for golfing, but it'll surely be interesting to see it being used as such!

• It's a language designed to prevent memory-unsafe operations at compile time, to the point where (using safe Rust), "If it compiles cleanly, it's memory-safe". It does so by employing move semantics and references tagged with lifetimes, which also leads to writing programs that don't require a garbage collector

• As a welcome side effect from its memory safety, Rust programs can easily be parallelized due to data-races being eliminated

• It has a robust type system (which is interestingly also Turing complete provided limits are removed, similar to Prolog) which handles null using an Option type and program exceptions with a Result type, forcing exceptions to be handled explicitly

• It has a very consistent toolkit, with cargo managing dependencies and working as a build, test, benchmark and documentation system, clippy providing suggestions to help Rustaceans of any experience level write idiomatic Rust, and more

• It has excellent documentation and ensures examples provided in docs are tested as part of the test suite

• It can run on a variety of environments, all the way from bare metal to WebAssembly

• It has zero-cost implementations of iterators and asynchronous programming

Resources

### Bounty

Answers in Rust will be eligible for a bounty of 50 rep if you have not posted an answer in Rust before. Sorry, but if it's a question that I (user) have already answered, I'll only award the bounty to an exceptional answer, since it starts at 100 rep.

• Oops! My bad, thanks @RedwolfPrograms :D – K3v1n Dec 4 '20 at 8:36
• Feel free to edit the question to add the bounty @user :) – K3v1n Dec 5 '20 at 16:31

# List of all Rust solutions posted in December 2020

(First time posters highlighted in bold)

• Plastic Number by Aiden4

• add entries in the form:

  [<challenge title>](https://codegolf.stackexchange.com/a/<answer-ID>) by [username](https://codegolf.stackexchange.com/users/<user-ID>)


# List of all Rust tips posted in December 2020

• add entries in the form:

  [<tip title>](https://codegolf.stackexchange.com/a/<answer-ID>) by [username](https://codegolf.stackexchange.com/users/<user-ID>)


# List of Rust-related challenges posted in December 2020

• add entries in the form:

  [<challenge title>](https://codegolf.stackexchange.com/q/<question-ID>) by [username](https://codegolf.stackexchange.com/users/<user-ID>)

• I don't now much about LotMs, but is this supposed to say December instead of November? – Ethan Chapman Dec 5 '20 at 5:59
• @EthanChapman Thanks, changed it. – Razetime Dec 5 '20 at 6:21