Hi, I'm Eric.

I’m an avid world traveler, photographer, software developer, and digital storyteller.

I help implement the Content Authenticity Initiative at Adobe.

Search Results

Behind the Scenes of Rust String Formatting: format_args!()

Found on 5 December 2023 via Mastodon 472

via Mara Bos (@Mara@hachyderm.io): 🦀 New #rustlang blog post! “Behind the Scenes of Rust String Formatting: format_args!()”

A deep dive into how Rust’s format_args!() macro and fmt::Arguments type work behind the scenes. Mara Bos explores the current implementation, its trade-offs in structure size, code size, and runtime overhead, and brainstorms potential future improvements. A fascinating look at one of Rust’s most ubiquitous but underappreciated building blocks.

Mara Bos: Behind the Scenes of Rust String Formatting: format_args!()

If you’ve enjoyed this …

Subscribe to my free and occasional (never more than weekly) e-mail newsletter with my latest travel and other stories:

Or follow me on one or more of the socials: