Hacker News new | ask | show | jobs
by stcredzero 3475 days ago
How long before you let people write workers in Golang?

My equivalent to SpatialOS is not only my MCP (Tron reference, of course) but also a bit in each worker process. What you call Workers are what I call Instances. We both have pretty much the same notion of Entity. However, I don't have External Workers. Instead, I have a "Pilot" object for every "Ship" (Ship == Entity) and one kind of Pilot represents the game Client. The difference makes sense, as you have a notion of Workers sharing data, so your Clients are external to an Entity.

2 comments

We have a C Worker API (and in fact the C++, C# and Java worker APIs are built on top of it), so you can write workers in any language that can call C functions. It is a non-trivial amount of work, though -- see https://spatialos.improbable.io/docs/reference/9.0-alpha/wor... to see what one of these APIs look like.
For the moment we don't have the SDK supporting Go but we are definitely taking input on such topics. You should definitely post this request on the forum as there will probably be other people wanting the same thing! Will be happy to discuss it further there.

The idea of a Go SDK has already crossed some minds at Improbable for certain.