-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
holyjit #11
Comments
Hi! holyjit is nice project but I do not want to implement meta-trace JIT library as it is really hard work because I have to trace either raw assembly or Rust MIR. Instead I will use GCCJIT for optimizing JIT and my own masm-rs library for baseline jit. UPD:
If you're interested in meta-tracing JIT in Rust there's ykrustc which is a fork of rustc suitable for building meta-tracing JIT. |
Fair point, I guess I just got over-excited :) BTW: Thanks for the links, I'll definitely have a look. |
https://github.com/nbp/holyjit
The project is dead but you could get some inspiration there. The idea is that you only write interpreter and some wodoo macro will eventually generate very efficient code for that interpreter. But it doesn't have to be interpreted anymore. A bit like JIT JIT compiler.
It's super ambitious but it has been done already - GraalVM compiler is the most successful and production-ready example. TBH, they have far more resources but they also have much bigger scope, so... Definitely possible.
It might be easier to resurrect the project and use it instead of doing JIT all by yourself (and it might be for other dynamic languages implemented in rust).
I would do that myself if I was not busy with other things in my life right now (yeah, I know)
The text was updated successfully, but these errors were encountered: