Ray supports Python, Java, and C++ as first-class languages. A single cluster can host workers from all three, and tasks can call across language boundaries.Documentation Index
Fetch the complete documentation index at: https://ray-preview.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Enable cross-language support
Cross-language code-paths are off by default in Python. Initialize the runtime withcode_search_path pointing at your jar/binary directories.
Call Java from Python
Call C++ from Python
Argument types
Cross-language calls support primitives, byte strings, and protocol buffers. Pass complex objects via the object store.Limitations
- Decorators like
@ray.remoteare Python-only; the Java and C++ APIs are equivalent but distinct. - Stack traces don’t cross language boundaries automatically.
- Java and C++ actors don’t support every option available to Python actors.
Next steps
Java API
Java API reference.
C++ API
C++ API reference.