All Questions
3 questions
0
votes
0
answers
363
views
Modify rustc's AST and continue the compilation with the modified AST
Is it possible to modify the AST generated by rustc's parser, then continue the compilation with the modified AST?
To be specific, I am looking for a function like rustc_driver::Callbacks::...
1
vote
1
answer
893
views
What is the best way to compile a Rust project on-the-fly with another Rust program?
I am exploring the idea of using Rust to dynamically compile a program with specific changes to the source code based on each user’s needs.
My idea was to have the “compiler” program load the main.rs ...
-1
votes
2
answers
3k
views
Why Rust is faster than Ocaml in Performance, Even though first Rust compiler was implemented in Ocaml [closed]
I found that the initial compiler for Rust language was written in Ocaml. So what i thought was that Rust would be similar to Ocaml performance wise. But when I look at benchmarks Ocaml vs C++ and ...