Skip to main content

All Questions

Filter by
Sorted by
Tagged with
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::...
DizzyZeratul's user avatar
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 ...
cantfetzthis's user avatar
-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 ...
kanudo's user avatar
  • 2,219