Posts by Andrew Gallant
What it means that Ubuntu is using Rust, new blog post with some thoughts spurred by Jon Seager's excellent keynote at @rustnationuk.bsky.social (smallcultfollowing.com/babysteps/bl...)
Yeah it basically consumed my entire Saturday haha. I kept struggling with how to find vimscript equivalents. e.g., is it vim.cmd.foo? Or vim.cmd.fn?
I ended up just porting my CoC keybindings over. They were already pretty close to neovim's defaults, so my muscle memory kept protesting.
Yes! Ironically, lua_ls was the last thing I setup lol.
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.
And examples in the Jiff repo have `query_as` working: github.com/BurntSushi/j...
It should? docs.rs/jiff-sqlx/la...
I'm not a sqlx user. Last time I checked, improving here was blocked on the sqlx project. Again, last time I checked, sqlx provided chrono/time support on their own and there is some coupling involved there that's not easily accessible to outside crates.
uutils has now fully migrated off of Chrono (which is now soft-deprecated) to Jiff! github.com/uutils/coreu...
Thanks for the link. It looks like he actually came to that determination after 2021-01-06: web.archive.org/web/20210204...
Trumpism is Fascism
github.com/BurntSushi/n...
Alex Pretti’s last words were “are you ok?” said the woman next to him who ICE also pepper sprayed in the face.
I remember printing out MapQuest directions. And whoever sat in the front was the navigator haha. And on roadtrips, we'd have an atlas book we'd consult when we got lost.
But yeah, now I'm completely dependent on GPS.
“Floating-Point Printing and Parsing Can Be Simple And Fast”
The fastest known floating-point printer and parsing algorithms - fixed-width printing, shortest-width printing, and parsing, all in 400 lines of Go.
research.swtch.com/fp
research.swtch.com/fp-proof
`rg ./some/file/path -e your-pattern` should work
I'd rather RFC 9557 for timestamps personally. That way you can include time zone annotations.
For durations, there is ISO 8601, but it's annoyingly difficult to read. I do have a specification and implementation for an alternative in Jiff: docs.rs/jiff/latest/...
I've updated the rebar benchmarks, and .NET's regex engine in v10 is right about on par with Rust's regex crate! Nice work!
(rebar is, I believe, the most comprehensive public regex benchmark in existence.)
github.com/BurntSushi/r...
Yes: github.com/BurntSushi/j...
(See also surrounding code for more comments.)
** 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
Note that the Rust regex crate does not use derivatives.
The source of the standard Rust Hello World program with the generated assembly before and after the change. The before version has 11 instructions and stores 56 bytes on the stack. The after version has 3 instructions and stores no data on the stack.
🦀 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! 🎉
Jaw droppingly wild. www.youtube.com/watch?v=NPtK...
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...
Thank you!!! <3
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.
ripgrep 15 is out! Mostly a host of bug fixes, particularly around gitignore. Some minor perf improvements. A couple small features. And (partial) Jujutsu support for gitignore.
github.com/BurntSushi/r...
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...