Oh cool! Result::flatten is now stabilized :D
07.08.2025 11:44 β π 5 π 0 π¬ 0 π 0@diondokter.nl.bsky.social
Embedded tech lead at Tweede golf. I love programming in Rust. Also at: @diondokter@fosstodon.org Netherlands
Oh cool! Result::flatten is now stabilized :D
07.08.2025 11:44 β π 5 π 0 π¬ 0 π 0A couple of years ago I wrote this blog post: tweedegolf.nl/en/blog/65/a...
Generally these numbers should still hold up.
I'm also taking the opportunity to miette-ify the codebase and get really awesome error messages in there.
Thanks for the cool work!
Yep! This is really nice. I've been porting my device-driver crate to KDL. It has a field called 'allow-address-overlap' and in other formats you had to specify true even when the default when not present is false.
It's awesome how nicely it sits between data format and dsl
Tom Paris and captain Janeway as lizards from the Voyager episode Threshold.
You don't want to reach warp 10. The captain and the pilot might just procreate with each other
03.08.2025 19:25 β π 4 π 0 π¬ 0 π 0Is it because of the formatting? Are you using core::fmt?
You might be able to get it to:
NETSTACK.log(format_args!("hello: {}", 42)).await;
Not sure if that's better though
Just released sequential-storage 5.0.0. Compared to 4.0.0 there are a nice bunch of edge case problems fixed.
It's a barely breaking change, so easy to update!
crates.io/crates/seque...
Idk, could just be sensor differences too. But different enclosures also definitely have impact
30.07.2025 09:39 β π 0 π 0 π¬ 1 π 0once again, #rustlang is the most admired programming language on the stack overflow survey: survey.stackoverflow.co/2025/technol...
29.07.2025 18:33 β π 95 π 12 π¬ 6 π 2One more thing Those of you interfacing RP2350 to retro computer hardware will be pleased to hear that, after an extensive qualification campaign, RP2350 is now officially 5V tolerant! Just make sure to keep VDDIO powered when 5V is applied to any GPIO pad, otherwise the pad will be damaged. And be sure to read the relevant sections in the updated datasheet.
Also
29.07.2025 13:31 β π 32 π 4 π¬ 4 π 1New RP2350 stepping just dropped, E9 fixed.
www.raspberrypi.com/news/rp2350-...
This is more vibes-based than I wanted, but here's the new filtering code for stackdump: github.com/tweedegolf/s...
Now when you run the tool, you don't get spammed with defmt stuff
Apparently it's an optimization: github.com/llvm/llvm-pr...
22.07.2025 12:51 β π 1 π 0 π¬ 1 π 0Dwarf debug info showing a variable with a linkage name and an address
NM output showing that variable doesn't have a symbol, but at the same address is a symbol called .L_MergedGlobals.1067
What the hell are merged globals! And why is it breaking the debug info! π‘
22.07.2025 12:48 β π 1 π 0 π¬ 1 π 0I'm reminded of how much gaslighting elf and dwarf do.
The dwarf claims there's a variable with a certain linkage name.
I then check the elf, and there I can't find it.
So does it exist?
Did LTO remove it without updating the dwarf?
Unless I want to dig into LLVM, there's no way to find out...
SB = stacked borrows
TB = tree borrows
Both proposed formal models for what is considered valid aliasing (i.e. provenance), but neither have been officially adopted and both have slightly different (and sometimes confusing/unintended) behavioral nuances.
Love this explanation! Thanks!
21.07.2025 22:20 β π 1 π 0 π¬ 0 π 0Ha, those are much more technical terms than I'd use (or know), but yes this
21.07.2025 15:03 β π 1 π 0 π¬ 1 π 0Random thought:
`slice.as_ptr()`
is not the same as
`&raw const slice[0]`
with regards to (strict) pointer provenance
We have 100+ Rust-related articles on our blog! Read them here: tweedegolf.nl/en/blog/rust
Topics: web development, systems programming, Embedded Rust, open-source projects, memory-safety, interoperability with other languages, testing and bug hunting.. and much more.
Enjoy!
#rustlang
New blog post: I am a Rust compiler engineer looking for a new job
nnethercote.github.io/2025/07/18/l...
Does anybody know of a tool that can analyze the use (and maybe durations) of critical sections?
I've never done hardcore realtime projects, but sometimes there's a requirement of 'needs to happen in 50ms'. It'd be nice to get more analysis instead of simple testing and gut feeling
I think that's Gource
16.07.2025 11:02 β π 1 π 0 π¬ 0 π 0This looks great!
15.07.2025 15:24 β π 0 π 0 π¬ 0 π 0That could work if literally all formatting needs to be deferred. But that might also break normal code
15.07.2025 06:43 β π 1 π 0 π¬ 0 π 0Looking for feedback here: rust-lang.zulipchat.com#narrow/chann...
14.07.2025 20:16 β π 0 π 0 π¬ 1 π 0Oh lol, didn't look through the other replies. I'm not the first mention zmq π
13.07.2025 21:47 β π 1 π 0 π¬ 0 π 0Maybe take some inspiration from the ZeroMQ website? zeromq.org
(Though maybe not, because it calls itself 3 different things in the first couple sentences)
But something like 'messaging library' sounds good I think
It might be stupid, but when I open a blog and find out the sentences don't have their first words capitalized, I tend to not read the blog...
13.07.2025 07:40 β π 4 π 0 π¬ 0 π 0Link to test project: github.com/diondokter/i...
11.07.2025 13:46 β π 0 π 0 π¬ 0 π 0