The version of Syndicate current at the conclusion of Tony Garnock-Jones's PhD research, end-of-2017/start-of-2018.
Go to file
Tony Garnock-Jones e1c5fd4ac1 Switch from timer-expired /messages/ to /assertions/ at ground level.
Previously, the timer driver caused the background thread to call
send-ground-message to indicate that a timer had expired. However,
this can lead to a race! In cases where a timer expires very soon, the
channel-put of the set-timer instruction leads shortly thereafter to a
send-ground-message which then races the establishment of the
metalevel-1 subscription to the timer-expired events that are coming
from the background thread.

The race cannot occur in the sequential implementation because the
network makes sure to enqueue the transition actions resulting from
the set-timer message delivery ahead of any enqueueing of the
timer-expired ground message, so that by the time the ground message
is processed, the relevant subscription always exists.

In a looser implementation, however, this level of synchronised
activity may not exist, and the ground message may overtake the
subscription establishment.

Therefore, I've changed the driver to instead use ground /assertions/
to signal expired timers. Upon processing of such an assertion, the
driver cleans it up. This is very similar to hardware interrupts,
where the driver has to "clear the interrupt" in order to let the
system continue properly.
2016-01-21 17:38:12 -05:00
doc Rename World to Network 2016-01-18 14:29:48 -05:00
prospect Switch from timer-expired /messages/ to /assertions/ at ground level. 2016-01-21 17:38:12 -05:00
.gitignore Ignore scratch dir 2015-08-25 16:14:36 -04:00
FAQ.md Add project-assertions convenience routine. 2016-01-18 17:33:26 -05:00
Makefile Initial commit. Improved API to route.rkt (from minimart). 2015-03-02 16:10:11 +00:00
README.md Rename World to Network 2016-01-18 14:29:48 -05:00
info.rkt Fix Dependencies. 2015-08-19 15:35:08 -04:00

README.md

Prospect: A Networked, Concurrent, Functional Programming Language

Prospect is an actor-based concurrent language able to express communication, enforce isolation, and manage resources. Network-inspired extensions to a functional core represent imperative actions as values, giving side-effects locality and enabling composition of communicating processes.

Collaborating actors are grouped within task-specific networks (a.k.a. virtual machines) to scope their interactions. Conversations between actors are multi-party (using a publish/subscribe medium), and actors can easily participate in many such conversations at once.

Prospect makes presence notifications an integral part of pub/sub through its shared dataspaces, akin to tuplespaces. Each shared dataspace doubles as the pub/sub subscription table for its network. Actors react to state change notifications reporting changes in a dataspace, including new subscriptions created by peers and removal of subscriptions when a peer exits or crashes. State change notifications serve to communicate changes in demand for and supply of services, both within a single network and across nested layers of networks-within-networks. Programs can give up responsibility for maintaining shared state and for scoping group communications, letting their containing network take on those burdens.

The code

This repository contains a Racket package, prospect, which includes

Compiling and running the code

You will need Racket version 6.2.x or later.

Once you have Racket installed, run

raco pkg install prospect

to install the package from the Racket package repository, or

raco pkg install

from the root directory of the Git checkout to install the package from a local snapshot. (Alternatively, make link does the same thing.) This will make #lang prospect available to programs.

At this point, you may load and run any of the example *.rkt files in the prospect/examples/ directory.

Copyright © Tony Garnock-Jones 2010, 2011, 2012, 2013, 2014, 2015.