Commit Graph

333 Commits

Author SHA1 Message Date
Emery Hemingway d86ef24c01 Move mint utility to syndicate_utils 2023-08-25 18:31:49 +01:00
Emery Hemingway dcd6bfe99b patterns: fix a regression in field injection 2023-08-23 10:35:12 +01:00
Emery Hemingway 35670b2727 Update for Nim-2.0.0 2023-08-16 14:53:46 +01:00
Emery Hemingway 73d29da071 Remove broken patterns example 2023-08-16 09:38:23 +01:00
Emery Hemingway 66f435a279 Regenerate protocols 2023-08-16 09:36:43 +01:00
Emery Hemingway 703bd7baea Update tests for Nim-2.0.0 2023-08-16 09:36:11 +01:00
Emery Hemingway ce6d97c1d3 Replace ByteAddress with uint 2023-08-05 20:29:26 +01:00
Emery Hemingway f78308765e Associate relay futures with actor turns 2023-08-01 11:05:52 +01:00
Emery Hemingway ba2ea5d08b Expose bindings values in during, onPublish, and onMessage 2023-08-01 11:05:07 +01:00
Emery Hemingway 9c5e26e8f1 Patterns sugar 2023-07-26 11:01:56 +01:00
Emery Hemingway 8fc9608199 patterns: grabRecord, grabDictionary 2023-07-25 18:58:55 +01:00
Emery Hemingway ce8e800187 Rename Ref to Cap 2023-07-25 18:17:55 +01:00
Emery Hemingway 4e0a36ef31 skeletons: implement assertion removal 2023-07-25 18:17:55 +01:00
Emery Hemingway 16cc5aaf98 patterns: sort dictionary keys during analysis 2023-07-23 08:38:40 +01:00
Emery Hemingway 7b2d59e4cd Make runActor sleep on timers to keep asyncdispatch active 2023-07-23 08:29:45 +01:00
Emery Hemingway 7f903a14d7 Correct addCallback for returning Future values 2023-07-23 08:29:08 +01:00
Emery Hemingway 4b29fc009b Return an Actor from spawn 2023-07-22 11:32:52 +01:00
Emery Hemingway 248d34ce69 Refactor syndicate macros
This unifies some code generation for onPublish, onMessage, and
during. The message macro now accepts a body without arguments
in the same way as the other two.
2023-07-21 20:35:53 +01:00
Emery Hemingway 146b30ed42 Refactor skeletons 2023-07-21 13:24:43 +01:00
Emery Hemingway ca12c1ae03 Rewrite timers 2023-07-20 19:17:57 +01:00
Emery Hemingway 9614955320 Tracing 2023-07-20 19:17:57 +01:00
Emery Hemingway 7fec2d61ac Actors lineages share a handle allocator
For multiple actors to communicate through the same relay they
must use unique assertion handles.
2023-07-20 19:17:57 +01:00
Emery Hemingway 76d550602f Document relays a bit 2023-07-20 19:17:57 +01:00
Emery Hemingway 91a218f7fb Actors lineages share a handle allocator
For multiple actors to communicate through the same relay they
must use unique assertion handles.
2023-07-12 15:16:20 +01:00
Emery Hemingway b1b0477b8a Add addCallback variant that passes on the value of a Future 2023-07-12 15:15:39 +01:00
Emery Hemingway 170f49693c Reuse caller turn symbol in DSL macros 2023-06-30 10:05:42 +01:00
Emery Hemingway 219286a84a Recommend runDataspace, not bootDataspace 2023-06-30 09:51:49 +01:00
Emery Hemingway 8bb9fb16d7 patterns: inject variant for dictionaries 2023-06-11 21:22:10 +01:00
Emery Hemingway fc94fa39d8 terminate: fix off-by-inifinity bug 2023-06-11 21:21:07 +01:00
Emery Hemingway 2f4552e7fe patterns: raise uncatchable error for set patterns 2023-06-10 21:27:54 +01:00
Emery Hemingway 0089e1f413 connectStdio: do not constrain receive buffer size 2023-06-10 21:26:20 +01:00
Emery Hemingway 7a36a6e8a4 patterns: unpackLiterals more 2023-06-10 01:00:12 +01:00
Emery Hemingway 209ae51580 patterns: inject into <bind …> 2023-06-08 14:15:03 +01:00
Emery Hemingway aff3061506 Improve error message for pattern and handler mismatch 2023-06-08 14:14:34 +01:00
Emery Hemingway ee3fc7adea Better build system 2023-06-07 18:11:54 +01:00
Emery Hemingway 1dd197f102 Add unpackLiterals proc to patterns module 2023-05-30 13:15:47 +01:00
Emery Hemingway e65cc5ab9a Update README with test_chat notes 2023-05-18 17:56:42 +01:00
Emery Hemingway 81ec3808a6 Adjust to new syndicate-protocols 2023-05-18 12:22:55 +01:00
Emery Hemingway ad076bdfed actors: tweak addCallback(…) and add onStop(…) 2023-05-17 10:42:54 +01:00
Emery Hemingway b39302791e Add chat test that is compatible with syndicate-py 2023-05-17 10:40:41 +01:00
Emery Hemingway 737869d790 Add Direnv metadata 2023-05-16 22:53:00 +01:00
Emery Hemingway f1cc7b336b Build different protocol modules 2023-05-11 22:31:57 +01:00
Emery Hemingway f0328b27cd Switch HMAC to BLAKE2s-256 2023-05-07 09:40:17 +01:00
Emery Hemingway 94fa1efd62 Regenerate protocol modules 2023-05-06 20:22:21 +01:00
Emery Hemingway 0923b8abee Export a different runActor proc 2023-05-06 20:09:45 +01:00
Emery Hemingway 74254dd45b relays: reopen stdin asynchronously
This was preventing futures from being completed until the next
packet was received on stdin. This should fix a lot of problems
and bad behavior.
2023-05-06 16:04:20 +01:00
Emery Hemingway 572e3b76ab Regenerate protocol modules 2023-05-03 20:51:07 +01:00
Emery Hemingway 003bfa0a97 Less use of callSoon 2023-05-03 20:51:07 +01:00
Emery Hemingway 90247e19ce Update build metadata 2023-04-12 15:09:11 -05:00
Emery Hemingway cf05845f15 Remove buffer limit on binary protocol decoder
Buffer exhaustion is a problem for the server not the client.
2023-04-10 16:57:34 -05:00