Commit Graph

6 Commits

Author SHA1 Message Date
Tony Garnock-Jones 1830d4da6c Move contents to subfolder in prep for merge 2016-04-01 19:05:47 -04:00
Tony Garnock-Jones fc271b6398 Switch Syndicate implementation from route.rkt to trie.rkt. 2016-03-13 10:44:22 +00:00
Tony Garnock-Jones 3c5a6f00ed Rename "matcher" to "trie". 2016-01-21 21:55:41 -05:00
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
Tony Garnock-Jones 506d74ed42 Support other kinds of actions than patches when first spawning a process 2015-12-03 12:56:52 -08:00
Tony Garnock-Jones e731282ddd First running program; port some infrastructure from minimart 2015-03-05 14:54:12 +00:00