Writing rust procedural macro via RustPython #5023
evan0greenup
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
Do you have a suggestion how it will look like with sample code? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Python as a language has much more self-reflection ability than Rust.
Procedural Macro has a meta-programming method, If it can utilize the potential of dynamic feature of RustPython. It would be dramatic.
Because Procedural Macro is computed during compile-time, the performance drop due to the involvement of RustPython interpreter doesn't affect runtime speed.
I would like to discuss about the feasibility of this idea.
Beta Was this translation helpful? Give feedback.
All reactions