guan404ming opened a new issue, #648:
URL: https://github.com/apache/mahout/issues/648

   ### Summary
   Add Rust–Python bindings using PyO3 so we can call Rust code directly from 
Python.
   
   ### Use Case
   We want to implement performance-critical logic into Rust while still 
exposing a clean Python API. PyO3 lets us write Rust functions and use them in 
Python as if they were normal Python modules.
   
   ### Proposed Implementation
   Use PyO3 + maturin to build a Rust extension module.
   Rust functions will be exposed with #[pyfunction] inside a #[pymodule], and 
Python will import them like:
   
   ```
   from project_name._rust import fast_fn
   ```
   
   ### Additional Context
   PyO3 documentation: https://github.com/PyO3/pyo3
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to