Curious about Rust macros? 🦀 Check out our latest #eurorust24 video, where Sam Van Overmeire, Cloud Developer at DPGMediaIT and author of Powerful Rust Macros, breaks down Rust’s meta-programming superpowers—from cutting boilerplate to crafting custom procedural macros. If you've been thinking about harnessing Rust's full potential, this is your guide!

Watch it here 📹👉 https://youtu.be/02vpyrR1hqk

#rustlang #rustmacros #rustbook

A gentle introduction to procedural macros - Sam Van Overmeire | EuroRust 2024

YouTube

I'm still just in chapter 4 of the Rust Book but I wanted to practice what I learned so far so I made my first Rust application, a simple dice roller.

I had to search a bit to use the Clap crate for CLI arg parsing.

#rust #rustlang #beginner #learning #RustBook

La version française du #rustbook est juste abandonné ou comment ça se passe ?
Je demande pour savoir si ça vaut le coup de suivre cette version du Rust-book (ne serait-ce par comfort, par rapport au risque d'obsolescence de certains points)
I'm learning #Rust, and must say that the #rustbook is the best programing book/manual that I had the pleasure to read.

Still on my 120 day journey. Day 2
- Finished up chapter 2 of the Rust book
- Finished up the first section of the hack hack the box pen tester path.

The big take away for me today was realizing binding a variable doesn't connect a name to a concept like variableA = 100, but rather binds variableA the name to a memory location like 0x7fffe802c6e0 (feels dumb to think of it now).

#120days #rustlang #rustbook #googlecybercert #hackthebox

I wish I'd read the following two articles right after reading the #rustbook.

They've been written in 2015 and have some outdated bits. But still bring a lot of value to an overall understanding of #rustlang

The first article covers "two pillars of Rust's design:

- Memory safety without garbage collection
- Concurrency without data races"

https://blog.rust-lang.org/2015/04/10/Fearless-Concurrency.html

The second article explores "the third pillar

- Abstraction without overhead"

https://blog.rust-lang.org/2015/05/11/traits.html

#programming

Fearless Concurrency with Rust | Rust Blog

Empowering everyone to build reliable and efficient software.

This thread on the #rustlang forum has taught me so much more than any other resource about the #borrowChecker that I think its content should become part of some official docs (like a deep dive section in the #rustBook ) https://users.rust-lang.org/t/what-is-a-good-mental-model-of-borrow-checker/86806?u=tlaferriere
What is a good mental model of borrow checker?

Whenever we write any piece of code, we rely on our mental models. We rely on our mental model of the hardware, and map the code we write with hypothetical actions that would be performed by the hardware that is our mental model. Obviously our mental model of the hardware is just that, a Model. It does not correspond to any actual hardware, it does not include weird edge cases that might exist on real hardware, it might include operations that might not exist on real hardware. Our mental mode...

The Rust Programming Language Forum

@lisyarus
You probably already know this, but Chapter 4 of the #rustBook discusses ownership.

https://doc.rust-lang.org/book/ch04-00-understanding-ownership.html

Not that I'm an expert; I'm only on chapter 8.

#rust

Understanding Ownership - The Rust Programming Language

Fearless Concurrency - The Rust Programming Language

@wizzwizz4 Well spotted! That's a trivial example from the #RustBook.

https://doc.rust-lang.org/book/ch04-02-references-and-borrowing.html#references-and-borrowing

I just wanted to make a joke with that Space Odyssey reference

References and Borrowing - The Rust Programming Language