Houston Bova

@zethtren
25 Followers
52 Following
343 Posts

@josh Reading The Book does help most people as a first step—Rust has new concepts, it's hard to just dive in, IMO. If you need to learn on something concrete, I would recommend Rustlings and Exercism for a bit. Once these seem boring, then jumping into a project of your own will be much more rewarding/accessible.

If you tag with #RustLang and wait for EU to wake up, you'll get lots of great tips.

For web, check out Leptos and Axum specifically.

Links: https://fosstodon.org/@dpom/111462470734536008

Dusty Pomerleau (@[email protected])

A thread of learning materials for various aspects of #Rust (1/x): [the rust programming language](https://doc.rust-lang.org/book/title-page.html) [rustlings](https://github.com/rust-lang/rustlings) [exercism](https://exercism.org/tracks/rust) [easy rust](https://dhghomon.github.io/easy_rust/Chapter_1.html) [effective rust](https://www.lurklurk.org/effective-rust/intro.html) [the cargo book](https://doc.rust-lang.org/cargo/index.html) [the rustup book](https://rust-lang.github.io/rustup/) [the rust reference](https://doc.rust-lang.org/stable/reference/) [rust by example](https://doc.rust-lang.org/stable/rust-by-example/) @[email protected]

Fosstodon

1000 richest people are approched. "The end of the world is here. Time to go to your doomsday bunker", they are told. The billionaires nodded. They knew this was coming. They were prepared.

So they gathered their loved ones and locked themselves in luxury bunkers. No contact to outside world.

10 years later they emerge. The world has healed. The air is breathable, people are happy. "What was the catastrophy?" they ask the first person they meet.

She screams: "THEY GOT OUT!!!"

#microfiction

But the end result of all this is that you CAN, in fact, just look a the Rust API and know how to use it correctly for the most part. You never have to worry about reference counts, about NULL pointers, about forgetting to check results, about dropping refs in error cases.

You never have to worry about holding the right locks, about accidentally forgetting to take a ref or dropping it twice. You never have to wonder how error returns are encoded.

Because if you make a mistake with these things, your code won't compile.

Of course you can still misuse APIs, but the worst that will happen is that you'll get an error return, or maybe a deadlock (deadlocks are easy to debug with lockdep and I wrote a really neat Arc<> integration to catch potential drop/decref related locking errors).

Even with APIs that mostly are fairly rigorously documented (OpenFirmware/Device Tree comes to mind), following all the rules in C is often tedious and error prone. Look at some random OF code in a driver and there's a good chance it leaks references.

(This doesn't really matter for most systems since they don't compile kernels with OF_DYNAMIC so ref counts are ignored, so this never gets noticed and fixed.)

But with my OF Rust abstractions? They do ref counting for you. You can just forget about it.

Publicly financed software should be available to the public. We should be able to use, study, share, and improve the code that has been developed with public money. Show your support with a 'Public Money? Public Code!' sharepic. #PublicCode #FreeSoftware

https://sharepic.fsfe.org/#pmpc

FSFE Sharepic Generator

#FollowFriday

The S in AI stands for security.

The E stands for efficiency.

The R stands for reliability.

Free #Rust Course in Mainz, Germany 

I am happy to announce that I will offer my Rust course for the third time 😍

📍 Where: In person at the university of Mainz #JGUMainz
📆 When: 26.08. - 30.08.2024 from 10 until 17 o'clock
📚️ Content: My modified version of #ComprehensiveRust and #Rustlings: https://comprehensive-rust.mo8it.com
🏃 More info and free registration: https://fachschaft.physik.uni-mainz.de/rust (scroll down for the English version)
🗣️ Language: English

#RustLang

Welcome to Comprehensive Rust 🦀 - Comprehensive Rust 🦀

Reminder that my book—Rust Atomics and Locks—is freely available online: https://marabos.nl/atomics/ 😊

(If you read it, please leave a review on https://www.goodreads.com/book/show/63291820-rust-atomics-and-locks)

#rustlang

Rust Atomics and Locks by Mara Bos

Low-level Concurrency in Practice. This practical book helps Rust programmers of all levels gain a clear understanding of low-level concurrency. You'll learn everything about atomics and …

I'm adding the regex_switch! macro to lazy-regex: a switch like alternation with variables declared from the named capture groups.

Of course all regexes are lazy static and checked at compile time.

Feedback welcome.
https://github.com/Canop/lazy-regex/pull/35

#rust #regex

Add regex_if! and regex_switch! by Canop · Pull Request #35 · Canop/lazy-regex

Those two macros allow conditional computation based on regex matching, with variables declared from the named capturing groups. Of course the regexes are lazy static and checked at compile time. E...

GitHub
Squarespace’s CMO cold-called firms in the phone book to land her first role—and says Gen Z must be ‘willing to do anything’ to get a job

Squarespace CMO Kinjil Mathur climbed the ranks of Conde Nast, Saks Fifth Avenue and Foursquare to the C-suite at Squarespace. 

Fortune