Open-source News

3 aspects of Rust you need to learn

opensource.com - Tue, 12/27/2022 - 16:00
3 aspects of Rust you need to learn Moshe Zadka Tue, 12/27/2022 - 03:00

Rust is consistently voted one of the languages people most want to learn. In 2022, Opensource.com had a few articles to help you get started.

Rust is a fairly new language, but it's grown quickly. The general excitement about it goes beyond interest in a new language to try. Rust has genuinely useful features, like the ability to allocate data to the heap (instead of the stack) using the Box data type. There's no separate garbage collection required, and you don't have to manually manage memory yourself. Additionally, the Crate.io infrastructure for library management and installation makes it easy to find and use functions contributed by the Rust community.

Programming and development Red Hat Developers Blog Programming cheat sheets Try for free: Red Hat Learning Subscription eBook: An introduction to programming with Bash Bash shell scripting cheat sheet eBook: Modernizing Enterprise Java An open source developer's guide to building applications Install the toolchain

There's a lot to be excited about when looking into learning Rust, but it is a complex language and it can be intimidating. Programming is a practical discipline. To learn a language, it's not enough to read about it and ponder it. You have to use it eventually. If you're curious about Rust but haven't written any Rust code yet, then take the first step in learning Rust by installing the toolchain.

Debugging Rust

The best way to understand complicated systems is to understand how they break down. The Rust team has you covered with an example Rust application to debug.

Concurrency in Rust

Rust's "fearless concurrency" is sometimes interpreted to be about threads. This is not wrong: Rust's concurrency model does make threaded code easier to write and understand. But that's not all it can do! Another way to get concurrency is to use async code. Rust's async primitives are powerful, as Stephan Avenwedde's article Asynchronous programming in Rust makes clear.

Have you tried Rust?

Have you tried Rust yet? If not, take some time to review these articles and experiment. Let us know what you think in the comments.

Rust is a growing trend. Read these articles to keep up with one of the most exciting languages.

Image by:

Opensource.com

Rust Best of Opensource.com Programming What to read next Rust cheat sheet Introducing Rust calls to C library functions This work is licensed under a Creative Commons Attribution-Share Alike 4.0 International License. Register or Login to post a comment.

How to Write Macros in ONLYOFFICE Docs

Tecmint - Tue, 12/27/2022 - 13:21
The post How to Write Macros in ONLYOFFICE Docs first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

Do you have to work with Word documents, Excel spreadsheets, or PowerPoint presentations and need to repeat complex tasks over and over again? For example, you need to highlight duplicate values in a sheet

The post How to Write Macros in ONLYOFFICE Docs first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

Intel Habana Labs AI Driver Prepares For Move To Linux's New Accelerator Subsystem

Phoronix - Tue, 12/27/2022 - 06:30
With the in-development Linux 6.2 kernel there is the new compute accelerator "accel" subsystem/framework as part of the Direct Rendering Manager area. The creation of that new subsystem was pulled together by Intel (Habana Labs) and now their AI accelerator driver is preparing to move from the "char/misc" catch-all to this new subsystem...

UBports' Ubuntu Touch 20.04-Based Build Offered In New Beta/RC Channel

Phoronix - Tue, 12/27/2022 - 04:15
As a long awaited gift for those using UBports' Ubuntu Touch, for Christmas the open-source, community-driven crew published a beta/RC build of Ubuntu Touch re-based atop Ubuntu 20.04 LTS...

Pages