shakedown.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A community for live music fans with roots in the jam scene. Shakedown Social is run by a team of volunteers (led by @clifff and @sethadam1) and funded by donations.

Administered by:

Server stats:

266
active users

#Rust

16 posts15 participants1 post today
I rewrote the USB factory program that I've been talking about now in Rust based on my C PoC and the patterns for using io_uring while using it.

Reality hit and there's need to also talk to my program for managing things like USB hubs and ports, and images used as sources for them.

I first did JSON protocol yesterday, but it really makes the ad-hoc testing heavy. It's probably great when you have a product shipped and JSON is spoken by computers to each other but for human on terminal interaction it is a nightmare.

Today I found like ultimate solution for client-side of this: Clap. You need exactly one parser for a simple command-language, and then the commands that are typed are subcommands of that parser. And Clap has rich set of features what those contains.

Stuff coming back from program is still JSON (like listing of stuff) but since it is always data (vs not code + data) I will million great ways to fixup that part :-)

Definitely a trick to my hat of tricks that I will re-use also on other languages to get quickly ad-hoc command languages setup!

#rust #rustlang #clap

Good morning. 😴⏰☕

23 July 2025

When we got home, the grass was nearly knee-high in places. I mowed a bit yesterday evening, but most of it is still waiting for me. Funny thing is, all I really felt like doing was sitting with my feet up—I had to nudge myself just to tackle the few small tasks I managed.

I keep telling my wife we need a staff: perhaps a butler named Giles, a maid named Hazel, and a groundskeeper named George. Hmm… does the butler double as a chauffeur? Fairy tales can come true, it can happen to you... 🎶

But here on earth, I’ll load the gas cans into the truck, and Charlie and I will head out to fill them up this morning. We were only gone 11 days—confirmed by the vet’s bill for boarding.

“A lawn is nature under totalitarian rule.” — Michael Pollan

Continued thread

Good news Homebrew friends! :) Now bmputil-cli has a formulae you can use to install it. This should simplify things especially for those that manage a lab with a bunch of machines! :) All you need to do is run `brew install blackmagic-debug/blackmagic/bmputil-cli` and profit! github.com/blackmagic-debug/ho #opensource #debugging #embedded #electronics #rust #macos #homebrew

Homebrew tap for blackmagic software. Contribute to blackmagic-debug/homebrew-blackmagic development by creating an account on GitHub.
GitHubGitHub - blackmagic-debug/homebrew-blackmagic: Homebrew tap for blackmagic software.Homebrew tap for blackmagic software. Contribute to blackmagic-debug/homebrew-blackmagic development by creating an account on GitHub.

Every time I read an article about shortcoming of a tool, I wonder how much of that is ego and how much of it is an actual shortcoming?

Maybe it's a sign my perfectionism is going down, but different tools being imperfect in different ways does not make them bad or less useful?

Like, I just read an article about the #rust borrowchecker not being able to prove a valid program because it doesn't look 'through' functions. And this making it 'worse' in user experience.

And this feels fairly off to me. Sure the checker could try to do whatever you wish it did. But it doesn't, and so you have to adapt.

Like, not everything needs to fit what you expect from a tool I think.

It is fair to not use that tool (i.e. Rust) if you find that annoying, but I struggle hard with this mindset. Where rather than adapting to use a tool to its fullest, people just bang their head against it repeatedly saying "look how bad it is".