Skip to content
Snippets Groups Projects

Add sealers library to actor-lib

Merged Jessica Tallon requested to merge actor-lib-sealers into main
1 unresolved thread

Port of the actor-sealers library from racket.

This library allows you to use sealers across CapTP by the nature of being actors. It works similar to how simple sealers work, however they return actors which can seal, unseal or trademark? values.

This library by default works with simple sealers, but can take take a different sealer triplet constructor as an argument

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
33 (define (^unsealer _bcom)
34 (define (unseal-it value)
35 (unseal ($ value)))
36
37 (lambda (sealed-value)
38 (if (local-object-refr? sealed-value)
39 (unseal-it sealed-value)
40 (on sealed-value unseal-it #:promise? #t))))
41
42 (define (^sealed? _bcom)
43 (define (is-sealed? value)
44 (and (local-object-refr? value)
45 (sealed? ($ value))))
46
47 (lambda (maybe-sealed)
48 (if (or (local-promise-refr? maybe-sealed) (remote-promise-refr? maybe-sealed))
  • Jessica Tallon added 1 commit

    added 1 commit

    Compare with previous version

  • Jessica Tallon added 1 commit

    added 1 commit

    • af64a40c - Need to check promise-refr? not remote-refr? in sealers

    Compare with previous version

  • Two things then it's good to merge:

    • Whitespace stripping should happen in its own commit. But it should happen! (But it looks like it's in !56 (merged)
    • Hey, add my copyright from the Racket version ;)
  • Jessica Tallon added 2 commits

    added 2 commits

    • a0688acf - Add promise-refr? to core
    • 28195c5a - Need to check promise-refr? not remote-refr? in sealers

    Compare with previous version

  • Jessica Tallon added 1 commit

    added 1 commit

    • 36e5ae46 - Add Christine to the copyright of (actor-lib sealers)

    Compare with previous version

  • Jessica Tallon mentioned in commit bd0f920c

    mentioned in commit bd0f920c

  • Please register or sign in to reply
    Loading