
C2Rust with Stephen Crane
Rustacean Station
00:00
Clang to Rust - What's the Difference?
The AST is really the key thing here, because the AST is sort of the machine representation of something human readable. We don't want to go any further than the AST. Clang has its own like IR that it's transforming into LLVM. We want to stay as close to the front end, the parsing as possible. So we were targeting readable source code rather than every switch or break statement being transformed into this weird loop with weird state variables.
Transcript
Play full episode