#lang syndicate -> #lang syndicate/core; first half of fix for #17.

This commit is contained in:
Tony Garnock-Jones 2017-08-10 15:04:45 -04:00
parent 6b3f8d920a
commit 837ab77002
37 changed files with 40 additions and 37 deletions

View File

@ -1,11 +1,11 @@
#lang racket/base
(require (except-in "lang.rkt"
(require (except-in "core-lang.rkt"
dataspace
assert
))
(require "actor.rkt")
(require "hierarchy.rkt")
(provide (except-out (all-from-out "lang.rkt") actor)
(provide (except-out (all-from-out "core-lang.rkt") actor)
(all-from-out "actor.rkt")
(all-from-out "hierarchy.rkt"))

View File

@ -65,6 +65,9 @@
boot->process+transition
actor->process+transition/assertions)
(module reader syntax/module-reader
syndicate/core-lang)
(require racket/match)
(require (only-in racket/list flatten))
(require "trie.rkt")

View File

@ -1,4 +1,4 @@
#lang syndicate
#lang syndicate/core
(require racket/exn)
(require (prefix-in tcp: racket/tcp))

View File

@ -1,4 +1,4 @@
#lang syndicate
#lang syndicate/core
;; Timer driver.
;; Uses mutable state internally, but because the scope of the

View File

@ -1,4 +1,4 @@
#lang syndicate
#lang syndicate/core
(require (prefix-in udp: racket/udp))
(require syndicate/demand-matcher)

View File

@ -1,4 +1,4 @@
#lang syndicate
#lang syndicate/core
(provide (struct-out websocket-remote-client)
(struct-out websocket-local-server)

View File

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

View File

@ -1,4 +1,4 @@
#lang syndicate
#lang syndicate/core
(require "../big-bang.rkt")
(require racket/math)

View File

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

View File

@ -1,4 +1,4 @@
#lang syndicate
#lang syndicate/core
(require syndicate/protocol/advertise)
(require (only-in racket/port read-bytes-line-evt))

View File

@ -1,4 +1,4 @@
#lang syndicate
#lang syndicate/core
(require syndicate/protocol/advertise)
(require (only-in racket/string string-trim))

View File

@ -1,4 +1,4 @@
#lang syndicate
#lang syndicate/core
(require syndicate/protocol/advertise)
(require (only-in racket/string string-trim))

View File

@ -1,4 +1,4 @@
#lang syndicate
#lang syndicate/core
;; The chat server, using a proxy abstracting over details of the TCP
;; driver's protocol.

View File

@ -1,4 +1,4 @@
#lang syndicate
#lang syndicate/core
(require syndicate/protocol/advertise)
(require (only-in racket/string string-trim))

View File

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

View File

@ -1,4 +1,4 @@
#lang syndicate
#lang syndicate/core
(require syndicate/protocol/advertise)
(require/activate "../drivers/tcp.rkt")

View File

@ -1,4 +1,4 @@
#lang syndicate
#lang syndicate/core
(require (only-in racket/port read-line-evt))
(require/activate "../drivers/timer.rkt")

View File

@ -1,4 +1,4 @@
#lang syndicate
#lang syndicate/core
;; Check that nested-world assertions are properly retracted.
;; Should print two "Got SCN:" patches - one adding, and one removing (observe 'die).

View File

@ -1,4 +1,4 @@
#lang syndicate
#lang syndicate/core
;; Analogous to nc-incremental-meta-drop.rkt in the Redex model.
;; Demonstrates (hopefully) correct processing of meta-interests when dropping a patch.

View File

@ -1,4 +1,4 @@
#lang syndicate
#lang syndicate/core
;; Test case for a historical bug in Syndicate.
;;
;; When the bug existed, this program received four SCN events in

View File

@ -1,4 +1,4 @@
#lang syndicate
#lang syndicate/core
;; The actor should receive a single event adding an (inbound 'x) assertion.
(require syndicate/pretty)

View File

@ -1,4 +1,4 @@
#lang syndicate
#lang syndicate/core
;; run-ground-vm is being modified to return the set of assertions
;; remaining at the end of its execution. This example demonstrates a
;; non-empty such set.

View File

@ -1,4 +1,4 @@
#lang syndicate
#lang syndicate/core
;; Demonstrates quit-dataspace.
(require (only-in racket/port read-bytes-line-evt))

View File

@ -1,4 +1,4 @@
#lang syndicate
#lang syndicate/core
;; Analogous to nc-incremental-swap-int-and-claim.rkt in the Redex model.
;; Demonstrates (hopefully) correct processing of feedback at interest switches.

View File

@ -1,4 +1,4 @@
#lang syndicate
#lang syndicate/core
;; Demonstrate wildcard assertions.
;; One actor asserts everything except inbound/outbound assertions (which break
;; the ground VM). It therefore *subscribes* to everything too.

View File

@ -1,4 +1,4 @@
#lang syndicate
#lang syndicate/core
;; Demonstrate almost-wildcard assertions.
;; One actor subscribes to everything except inbound assertions - and so initially sees itself.
;; The other advertises everything except subscriptions and inbound/outbound assertions.

View File

@ -1,4 +1,4 @@
#lang syndicate
#lang syndicate/core
(require racket/set)
(require "../trie.rkt")

View File

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

View File

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

View File

@ -1,4 +1,4 @@
#lang syndicate
#lang syndicate/core
(require syndicate/protocol/advertise)
(require/activate "../drivers/tcp.rkt")

View File

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

View File

@ -1,4 +1,4 @@
#lang syndicate
#lang syndicate/core
(require/activate syndicate/drivers/udp)

View File

@ -1,4 +1,4 @@
#lang syndicate
#lang syndicate/core
(require syndicate/protocol/advertise)
(require/activate "../drivers/websocket.rkt")

View File

@ -1,4 +1,4 @@
#lang syndicate
#lang syndicate/core
(require syndicate/protocol/advertise)
(require/activate "../drivers/websocket.rkt")

View File

@ -3,7 +3,7 @@
(module reader syntax/module-reader
syndicate/monolithic)
(require (except-in "lang.rkt"
(require (except-in "core-lang.rkt"
event?
action?
clean-transition
@ -11,6 +11,6 @@
actor/stateless))
(require "monolithic/scn.rkt")
(require "monolithic/core.rkt")
(provide (all-from-out "lang.rkt")
(provide (all-from-out "core-lang.rkt")
(all-from-out "monolithic/scn.rkt")
(all-from-out "monolithic/core.rkt"))

View File

@ -3,7 +3,7 @@
(provide profile-dataspace!
profile-lambda)
(require syndicate/lang)
(require syndicate/core-lang)
(require profile)
(define profile-lambda