Uploaded April 2025 | Updated November 2026, 3 days ago
cppcon.org
---
Improving an HTML Parser with Swift 6 Pattern Matching - Andrew Kaster - CppCon 2024
---
Implementing an HTML parser is a lot of work, but the current specification is extremely proscriptive about the expected state machine. The naive approach might lead to some spaghetti though. Let's refactor part of the Ladybird browser's HTML parser in LibWeb using a pattern matched style in Swift 6 to demonstrate the types of transformations that are possible with pattern matching and choice types.
---
Work at Hudson River Trading (HRT): tinyurl.com/safxfctf
---
Andrew Kaster
Andrew Kaster is a long time open source contributor and maintainer for the SerenityOS and Ladybird Browser projects. He works full time for the Ladybird Browser Initiative.
---
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
---
#html #cpp #cplusplus #cppcon #cppprogramming #cplusplusprogramming #softwaredevelopment #softwareengineering #coding #code #computerscience #programming #programmer
cppcon.org
---
Improving an HTML Parser with Swift 6 Pattern Matching - Andrew Kaster - CppCon 2024
---
Implementing an HTML parser is a lot of work, but the current specification is extremely proscriptive about the expected state machine. The naive approach might lead to some spaghetti though. Let's refactor part of the Ladybird browser's HTML parser in LibWeb using a pattern matched style in Swift 6 to demonstrate the types of transformations that are possible with pattern matching and choice types.
---
Work at Hudson River Trading (HRT): tinyurl.com/safxfctf
---
Andrew Kaster
Andrew Kaster is a long time open source contributor and maintainer for the SerenityOS and Ladybird Browser projects. He works full time for the Ladybird Browser Initiative.
---
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
---
#html #cpp #cplusplus #cppcon #cppprogramming #cplusplusprogramming #softwaredevelopment #softwareengineering #coding #code #computerscience #programming #programmer







![How C++ Finally Beats Rust at JSON Serialization - Daniel Lemire & Francisco Geiman Thiesen
https://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, Rusts 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 Rusts 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: https://simdjson.github.io/simdjson_talks/cppcon2025/cppcon_2025_slides.html
Work at Hudson River Trading (HRT): https://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/Elseviers 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 Microsofts 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 - https://www.cppcon.org
https://www.linkedin.com/company/cppcon
https://x.com/cppcon
https://www.facebook.com/CppConference
https://www.reddit.com/r/cppcon/
https://mastodon.social/@CppCon
Videos Filmed & Edited by Bash Films: http://www.BashFilms.com
YouTube Channel Managed by Digital Medium Ltd: https://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 Thiesen](https://i.ytimg.com/vi/Mcgk3CxHYMs/mqdefault.jpg)


