Andrew Gallant
@burntsushi.net
2.1K followers 35 following 320 posts
I love to code. https://burntsushi.net
Posts Media Videos Starter Packs
FYI, ripgrep doesn't use anstream. Indeed, it doesn't even use `println!`. It bubbles I/O errors up to `main` and handles pipe errors specially: github.com/BurntSushi/r...
github.com
Second paragraph of the linked page:

In case you haven't heard of it before, ripgrep is a line-oriented search
tool that recursively searches the current directory for a regex pattern.
By default, ripgrep will respect gitignore rules and automatically skip
hidden files/directories and binary files.
Reposted by Andrew Gallant
The crates.​io team was notified of two malicious crates (with similar names as legitimate crates) which were actively searching file contents for Etherum private keys, Solana private keys, and arbitrary byte arrays for exfiltration.

See the blog post for details: blog.rust-lang.org/2025/09/24/c...
crates.io: Malicious crates faster_log and async_println | Rust Blog
Empowering everyone to build reliable and efficient software.
blog.rust-lang.org
Reposted by Andrew Gallant
Happy 10 year anniversary to this tweet! Has memory safety in C++ been solved yet?

x.com/CppCon/statu...
Found what appears to be my oldest game save on a physical memory card. From about 18 years ago!

This is from The Simpsons: Hit and Run. On a GameCube memory card.

I do probably have some N64 memory cards lying around... Hmmm.
Reposted by Andrew Gallant
We received reports of a phishing campaign targeting crates​.io users. Do not click on links asking to authenticate to protect your account. More information: blog.rust-lang.org/2025/09/12/c...
crates.io phishing campaign | Rust Blog
Empowering everyone to build reliable and efficient software.
blog.rust-lang.org
Yeah I am annoyed by that. I had to click to see the full address.
FYI, I got an obvious phishing attempt in my inbox from `[email protected]` that was masquerading as a security breach notification. It made it past gmail's spam filters.

The link goes to the `github.rustfoundation.dev` domain.
I would definitely question the 99% number there. And yeah, people will disagree about whether a loud failure is better or worse than a silent logic failure in any given scenario.
Yeah you certainly aren't the only one to hit it. It's a tough problem. Like, I could just make it so you can't do arithmetic on a `Timestamp` with a `Span`, but that also feels like a bit of a bummer.
What did it stop you from doing?
Right, in this case, Jiff is preventing you from doing calendar arithmetic on a type that cannot support. Because the only way to do calendar arithmetic correctly is with a time zone.
Jiff is *heavily* inspired by Temporal.
Reposted by Andrew Gallant
Today, we're announcing our first hosted infrastructure product: pyx, a Python-native package registry.

We think of pyx as an optimized backend for uv: it’s a package registry, but it also solves problems that go beyond the scope of a traditional "package registry".
You can do `echo '!/.github/' >> .rgignore` in your repo root and that will forcefully whitelist the directory.
Here are a few more.

He was a great cat. I'd always tell the vet (on his many, many, many visits over the years) that while he was a squirmer, he didn't have a mean claw in his paws.
Plato, Aug 2010 - July 7, 2025. You never did quite learn how to poop like a normal cat, but I loved you anyway. I'll miss you buddy.
Feel free to open a question if you want more help.
Yes. You can do that. You can literally match arbitrary bytes. There are examples right in the `bytes` module: docs.rs/regex/latest...
regex::bytes - Rust
Search for regex matches in `&[u8]` haystacks.
docs.rs
The regex crate can already match non-UTF-8 patterns.

bsky isn't really the best place to ask technical questions like this. Can you open a question on the regex repo instead? github.com/rust-lang/re...

Please include more details. Like an example of what you want to work but doesn't today.
rust-lang regex · Discussions
Explore the GitHub Discussions forum for rust-lang regex. Discuss code, ask questions & collaborate with the developer community.
github.com
Reposted by Andrew Gallant
Howdy all. I'm unfortunately not going to be with my employer for much longer due to team relocation. If anyone has any info on roles that would allow me to continue my Rust compiler work (in New York City), they'd be greatly appreciated.
Reposted by Andrew Gallant
The uv build backend is now stable, and considered ready for production use.

An alternative to setuptools, hatchling, etc. for pure Python projects, with a focus on good defaults, user-friendly error messages, and performance.

When used with uv, it's 10-35x faster.
"Jiff's main datetime type, integrates the timezone without a generic. This lets us get rid of DatePatternContext entirely, replacing it with just a Zoned to represent the current time."

Vindication!!! Haha