In the README file, the URLs to code examples are currently pointing to files in a non-existing master branch. This change updates them to point to files in an existing branch.
|7 years ago|
|drivers||8 years ago|
|examples||8 years ago|
|lang||8 years ago|
|scribblings||8 years ago|
|support||8 years ago|
|.gitignore||9 years ago|
|Makefile||9 years ago|
|README.md||7 years ago|
|action-add-endpoint.rkt||8 years ago|
|action-delete-endpoint.rkt||8 years ago|
|action-quit.rkt||7 years ago|
|action-send-message.rkt||8 years ago|
|action-spawn.rkt||8 years ago|
|actions.rkt||8 years ago|
|ground.rkt||8 years ago|
|info.rkt||7 years ago|
|list-utils.rkt||8 years ago|
|log.rkt||8 years ago|
|main.rkt||8 years ago|
|nested.rkt||8 years ago|
|process.rkt||8 years ago|
|quasiqueue.rkt||8 years ago|
|roles.rkt||8 years ago|
|struct-map.rkt||9 years ago|
|structs.rkt||8 years ago|
|sugar.rkt||8 years ago|
|test-struct-map.rkt||9 years ago|
|unify.rkt||9 years ago|
|vm.rkt||8 years ago|
Marketplace: Bringing the Network into the Programming Language
Marketplace is a 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 programs are grouped within task-specific virtual machines (VMs) to scope their interactions. Conversations between programs are multi-party (using a publish/subscribe medium), and programs can easily participate in many such conversations at once.
Marketplace makes presence notifications an integral part of pub/sub. Programs react to presence and absence notifications that report the comings and goings of their peers. Presence serves to communicate changes in demand for and supply of services, both within a VM and across nested VM layers. Programs can give up responsibility for maintaining presence information and for scoping group communications to their containing VM.
A (draft) manual for Marketplace is available here.
This repository contains a Racket package,
marketplace, which includes
the implementation of the
#lang marketplacelanguage, in the top directory.
a TCP echo server example, in
a TCP chat server example, in
Compiling and running the code
You will need Racket version 6.1.x or later.
Once you have Racket installed, run
raco pkg install marketplace
to install the package from the Racket package repository, or
raco pkg install --link `pwd`
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 marketplace available to programs.
At this point, you may load and run any of the example
Note that both the echo server and chat server examples do not print
any output on standard output: instead, they simply start running and
silently await TCP connections. Once one of the servers is running, in
a separate window, try
telnet localhost 5999.
Note also that both the echo server and the chat server use port 5999, so you cannot run both simultaneously.
Copyright © Tony Garnock-Jones 2010, 2011, 2012, 2013, 2014.