I had the pleasure of being a guest on the Rust In Production podcast recently. Got to talk all things Rust and 1Password.
podcasts.apple.com/us/podcast/r...
@andrewburkhart.bsky.social
Senior Rust Developer, 1Password
I had the pleasure of being a guest on the Rust In Production podcast recently. Got to talk all things Rust and 1Password.
podcasts.apple.com/us/podcast/r...
Published my first Rust crate today. Introducing priact.
crates.io/crates/priact
priact implements the actor pattern (based on the Swift implementation) in Rust and adds a priority queue for your actors methods to respect the urgency you need for them.
Workspace featuring various Raspberry Pi boards, including a Raspberry Pi Pico on a breadboard, two Pico W boards, and a Raspberry Pi Debug Probe in its case. A Pimoroni Badger 2040 W e-ink display shows developer information and Wi-Fi details in the background. Electronics components are neatly arranged on a wooden desk, with cables and packaging nearby.
Welcome to my mega π§΅Β on getting started with Rust on the RP2040! This thread aims to get you started with writing Rust on the Raspberry Pi Pico. The actual end result will just be a blinking on-board LED. Itβs up to YOU to take this foundation and make awesome projects from it.
24.11.2024 23:59 β π 200 π 39 π¬ 17 π 13Freshly open-sourced, the βZeroizerβ we discussed @wesbos.com @tolin.ski
github.com/1Password/ze...
The domains is how they really got us (sincerely a guy who hasnβt made a proper one)
18.11.2024 16:42 β π 0 π 0 π¬ 0 π 0We have a Rust Study Group at 1Password thatβs helped hundreds of learners from all different backgrounds (CS, customer service, sales, etc.) learn Rust from scratch.
I had the honor of presenting some of our learnings from this group at RustConf in Montreal this year.
youtu.be/EY2KT0QZnkg?...
If you convert the above code to this code, the app will panic. When we hit the expect() line, nothing from the async fn start_invocation_loop() has run yet.
06.11.2024 18:56 β π 1 π 1 π¬ 0 π 0Rust Tip: async fn is entirely lazy.
I posted this code the other day showing how you can do some sync setup before an asynchronous block to initialize things needed by the future.
Many times, any fn() -> impl Future can be replaced by an async fn. Not true here.
Explanation in π§΅
Actually this should've been like this. Oops
06.11.2024 18:52 β π 0 π 0 π¬ 0 π 0Sounds like you should just switch to Rust π
03.11.2024 00:55 β π 6 π 0 π¬ 0 π 0The future that is being polled by block_on() is the future that is returned by start_invocation_loop(). That future is everything inside the async move {} block. The code in that block only executes when polled.
However everything above that happens synchronously before even the .get() call.
Rust Tip: Rust futures are lazy but you can perform synchronous setup before they're polled.
For example, the code in this image might seem like it should panic at first glance because expect() is called before start_invocation_loop() initializes the OnceCell but it doesn't.
Explanation in π§΅
My guess is bsky.app/profile/synt.... I just went looking for the same reason π€£
02.11.2024 17:28 β π 1 π 0 π¬ 1 π 0