GitHub - ray4go/go-ray: Ray Core for Golang
github.com·3h·
Discuss: Hacker News
🤖AI Codegen
Preview
Report Post

GoRay

Go bindings for Ray Core.

API Documentation

Features

  • Pure Go — Build Ray applications in Go without touching Python
  • Seamless Polyglot — Hybrid Python–Go development with cross-language Task/Actor invocation
  • Strong compatibility — Clean implementation with zero hacks
  • Type-safe Remote Calls — Compile-time safety and full IDE support via code generation

Quick Start

Init a go project:

mkdir goray-app && cd goray-app
go mod init rayapp

Add a main.go file:

package main

import (
"fmt"
"github.com/ray4go/go-ray/ray"
)

type Tasks struct{}

func (Tasks) Square(x float64) float64 {
return x * x
}

func driver() int {
obj := ray.RemoteCall("Square", 2.0)
res, err := ray.Get1[float64](ob...

Similar Posts

Loading similar posts...