Skip to content
HHackerTube.videoSurprise me

Modernizing Compiler Design for Carbon Toolchain - Chandler Carruth - CppNow 2023

Modernizing Compiler Design for Carbon Toolchain - Chandler Carruth - CppNow 2023 on HackerTube: recommended by 1 Hacker News commenter across 1 month, 2023–2025.

CppNow

talk · advanced · evergreen

Open on YouTube

Chandler Carruth's CppNow 2023 talk on modernizing compiler design for the Carbon toolchain, using data-oriented design and modern hardware assumptions. It covers lexing, parsing and compact data structures aimed at compiler performance.

Why Hacker News recommends it

Recommended as a recent take on rethinking compiler architecture, and cited in discussions of flattened ASTs and fast lexers.

people recommended it
1
separate months
1
strong recommendations
0
discussed on HN
2023–2025
“I recommend a watch of this for a recent take on trying to change how we think of these.”
— di4na, Aug 2023, in “How to speed up the Rust compiler in August 2023”

What HN commenters said

4 Hacker News comments link this video. Each one links back to its thread.

di4naAug 2023Recommends

No but it is endemic to how we think about compilers up to now, and especially when the rust compiler arch was massively developed, more than 10 years ago. I recommend a watch of this for a recent take on trying to change how we think of these. It is an open research field ▶ this video

in “How to speed up the Rust compiler in August 2023” · View on HN

norskeldJul 2025Cites it

Is lexing ever a bottleneck though? Even if you push for lexing and parsing 10M lines/second [1], I'd argue that semantic analysis and codegen (for AOT-compiled languages) will dominate the timings. That said, there's no reason not to squeeze every bit of performance out of it! [1]: In this talk about the Carbon language, Chandler Carruth shows and explains some goals/challenges regarding performance: ▶ this video

in “Strategies for Fast Lexers” · View on HN

wrsh07Jan 2025Cites it

Chandler discusses it in this video though! ▶ this video You get some traversals for free with this layout (preorder, reverse post order). Can search for subtrees with string searching algorithms or more complex things with regex.

in “Flattening ASTs and other compiler data structures (2023)” · View on HN

pasAug 2024Cites it

Cache the position of quotes/apostrophes, etc. Optimizing for your edge case would require everyone writing and reading code to conform to this extra thing, which seems completely unnecessary. Machines are pretty fast. ▶ this video Modernizing Compiler Design for Carbon Toolchain - Chandler Carruth - CppNow 2023

in “Rhombus: Macro-extensible language with conventional syntax built on Racket” · View on HN

Topics & tags