See Tuple spaces for the abstract concept.

Source

Variety of different programming languages (implementations in Java, .NET, JavaScript, Go, Swift, and maybe a few others). It demonstrates "Hello World" in Space as:

  1. Create a space named inbox:
    C#: SequentialSpace inbox = new SequentialSpace();
    Java: Space inbox = new SequentialSpace();

  2. Put a simple tuple in the space:
    C#: inbox.Put("Hello world!");
    Java: inbox.put("Hello world!");

  3. Retrieve the tuple from the space:
    C#: ITuple message = inbox.Get(typeof(string));
    Java: Object[] tuple = inbox.get(new FormalField(String.class())


Tags: distribution   library   jvm   clr   go   nodejs   browser  

Last modified 07 October 2024