X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=8sync%2Fsystems%2Factors.scm;h=fb170bc45a1af34c86d557240da60cb7d22925af;hb=9fe37b475673e2c703c2bc08e0eba42fc7648ebf;hp=7e8d9576033587cff78537d956964cf2ff7e48bb;hpb=13cb6055e917635850e8f0e3eea5c6b0dc376e7a;p=8sync.git diff --git a/8sync/systems/actors.scm b/8sync/systems/actors.scm index 7e8d957..fb170bc 100644 --- a/8sync/systems/actors.scm +++ b/8sync/systems/actors.scm @@ -71,8 +71,10 @@ send-message send-message-wait reply-message reply-message-wait + <- <-wait <-reply <-reply-wait + ez-run-hive - hive-bootstrap-message + bootstrap-message serialize-message write-message serialize-message-pretty pprint-message @@ -246,6 +248,16 @@ If key not found and DFLT not provided, throw an error." (abort-to-prompt abort-to from-actor new-message))) +;;; Aliases! +;;; See: http://mumble.net/~jar/articles/oo-moon-weinreb.html +;;; (also worth seeing: http://mumble.net/~jar/articles/oo.html ) + +(define <- send-message) +(define <-wait send-message-wait) +(define <-reply reply-message) +(define <-reply-wait reply-message-wait) + + ;;; Main actor implementation ;;; ========================= @@ -620,7 +632,7 @@ an integer." (spawn-and-queue-repl-server! agenda))) (start-agenda agenda))) -(define (hive-bootstrap-message hive to-id action . message-body-args) +(define (bootstrap-message hive to-id action . message-body-args) (wrap (apply send-message hive to-id action message-body-args)))