Inter-operable with Python #18673
evan0greenup
started this conversation in
Ideas
Replies: 1 comment
-
Here's an example someone was working on... https://github.com/mvenditto/v-python |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the feature
For Rust programming language, there is a PyO3. It can implement Python modules in Rust. It would be nice to make a library for V language, which can build Python package from V source code.
Use Case
If Python modules can be written in V lang, it would be good for both abstraction and performance.
Proposed Solution
There is C extension interface for Python. https://docs.python.org/3/extending/extending.html
C is intermediate representation of V language. Add some procedures to provide some extra modification on generated C files which satisfy the standard of Python extension would works.
Other Information
No response
Acknowledgements
Version used
latest
Environment details (OS name and version, etc.)
Linux 6.2
Beta Was this translation helpful? Give feedback.
All reactions