Make #lang syndicate equivalent to #lang syndicate/actor. Fixes #17.

This commit is contained in:
Tony Garnock-Jones 2017-08-10 15:17:28 -04:00
parent c9996d53ae
commit b3a745dbcb
115 changed files with 118 additions and 114 deletions

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
(require "protocol.rkt") (require "protocol.rkt")
(require "message.rkt") (require "message.rkt")

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
(require/activate syndicate/reload) (require/activate syndicate/reload)
(require/activate syndicate/supervise) (require/activate syndicate/supervise)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
(require/activate syndicate/reload) (require/activate syndicate/reload)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
(provide (struct-out ircd-listener) (provide (struct-out ircd-listener)
(struct-out ircd-motd) (struct-out ircd-motd)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
(require racket/set) (require racket/set)
(require racket/string) (require racket/string)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; ARP protocol, http://tools.ietf.org/html/rfc826 ;; ARP protocol, http://tools.ietf.org/html/rfc826
;; Only does ARP-over-ethernet. ;; Only does ARP-over-ethernet.

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; Demonstration stack configuration for various hosts. ;; Demonstration stack configuration for various hosts.
(require racket/match) (require racket/match)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; Ethernet driver ;; Ethernet driver
(provide (struct-out ethernet-packet) (provide (struct-out ethernet-packet)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
(require/activate syndicate/drivers/timer) (require/activate syndicate/drivers/timer)
(require/activate "ethernet.rkt") (require/activate "ethernet.rkt")

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
(provide (struct-out ip-packet) (provide (struct-out ip-packet)
ip-address->hostname ip-address->hostname

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
(require syndicate/protocol/advertise) (require syndicate/protocol/advertise)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; UDP/TCP port allocator ;; UDP/TCP port allocator
(provide spawn-port-allocator (provide spawn-port-allocator

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
(provide (struct-out tcp-address) (provide (struct-out tcp-address)
(struct-out tcp-handle) (struct-out tcp-handle)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
(provide (struct-out udp-remote-address) (provide (struct-out udp-remote-address)
(struct-out udp-handle) (struct-out udp-handle)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
(require racket/file) (require racket/file)
(require racket/serialize) (require racket/serialize)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
(require racket/file) (require racket/file)
(require racket/serialize) (require racket/serialize)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
(require 2htdp/image) (require 2htdp/image)
(require 2htdp/planetcute) (require 2htdp/planetcute)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
(require racket/set) (require racket/set)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
(require/activate syndicate/reload) (require/activate syndicate/reload)
(require/activate syndicate/supervise) (require/activate syndicate/supervise)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
(require racket/cmdline) (require racket/cmdline)
(require racket/port) (require racket/port)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
(require/activate syndicate/reload) (require/activate syndicate/reload)
(require/activate syndicate/supervise) (require/activate syndicate/supervise)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
(require racket/port) (require racket/port)
(require markdown) (require markdown)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
(provide stop-when-duplicate) (provide stop-when-duplicate)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
(require/activate syndicate/reload) (require/activate syndicate/reload)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
(require racket/dict) (require racket/dict)
(require racket/port) (require racket/port)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
(provide ask-question!) (provide ask-question!)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
(require racket/file) (require racket/file)
(require racket/port) (require racket/port)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
(require racket/file) (require racket/file)
(require racket/runtime-path) (require racket/runtime-path)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
(require "protocol.rkt") (require "protocol.rkt")

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
(require racket/set) (require racket/set)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
(require racket/set) (require racket/set)
(require 2htdp/image) (require 2htdp/image)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; Compare to "ezd" clock-face example from: J. F. Bartlett, “Dont ;; Compare to "ezd" clock-face example from: J. F. Bartlett, “Dont
;; Fidget with Widgets, Draw!,” Palo Alto, California, DEC WRL ;; Fidget with Widgets, Draw!,” Palo Alto, California, DEC WRL
;; Research Report 91/6, May 1991. ;; Research Report 91/6, May 1991.

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; Multiple animated sprites. ;; Multiple animated sprites.
;; ;;
;; 2016-12-12 With the current implementations of (a) Syndicate's ;; 2016-12-12 With the current implementations of (a) Syndicate's

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; Big-bang specific timestate implementation with compatible protocol. ;; Big-bang specific timestate implementation with compatible protocol.
(provide (struct-out later-than) (provide (struct-out later-than)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; Generic relay for WebSockets/TCP/etc-based participation in a network. ;; Generic relay for WebSockets/TCP/etc-based participation in a network.
(provide spawn-broker-server (provide spawn-broker-server

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; Monitor configuration files. ;; Monitor configuration files.
(provide (struct-out config) (provide (struct-out config)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; Filesystem change monitor driver ;; Filesystem change monitor driver
(provide (struct-out file-content) (provide (struct-out file-content)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; Driver for Racket's GUI. ;; Driver for Racket's GUI.
(require racket/class) (require racket/class)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; Dreadfully simplified IRC client driver. ;; Dreadfully simplified IRC client driver.
(provide (struct-out irc-connection) (provide (struct-out irc-connection)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
(provide (struct-out tcp-channel-line)) (provide (struct-out tcp-channel-line))

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
(provide (struct-out/defaults [make-smtp-account-config smtp-account-config]) (provide (struct-out/defaults [make-smtp-account-config smtp-account-config])
(rename-out [smtp-account-config <smtp-account-config>]) (rename-out [smtp-account-config <smtp-account-config>])

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
(provide (struct-out later-than) (provide (struct-out later-than)
stop-when-timeout stop-when-timeout

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; More general web driver: supports normal HTTP as well as websockets. ;; More general web driver: supports normal HTTP as well as websockets.
(provide (struct-out web-virtual-host) (provide (struct-out web-virtual-host)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; Hello-worldish "bank account" example. ;; Hello-worldish "bank account" example.
(struct account (balance) #:prefab) (struct account (balance) #:prefab)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
(require syndicate/big-bang) (require syndicate/big-bang)
(require racket/math) (require racket/math)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; Simple mutable box and count-to-infinity box client. ;; Simple mutable box and count-to-infinity box client.
(struct set-box (new-value) #:transparent) (struct set-box (new-value) #:transparent)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; Demonstrate sending a message to multiple receivers. ;; Demonstrate sending a message to multiple receivers.
(struct envelope (destination message) #:prefab) (struct envelope (destination message) #:prefab)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
(require/activate syndicate/drivers/timestate) (require/activate syndicate/drivers/timestate)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
(require syndicate/protocol/advertise) (require syndicate/protocol/advertise)
(require/activate syndicate/drivers/tcp) (require/activate syndicate/drivers/tcp)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; Evolution of chat-multiroom-topic.rkt to support persistent room topics. ;; Evolution of chat-multiroom-topic.rkt to support persistent room topics.
(require syndicate/protocol/advertise) (require syndicate/protocol/advertise)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; Evolution of chat-multiroom.rkt to support room topics. ;; Evolution of chat-multiroom.rkt to support room topics.
(require syndicate/protocol/advertise) (require syndicate/protocol/advertise)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; Evolution of chat-simplified-internals2.rkt to support multiple rooms. ;; Evolution of chat-simplified-internals2.rkt to support multiple rooms.
;; Uses the approach of modifying the protocol to include a room name. ;; Uses the approach of modifying the protocol to include a room name.

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
(require syndicate/protocol/advertise) (require syndicate/protocol/advertise)
(require/activate syndicate/drivers/tcp) (require/activate syndicate/drivers/tcp)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
(require syndicate/protocol/advertise) (require syndicate/protocol/advertise)
(require/activate syndicate/drivers/tcp) (require/activate syndicate/drivers/tcp)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
(require syndicate/protocol/advertise) (require syndicate/protocol/advertise)
(require/activate syndicate/drivers/tcp) (require/activate syndicate/drivers/tcp)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
(require syndicate/protocol/advertise) (require syndicate/protocol/advertise)
(require/activate syndicate/drivers/tcp) (require/activate syndicate/drivers/tcp)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
(require syndicate/protocol/advertise) (require syndicate/protocol/advertise)
(require/activate syndicate/drivers/tcp) (require/activate syndicate/drivers/tcp)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; Demonstrates debouncer-like functionality. ;; Demonstrates debouncer-like functionality.
(require syndicate/big-bang) (require syndicate/big-bang)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
(require syndicate/protocol/advertise) (require syndicate/protocol/advertise)
(require/activate syndicate/drivers/tcp) (require/activate syndicate/drivers/tcp)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; Test case for a bug relating to use of parameters to accumulate ;; Test case for a bug relating to use of parameters to accumulate
;; actions across react/suspend when an intermediate parameterization ;; actions across react/suspend when an intermediate parameterization
;; for current-dataflow-subject-id has taken place. ;; for current-dataflow-subject-id has taken place.

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; ;;
;; Test case for a problem written up on 25 Oct 2016 in my research ;; Test case for a problem written up on 25 Oct 2016 in my research
;; journal. ;; journal.

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; Demonstrates a (fixed) bug in define/query-value scoping. ;; Demonstrates a (fixed) bug in define/query-value scoping.
;; ;;
;; Buggy output: ;; Buggy output:

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; Demonstrates a bug: rising-edge of a predicate that starts off true ;; Demonstrates a bug: rising-edge of a predicate that starts off true
;; yields a crash. ;; yields a crash.
;; ;;

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; Illustrates a (now fixed) bug where mutation altering a ;; Illustrates a (now fixed) bug where mutation altering a
;; subscription caused the `retracted` half of a during instance to be ;; subscription caused the `retracted` half of a during instance to be
;; lost. ;; lost.

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
(require/activate syndicate/drivers/filesystem) (require/activate syndicate/drivers/filesystem)
(require racket/file) (require racket/file)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; Demonstrate FRP-like "glitching" ;; Demonstrate FRP-like "glitching"
;; ;;
;; Based on an example from the FRP survey of Bainomugisha et al. ;; Based on an example from the FRP survey of Bainomugisha et al.

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; Shows that the checks enforcing single-use suspension-resumption are working. ;; Shows that the checks enforcing single-use suspension-resumption are working.
(spawn #:name 'shouldnt-work (spawn #:name 'shouldnt-work

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; Illustrates the response of asserted / retracted / during to ;; Illustrates the response of asserted / retracted / during to
;; observation of assertions discarding some of their dimensions. ;; observation of assertions discarding some of their dimensions.

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; Demonstrates glitch preservation in during/spawn. ;; Demonstrates glitch preservation in during/spawn.
;; ;;
;; Previously, `spawn` was expanded in place into the new actor's ;; Previously, `spawn` was expanded in place into the new actor's

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; Demonstrates responsibility transfer. ;; Demonstrates responsibility transfer.
;; ;;
;; Previously, `spawn` was expanded in place into the new actor's ;; Previously, `spawn` was expanded in place into the new actor's

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; Shows the difference between a supervised exit and a supervised crash. ;; Shows the difference between a supervised exit and a supervised crash.
(require/activate syndicate/supervise) (require/activate syndicate/supervise)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; Illustrates a (now fixed) bug where creating a facet interested in something ;; Illustrates a (now fixed) bug where creating a facet interested in something
;; already known didn't properly trigger the assertion-handler. ;; already known didn't properly trigger the assertion-handler.
;; ;;

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; Demonstrate handling of facet termination. ;; Demonstrate handling of facet termination.
;; ;;
;; Prior to early November, 2016, only a *single* stop-when was able ;; Prior to early November, 2016, only a *single* stop-when was able

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; Demonstrate handling of facet termination. ;; Demonstrate handling of facet termination.
(require racket/pretty) (require racket/pretty)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; After the Fahrenheit-to-Celsius converter example in "Fabrik - A ;; After the Fahrenheit-to-Celsius converter example in "Fabrik - A
;; Visual Programming Environment", Ingalls, Wallace, Chow, Ludolph ;; Visual Programming Environment", Ingalls, Wallace, Chow, Ludolph
;; and Doyle, OOPSLA 1988. ;; and Doyle, OOPSLA 1988.

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; After the Fahrenheit-to-Celsius converter example in "Fabrik - A ;; After the Fahrenheit-to-Celsius converter example in "Fabrik - A
;; Visual Programming Environment", Ingalls, Wallace, Chow, Ludolph ;; Visual Programming Environment", Ingalls, Wallace, Chow, Ludolph
;; and Doyle, OOPSLA 1988. ;; and Doyle, OOPSLA 1988.

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
(require syndicate/threaded) (require syndicate/threaded)
(require/activate syndicate/drivers/timer) (require/activate syndicate/drivers/timer)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; Toy file system, based on the example in the ESOP2016 submission. ;; Toy file system, based on the example in the ESOP2016 submission.
;; syndicate/actor implementation, using "during" instead of "on asserted/until retracted". ;; syndicate/actor implementation, using "during" instead of "on asserted/until retracted".

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; Toy file system, based on the example in the ESOP2016 submission. ;; Toy file system, based on the example in the ESOP2016 submission.
;; syndicate/actor implementation, using "during" instead of "on asserted/until retracted". ;; syndicate/actor implementation, using "during" instead of "on asserted/until retracted".

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; Toy file system, based on the example in the ESOP2016 submission. ;; Toy file system, based on the example in the ESOP2016 submission.
;; Low-level implementation. ;; Low-level implementation.

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; Toy file system, based on the example in the ESOP2016 submission. ;; Toy file system, based on the example in the ESOP2016 submission.
;; Low-level implementation, without subconversation. ;; Low-level implementation, without subconversation.

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; Toy file system, based on the example in the ESOP2016 submission. ;; Toy file system, based on the example in the ESOP2016 submission.
;; syndicate/actor implementation. ;; syndicate/actor implementation.

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; Toy file system, based on the example in the ESOP2016 submission. ;; Toy file system, based on the example in the ESOP2016 submission.
;; syndicate/actor implementation, without subconversation. ;; syndicate/actor implementation, without subconversation.

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
(require syndicate/firewall) (require syndicate/firewall)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; Minimal syndicate/actor variation on examples/forward-chaining.rkt. ;; Minimal syndicate/actor variation on examples/forward-chaining.rkt.
(spawn (assert `(parent john douglas))) (spawn (assert `(parent john douglas)))

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; File System Demo protocol ;; File System Demo protocol
(provide (struct-out file) (provide (struct-out file)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; Simple "shell" or REPL, used by the file-system demos. ;; Simple "shell" or REPL, used by the file-system demos.
(require (only-in racket/port read-bytes-line-evt)) (require (only-in racket/port read-bytes-line-evt))

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; Small test program for the gui.rkt driver ;; Small test program for the gui.rkt driver
(require/activate syndicate/drivers/gui) (require/activate syndicate/drivers/gui)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
(require/activate syndicate/drivers/irc) (require/activate syndicate/drivers/irc)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; Demonstrate let-event. ;; Demonstrate let-event.
;; Should print "Complete.". ;; Should print "Complete.".

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
(struct echo-req (body) #:prefab) (struct echo-req (body) #:prefab)
(struct echo-resp (body) #:prefab) (struct echo-resp (body) #:prefab)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; Counting-semaphore-like mutex, and dining philosophers. ;; Counting-semaphore-like mutex, and dining philosophers.
(require racket/set) (require racket/set)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; Demonstrate use of parameters with actors. ;; Demonstrate use of parameters with actors.
;; ;;
;; Per https://github.com/tonyg/syndicate/issues/10, "Parameters don't ;; Per https://github.com/tonyg/syndicate/issues/10, "Parameters don't

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
(require racket/set) (require racket/set)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; A Queue with no flow control. ;; A Queue with no flow control.
(require racket/set) (require racket/set)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; A Queue with no flow control. ;; A Queue with no flow control.
(require racket/set) (require racket/set)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; A Queue with credit-based flow control. ;; A Queue with credit-based flow control.
(require racket/set) (require racket/set)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; Explore use of sandboxes etc for being an "operating system" ;; Explore use of sandboxes etc for being an "operating system"
(require racket/match) (require racket/match)

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; Demonstrates that fields may not be passed between actors. ;; Demonstrates that fields may not be passed between actors.
(spawn #:name 'reading-actor (spawn #:name 'reading-actor

View File

@ -1,4 +1,4 @@
#lang syndicate/actor #lang syndicate
;; Demonstrates that fields at actor scope are visible to facets. ;; Demonstrates that fields at actor scope are visible to facets.
(spawn* (field [x 123]) (spawn* (field [x 123])

Some files were not shown because too many files have changed in this diff Show More