Overview
Explore the potential of Rust for language development in this 36-minute conference talk from Strange Loop. Dive into the process of building a compiler for a small, garbage-collected Scheme-like language entirely in Rust. Discover the advantages and challenges of using Rust for language implementation, comparing it to traditional C-based approaches. Learn about parsing techniques, macro writing, code generation, and tail call optimization. Examine benchmarks that compare the performance of the Rust-based garbage collector and runtime with similar well-known languages written in C. Gain insights into the lessons learned from this innovative approach to compiler construction, and understand how Rust's expressive power and safety features can benefit language implementors.
Syllabus
Overview
Rust
Parsing a string
Parsing Symbols
Writing A Macro
Example
Code Generation
Tail Calls
Benchmarks
Lessons learned
Taught by
Strange Loop Conference