|
|
|
|
|
by markus2012
3613 days ago
|
|
As part of a recent project I had to:
- build an AST from a large and complicated DSL
- transform the AST into something that could be compiled into a DSO. I chose to write both parts in Rust. Fwiw the semantics of the language really didn't match Rust at all (though, I suspect you weren't thinking of DSLs when you wrote your paragraph). In the end I had all the benefits of _safe_ Rust when compiling the transformed code into the DSO. This DSO is a critical component and can not fail. I can't imagine transforming the AST into C or LLVM - I wouldn't be able to sleep at night. I'm only human; I know I'd fall into a number of traps that humans fall into when coding in C - especially when I am _generating_ C from an AST... |
|