# Does ray support C++ to python cross programming

**URL:** <https://discuss.ray.io/t/does-ray-support-c-to-python-cross-programming/14906>\
**Category:** Ray Client\
**Created:** [June 7, 2024, 10:58pm UTC](https://discuss.ray.io/t/does-ray-support-c-to-python-cross-programming/14906 "2024-06-07T22:58:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaystarshot](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/jaystarshot/32/6208_2.png) [@jaystarshot](https://discuss.ray.io/u/jaystarshot)\
**Post date:** [June 7, 2024, 10:58pm UTC](https://discuss.ray.io/t/does-ray-support-c-to-python-cross-programming/14906/1 "2024-06-07T22:58:07Z")

</div>

Can we have a job1 which is based on ray cpp API and job2 which is based on ray python API.  
Is this currently supported

---

<div class="post-metadata">

**Author:** ![ruisearch42](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/ruisearch42/32/6012_2.png) [@ruisearch42](https://discuss.ray.io/u/ruisearch42)\
**Post date:** [June 11, 2024, 10:01pm UTC](https://discuss.ray.io/t/does-ray-support-c-to-python-cross-programming/14906/2 "2024-06-11T22:01:54Z")

</div>

I’m not 100% sure, but would expect it to work since Ray works cross-language: you can call into a different language: [Cross-Language Programming — Ray 2.24.0](https://docs.ray.io/en/latest/ray-core/cross-language.html)

Any reasons to think it would not work?

---

<div class="post-metadata">

**Author:** ![gregbowers](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/gregbowers/32/6221_2.png) [@gregbowers](https://discuss.ray.io/u/gregbowers)\
**Post date:** [June 12, 2024, 11:15am UTC](https://discuss.ray.io/t/does-ray-support-c-to-python-cross-programming/14906/3 "2024-06-12T11:15:02Z")

</div>

Hello

Yes, you can have one job that utilizes the Ray C++ API and another job that uses the Ray Python API. Ray supports interoperability between Python and C++, allowing you to build distributed applications that leverage both languages seamlessly. You can implement the functionality you need in C++ for one job and then utilize the Python API for another job without any issues. Ray handles the communication and coordination between these components transparently, enabling you to focus on developing your application logic efficiently.

Hope it helps !

Thank you  
gregbowers

---

<div class="post-metadata">

**Author:** ![Wenke-D](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/wenke-d/32/7824_2.png) [@Wenke-D](https://discuss.ray.io/u/Wenke-D)\
**Post date:** [April 4, 2025, 12:53pm UTC](https://discuss.ray.io/t/does-ray-support-c-to-python-cross-programming/14906/4 "2025-04-04T12:53:02Z")

</div>

Hello,

Could you please share which data type are supported by this cross languages feature ?

Thank you
