Возрастное ограничение 12+

Lightning Talk Improving an HTML Parser with Swift 6 Pattern Matching - Andrew Kaster

Описание

#cpp #cppcon

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.

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

https://www.youtube.com/watch?v=KCRx1jE6DnY

Автор

CppVault
CppVault