Intro to Rust (Concurrency, Threads, Channels, Mutexs and Arcs)

in #technology9 years ago (edited)

Rust's approach to concurrency is rather interesting and it has evolved drastically over the years. Originally, the language had a full system of Procs and Workers with Actors and a co-routine style system similar to Go. These days Rust takes some of the best ideas from famous distributed languages like Go and Elixir such as Channels and adds in some of the more standard ideas from languages like C++ and Java in the form of the Mutex and the Arc. Keeping things relatively simple and abstraction free helps Rust have a fairly low runtime overhead which is important for a systems level programming language. You can include libraries that do implement other concurrency models such as Isolates, Actors and Co-Routines but Rust stays less opinionated on its concurrency model for the sake of keeping things trimmed down and smooth.

Ultimately, the result is a system that can seem a bit rough around the edges and superlative until you consider the implications of the Rust ownership model, Rust's strong typing system and it's very helpful compiler. In this video we look at the surface level standard library mechanisms of the Mutex, Arc, Channel and the OS Thread and we use them to create multi-threaded programs.

If you enjoy the video, feel free to follow me on Steemit or on YouTube to get updates on the channel as well as more content.

If you like what I do, tips and upvotes are welcome:
ETH: 0xE448a8DDA5886C49d35B191B2F20630c103024c8
LTC: LXsKxF5JhmMtKgqfcUFdvcXVwiaSqxN9cP

Also, feel free to check out my channel for videos on Go, Elixir and Elm

Sort:  

I am being amazed on all the great work you had done on youtube channel with Elixir, Elm, Rust and Go. Definitely subscribed to you!

The @OriginalWorks bot has determined this post by @tensor to be original material and upvoted(1.5%) it!

ezgif.com-resize.gif

To call @OriginalWorks, simply reply to any post with @originalworks or !originalworks in your message!

excellent post I love greetings and I follow you.

I'm glad you enjoyed them. Thank you for the feedback.

a pleasure, I hope you can see my profile thanks I follow you .

great content!

Congratulations! This post has been randomly Resteemed! To join the ResteemSupport network and be entered into the lottery please upvote this post and see the following rules.

Thank you, I am glad you enjoyed it.

Congratulations @tensor! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

Award for the number of upvotes

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

By upvoting this notification, you can help all Steemit users. Learn how here!

You have collected your daily Power Up! This post received an upvote worth of 0.19$.
Learn how to Power Up Smart here!

Coin Marketplace

STEEM 0.04
TRX 0.33
JST 0.102
BTC 64006.92
ETH 1857.22
USDT 1.00
SBD 0.39