sfba.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A Mastodon instance for the San Francisco Bay Area. Come on in and join us!

Server stats:

2.4K
active users

#rust

318 posts242 participants21 posts today

Not C++, learning Rust.
Went through all the basic stuff in the rust book, and now rewriting an existing C serial molecular dynamics simulation code in Rust.

Fun experience. Learning so many things as I am implementing this.

#rustlang#rust#c

🚀 Just released: Findutils 0.8.0!

This update brings new formatting options (-fprint0, -fprintf), improved file handling with -files0-from, and more efficient command execution with exec[dir]+.

Now with 80.87% GNU test suite compatibility - our best yet!

Download: github.com/uutils/findutils/re

📦 Findutils 0.8.0 Release:
We are thrilled to announce the release of Findutils 0.8.0! This version brings numerous enhancements, bug fixes, and new features, further improving the toolset's robust...
GitHubRelease 0.8.0 · uutils/findutils📦 Findutils 0.8.0 Release: We are thrilled to announce the release of Findutils 0.8.0! This version brings numerous enhancements, bug fixes, and new features, further improving the toolset's robust...

I practiced some async Rust code today with Tokio. The idea was to download 10 images using async functions and have graceful shutdown, cancellation and timeout.

I tried using tokio select!, channels and my Go knowledge but it's much harder to do what I want than I anticipated.

This is my code:

pastebin.com/WcDzd0ay

PastebinTokio Rust Concurrency Attempt - Pastebin.comPastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

Sigh, I think I might have to switch away from #VisusalStudioCode. Seems the only stuff they work on is #AI, to the detriment of everything else.

Shall I move back to #vim? Or rather #neovim. Do I still have the patience to configure that just the way I like it?
I could also try out that newfangled #zed editor that is getting all the hype these days.

One must-have feature is it having good vim keybindings though, I'm lost without them.

#SoftwareDevelopment #golang #rustlang #rust

1/ Status: of late, I've been learning to write async functional #rust . I do this with every programming language I encounter: try to build a little project, a record of what I learned and how I learned it.

It's served as an insulator from these trying times. I have something to do, something to accomplish, so many things to learn.

Something to distract me.

Every day just gets weirder. I'm hardly alone in fearing for my Social Security, or running afoul of Trump's Stasi.

This week, I was writing #Rust code to parse the From: line in an email. I wanted to use a library, because email header parsing is notoriously difficult to get right. This library clearly was built expecting multiple addresses to be given on the From: line.

"What nonsense is this?"" I thought. And went to the RFCs, and sure enough, that's supported in RFC822, RFC2822, and RFC5322.

And then 2 days later I found a use for it. And it seems to work.