aloof-angle-91616
10/31/2019, 8:44 PMaloof-angle-91616
10/31/2019, 8:49 PMyield Get(A, B, c)
“subject” (aka c
) in a RetryableRequest
object, which would wrap the “real” c
and add some backoff/retry info, and which the engine would interpret as “perform this yield Get() and apply the specified backoff strategy if it fails”aloof-angle-91616
10/31/2019, 8:49 PMaloof-angle-91616
10/31/2019, 8:52 PM@union
classes as “protocols” of a sort, which meshes incredibly well with python 3.8’s `typing.Protocol`: https://github.com/pantsbuild/pants/pull/8542aloof-angle-91616
10/31/2019, 8:54 PMwitty-crayon-22786
10/31/2019, 8:57 PMwitty-crayon-22786
10/31/2019, 8:58 PMhundreds-breakfast-49010
11/01/2019, 12:15 AMhundreds-breakfast-49010
11/01/2019, 12:26 AMhundreds-breakfast-49010
11/01/2019, 12:27 AMhundreds-breakfast-49010
11/01/2019, 12:28 AMhundreds-breakfast-49010
11/01/2019, 12:29 AMhundreds-breakfast-49010
11/01/2019, 12:30 AM@retryable
makes the engine retry up to n times if the first time it gets this type something breaks", etc.witty-crayon-22786
11/01/2019, 1:07 AMwitty-crayon-22786
11/01/2019, 1:07 AMwitty-crayon-22786
11/01/2019, 1:07 AMaloof-angle-91616
11/01/2019, 1:09 AMwitty-crayon-22786
11/01/2019, 1:11 AMaloof-angle-91616
11/01/2019, 1:11 AMyield Get(_, Sleep(2))
is composablewitty-crayon-22786
11/01/2019, 1:11 AMaloof-angle-91616
11/01/2019, 1:12 AMaloof-angle-91616
11/01/2019, 1:13 AMwitty-crayon-22786
11/01/2019, 1:13 AMRetryableExecuteProcessRequest
or something from python given the ability to sleepaloof-angle-91616
11/01/2019, 1:14 AMwitty-crayon-22786
11/01/2019, 1:14 AMwitty-crayon-22786
11/01/2019, 1:15 AMwitty-crayon-22786
11/01/2019, 1:16 AMwitty-crayon-22786
11/01/2019, 1:16 AMaloof-angle-91616
11/01/2019, 1:16 AMaloof-angle-91616
11/01/2019, 1:17 AMwitty-crayon-22786
11/01/2019, 1:17 AMwitty-crayon-22786
11/01/2019, 1:17 AMwitty-crayon-22786
11/01/2019, 1:18 AMaloof-angle-91616
11/01/2019, 1:18 AMaloof-angle-91616
11/03/2019, 5:29 PMRetryableRequest
) if, instead of having to modify the FFI each time we add an intrinsic, we added types such as Snapshot
and RetryableRequest
to a dict (a literal table of intrinsics) which would then be converted into a rust hashmap and accessed by name?
(2) creating this table of intrinsics that gets passed to rust and DRYing it up could be the first change, completely separate from (1) or trying to add anything new to what gets passed to rust (which would be a separate discussion). does that sound like it could get closer to what you're describing in this thread (formalizing the "table of intrinsics")?witty-crayon-22786
11/03/2019, 10:25 PMwitty-crayon-22786
11/03/2019, 10:26 PMwitty-crayon-22786
11/03/2019, 10:26 PMwitty-crayon-22786
11/03/2019, 10:27 PMaloof-angle-91616
11/03/2019, 10:27 PMwitty-crayon-22786
11/03/2019, 10:47 PMaloof-angle-91616
11/03/2019, 10:50 PMaloof-angle-91616
11/03/2019, 10:58 PMRetryableRequest
?witty-crayon-22786
11/03/2019, 11:01 PMaloof-angle-91616
11/03/2019, 11:01 PMwitty-crayon-22786
11/03/2019, 11:02 PMwitty-crayon-22786
11/03/2019, 11:02 PMwitty-crayon-22786
11/03/2019, 11:03 PMaloof-angle-91616
11/03/2019, 11:04 PMExecutionError
?)witty-crayon-22786
11/03/2019, 11:05 PMwitty-crayon-22786
11/03/2019, 11:05 PMaloof-angle-91616
11/03/2019, 11:06 PMaloof-angle-91616
11/03/2019, 11:07 PMaloof-angle-91616
11/03/2019, 11:07 PMaloof-angle-91616
11/03/2019, 11:09 PMwitty-crayon-22786
11/03/2019, 11:10 PMwitty-crayon-22786
11/03/2019, 11:10 PMaloof-angle-91616
11/03/2019, 11:11 PMaloof-angle-91616
11/03/2019, 11:11 PMwitty-crayon-22786
11/03/2019, 11:11 PMaloof-angle-91616
11/03/2019, 11:11 PM