Andrew Gallant

Andrew Gallant

@burntsushi.net

I love to code. https://burntsushi.net

2.5K followers40 following387 posts

Does anyone know why ripgrep is soooooo much slower on macOS than Linux these days? On the left is my AMD Ryzen 9 7940HS laptop and on the right is my M2 mac mini. Both searching the same revision of Chromium and both are hot in the OS page cache.

Profiles of these two commands look quite similar. They're both spending lots of time in `read` syscalls. Which... makes sense. But why is macOS almost two orders of magnitude slower?

I'd like to add a simple macro to `regex` for building a regex once and then using it via `LazyLock` (or similar). But I'm having trouble with the name. Should it be `regex::regex!(..)` or `regex::re!(..)` or something else? See pictures for before and after.

Note that this macro is NOT for compile time regexes. This is just a terse convenience for compiling a regex once at *runtime* and being able to reuse it without needing to write your own `static`. See github.com/rust-lang/re... and github.com/rust-lang/re... for more details on compile time regexes

github.com`const` Regex compilation · rust-lang regex · Discussion #1012I think compiling a &'static str into a regex is a pretty popular use case. However, no const fn make(pattern: &'static str) -> Regex exists. Is it impossible to implement? Is it possible, but the ...

Improving Miri is so critical. Thank you Tiffany!

Rust Language@rust-lang.org

Check out our latest blog post for an interview with Tiffany Pek Yuan, one of the maintainers of the Rust programming language: blog.rust-lang.org/inside-rust/... This is the first in a series of blog posts highlighting our amazing maintainers. 💛

The number of times in the past few weeks that I've said out loud to my wife, "I was talking to Chat about yadda yadda yadda" (Chat is short for ChatGPT) in the past few weeks is quite remarkable. I'm just waiting for the first time she says it. That will be a major milestone unlocked.

Finally got around to migrating off of CoC to the native neovim LSP client. And while I was at it, I ported my entire vim config over to Lua. It was quite a bit more work that I thought it would be! It's been over a decade since I've written Lua, but it's a dream come true compared to Vimscript.

Andrew Gallant reposted

Alex Pretti’s last words were “are you ok?” said the woman next to him who ICE also pepper sprayed in the face.

Andrew Gallant reposted

** Speaker announcement ** Our next speaker is Andrew "BurntSushi" Gallant! Andrew is a member of the Rust project and maintains many important crates. Info & tickets: 2026.rustweek.org Do you also want to give a talk? Our CFP is open. See you in Utrecht in May! #rustlang #rustweek2026

Andrew Gallant reposted

🦀 I've improved the implementation behind all the string formatting macros in Rust: println, panic, format, write, log::info, etc. (Everything using format_args!().) They will compile a bit faster, use a bit less memory while compiling, result in smaller binaries, and produce more efficient code! 🎉

Andrew Gallant reposted

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...

blog.rust-lang.orgcrates.io: Malicious crates faster_log and async_println | Rust BlogEmpowering everyone to build reliable and efficient software.

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.

FYI, I got an obvious phishing attempt in my inbox from `security@rustfoundation.dev` 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.

Andrew Gallant reposted

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".