DEV Community

Scott Beeker
Scott Beeker

Posted on

Anything C can do Rust can do Better

C++ and Rust are both system programming languages that can be used to produce software and software platforms. They are both capable of interacting with low-level components such as operating systems or firmware on a microcontroller, or at a high level for application development.

"In Android 12 we announced support for the Rust programming language in the Android platform as a memory-safe alternative to C/C++. Since then we’ve been scaling up our Rust experience and usage within the Android Open Source Project (AOSP)."

  • Android Team (Google) 2022

As Rust slowly replaces C++ what are you waiting for? Are you learning Rust yet?

Rust Learning:

Table of Contents

Books

Videos

Playlists

Presentations

Podcasts

Rust in practice

Best Practices/Style Guides

Cheat sheets

Rust internals

Compilation

FFI

CI / Testing

Debug / Profiling

Are we ... yet?

Comparison with Other Languages

Applications / Libraries / Tools

See repos kud1ing/awesome-rust & awesomo
/rust

Language stuff

Can I use feature X? caniuse.rs - Rust feature search

Async

Closures

Documentation

Enums

Errors

Iterators

Lifetime

Macros

MIR

Modules

Option & Result

Ownership / Concurrency

Privacy

Strings

Syntax extensions

Traits

Unsafe

Playground

Locale links

People

This is the official Rust Team and Servo Team

Are you searching for a rustacean? http://www.rustaceans.org/

Do you want to ask a question? Users Forum, Stack Overflow

Do you want to meet them IRL? Meetup groups, Community calendar, Community talks list, RustBridge, Time till Rust

Go to rusty events? The 2018 Rust Event Lineup, The 2019 Rust Event Lineup

Are you looking for a job? RustJobs.rs

Are you fast, friendly, and fearless? Find something Rusty to work on!

Do you want to stay up to date? The official blog, This Week in Rust, This Week in Rust Docs, The official reddit

Do you want to find out why some historical decisions took place? Chronicle.rs

Fearless Rust Bloggers

A complete list could be found here

Don't forget Ferris the unofficial mascot.

Tutorials & Workshop Materials

These are slides and materials from brick-and-mortar workshops about Rust.
While they're unlikely to help a student learning independently, they may be
of interest if you're running a workshop on Rust.

Follow me:
https://twitter.com/scott_beeker
https://github.com/dangolbeeker

Top comments (7)

Collapse
 
stephenwhitmore profile image
Stephen Whitmore

I've been wanting to learn this language for a while but for whatever reason I never prioritized it. Seems like every 6 months something related to it piques my interest. This article makes me think maybe it's time I just buckle down for 2 weeks and take a deep dive

Collapse
 
icolomina profile image
Nacho Colomina Torregrosa

I've just started with this language reading the book from the official site. I wanted to learn C++ but finally i opted for rust since it's used in many areas among them blockchain development and smart contracts which are realy intersenting techs. The great of Rust its the ownership feature which made me decide to start learning it.

Collapse
 
duarteroso profile image
Duarte Roso

C has an ABI compatibility with a huge chunk of other programming languages: Rust, Python, Go, C#, etc. In a way, C is our common language. Rust just can’t (and don’t want to) compete in this area.

Collapse
 
ddebajyati profile image
Debajyati Dey

I think your title is misleading. I think it should be "Whatever C++ can do rust can do better" . C and C++ are in very different domains and are also programmed in/with very different techniques.
Because C++ and rust way of programming is using many of the lots of features provided in the language whereas in C we don't have any features provided at all. Reinvent the wheel as much as you can. You need a garbage collector right? In a C world implement the heap memory manager on yourself and integrate with the project. Deadly!

Collapse
 
sighgone profile image
Al

thanks, ive been using rust for a little over a year (maybe a year and a half and i think its great. thanks for the comprehensive list of resource, its nice to see this on dev.to. Rust feels pretty niche right now and i dont know why (maybe the maturity of the language).
Tons of places are starting to use Rust. So i hope dev jobs for it get more. I know i love it.

Collapse
 
Sloan, the sloth mascot
Comment deleted

Some comments may only be visible to logged-in visitors. Sign in to view all comments.