How C++ Finally Beats Rust at JSON Serialization - Daniel Lemire & Francisco Geiman Thiesen @CppCon
How C++ Finally Beats Rust at JSON Serialization - Daniel Lemire & Francisco Geiman Thiesen  @CppCon
Uploaded March 2026 | Updated November 2026, 23 hours ago
cppcon.org
---

How C++ Finally Beats Rust at JSON Serialization - Daniel Lemire & Francisco Geiman Thiesen - CppCon 2025
---

JSON, or JavaScript Object Notation, has become a cornerstone for storing and exchanging data. Its appeal lies in its simplicity—human-readable text that elegantly captures structured data through attribute-value pairs and arrays: {"age": 5, "name": "Daniel", "toys": ["wooden dog", "little car"]}. JSON is intuitive yet powerful. But ingesting and producing JSON can turn into a performance choke point. In C++, it can be a tedious, error-prone task. Programmers wrestle with unexpected content, manually mapping data to and from native structures, all while striving for speed and safety.

With languages like Java, C#, Zig, Rust, or Python, JSON serialization and deserialization typically requires far less work. In particular, Rust's serde library blends convenience with high speed. We wish for a C++ library to automatically handle JSON production and consumption, seamlessly tied to native data structures. It is not merely to simplify life for developers; it is also about crafting code that is both fast and solid, generated at compile time by a battle-tested library.

Thankfully, C++ might soon be getting reflective metaprogramming ( PR2996 ). Leveraging the experimental Bloomberg LLVM fork with reflective metaprogramming, we have built a full-fledged implementation—complete with tests, benchmarks, and documentation. Our goal is to have production-ready code the moment mainstream compilers catch up. The results speak for themselves: we are parsing JSON directly into C++ structures at gigabytes per second, outpacing even mature heavyweights like Rust's serde. Better yet, the conversion between C++ data structures and JSON is fully automated, thanks to metaprogramming. It has the potential to be a leap forward for C++ in the data-driven age. Unfortunately, there are still problems and limitations: we present them and provide some solutions.

---

Slides: simdjson.github.io/simdjson_talks/cppcon2025/cppcon_2025_slides.html

Work at Hudson River Trading (HRT): tinyurl.com/safxfctf
---

Daniel Lemire

Daniel Lemire is a computer science professor at the Université du Québec (TÉLUQ) in Canada, known for his research in software performance. Daniel Lemire ranks in the top 2% of scientists worldwide according to Stanford University/Elsevier's 2024 ranking. He is part of the 1000 most followed programmers on GitHub. He is also editor of the journal Software: Practice and Experience a long-established (1971) journal where many crucial results were published (e.g., articles by Knuth and Bentley). Lemire is also known for his blog, where he shares insights on programming, software development, and academic research, often attracting a wide audience from both academia and industry. He has authored several influential papers and maintains popular open-source project. Additionally, Daniel engages with the programming community through his extensive writing on performance optimizations and practical software engineering tips.

Francisco Geiman Thiesen

Francisco Geiman Thiesen is a Brazilian software engineer in Microsoft’s AI Compilers group, right now he is focused on improving the performance of inference on Microsoft's MAIA chip.

A former ICPC Latin-America finalist, he remains passionate about algorithms, data structures, and writing elegant + fast code. His open-source work includes co-authoring reflection-based serialization for the high-performance JSON library simdjson and the first C++ publicly available implementation of the Karger-Klein-Tarjan algorithm for finding minimum spanning trees in expected linear time.
---


CppCon is the annual, week-long face-to-face gathering for the entire C++ community. The conference is organized by the C++ community for the community. You will enjoy inspirational talks and a friendly atmosphere designed to help attendees learn from each other, meet interesting people, and generally have a stimulating experience. Taking place this year in Aurora, Colorado, near the Denver airport, and including multiple diverse tracks, the conference will appeal to anyone from C++ novices to experts.
Annual CppCon Conference - cppcon.org
linkedin.com/company/cppcon
https://x.com/cppcon
facebook.com/CppConference
reddit.com/r/cppcon
https://mastodon.social/@CppCon
---

Videos Filmed & Edited by Bash Films: BashFilms.com
YouTube Channel Managed by Digital Medium Ltd: events.digital-medium.co.uk
---

#cpp #cplusplus #cppcon #cppprogramming #cplusplusprogramming #softwaredevelopment #softwareengineering #coding #code #computerscience #technology #technews #programming #programmer
How C++ Finally Beats Rust at JSON Serialization - Daniel Lemire & Francisco Geiman ThiesenCMake Doesnt Have to Be Painful | Simple Strategies That Work - Bret Brown - CppCon 2025Familiar C++ Patterns That Fail at Scale and the Design Shifts That Prevent Them - CppCon 2026Connecting C++ Tools to AI Agents Using the Model Context Protocol (MCP) - Ben McMorran - CppConBack to Basics: C++ Concepts - Jeff Garland - CppCon 2025Is The Future of C++ Refactoring Declarative? - Andy Soffer - CppCon 2025C++ in the Age of AI: How Visual Studio Is Evolving - Augustin Popa & David Li - CppCon 2026Lightning Talk: Bool - Implicitly Dangerous - Jeff Garland - CppCon 2025C++26 - Whats In It For You? - Marc Gregoire - CppCon 2025Lightning Talk: But I was doing the right thing! - Andrei Zissu - CppCon 2025Constexpr STL Containers: Why C++20 Still Falls Short - Sergey Dobychin - CppCon 2025Back to Basics: C++ Ranges - Mike Shah - CppCon 2025
CppCon |

How C++ Finally Beats Rust at JSON Serialization - Daniel Lemire & Francisco Geiman Thiesen

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER