6d8ced489c
A recent change to Racket must have changed the way `for` expands, because now in conjunction with `local-expand`, we see *effectively* a `(begin (values) (void))`. This isn't a problem usually, but in `#lang syndicate`'s `module-begin` context, we split apart `begin`s and examine their constituents, leading to examination of something that will ultimately yield 0 values. The change accepts either 0 or 1 values when collecting actions for the module's main boot actor to execute. More than 1 value yielded by such an expression is still considered an error. Currently, it gives unhelpful error location information; a future refinement might be to make the error reporting for this (rare) situation more helpful. |
||
---|---|---|
doc | ||
examples | ||
historical | ||
hs | ||
js | ||
racket | ||
README.md |
README.md
Syndicate: A Networked, Concurrent, Functional Programming Language
Syndicate 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.
Syndicate 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.
Contents
This repository contains
-
a Racket implementation of Syndicate (plus auxiliary modules) in
racket/syndicate/
-
an ECMAScript 5 implementation of Syndicate in
js/
-
larger example programs:
-
examples/platformer
, a 2D Platform game written in Syndicate for Racket. -
examples/netstack
, a TCP/IP stack written in Syndicate for Racket. It reads and writes raw Ethernet packets from the kernel using Linux- and OSX-specific APIs.
-
-
a sketch of a Haskell implementation of the core routing structures of Syndicate in
hs/
Copyright
Copyright © Tony Garnock-Jones 2010, 2011, 2012, 2013, 2014, 2015, 2016.