See Tuple spaces for the abstract concept.
Variety of different programming languages (implementations in Java, .NET, JavaScript, Go, Swift, and maybe a few others). It demonstrates "Hello World" in Space as:
Create a space named inbox
:
C#: SequentialSpace inbox = new SequentialSpace();
Java: Space inbox = new SequentialSpace();
Put a simple tuple in the space:
C#: inbox.Put("Hello world!");
Java: inbox.put("Hello world!");
Retrieve the tuple from the space:
C#: ITuple message = inbox.Get(typeof(string));
Java: Object[] tuple = inbox.get(new FormalField(String.class())
Last modified 07 October 2024