Re:Speedy Web Compiler – A Rust port of Babel and Closure Co...
by eiurafhlfie on Sunday December 23, 2018 @11:11AM
(#18746831)
Tagged union types (called `enum` in Rust), recursion, and pattern matching are great for tree data structures, such as ASTs, and help catch many bugs. This is the reason why so many compilers, typecheckers, and interpreters are written in languages like OCaml, F#, Haskell, and Rust.
[ Parent
| on HN ]
Re:Speedy Web Compiler – A Rust port of Babel and Closure Co...
by snaky on Sunday December 23, 2018 @11:17AM
(#18746859)
> OCaml, F#, Haskell, and Rust
If you change Rust to ML, the phrase would be way more natural.
Re:Speedy Web Compiler – A Rust port of Babel and Closure Co...
by n-gate on Sunday December 23, 2018 @11:40AM
(#18746991)
How many non-toy non-self compilers and interpreters are written in Rust?
Re:Speedy Web Compiler – A Rust port of Babel and Closure Co...
by steveklabnik on Sunday December 23, 2018 @11:48AM
(#18747030)
There’s at least a few; cranelift is powering stuff in production at Fastly. Facebook is writing a MIR interpreter to do static analysis, don’t think that’s production yet though.