Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actor assertions #117

Closed
wants to merge 17 commits into from
Closed

Actor assertions #117

wants to merge 17 commits into from

Conversation

daumayr
Copy link
Contributor

@daumayr daumayr commented Mar 13, 2017

Todo:

  • get Arguments of current Message primitive
  • get Sender / Message Selector primitive
  • tests
  • code cleanup
class Proto = Protocol(
        | cnt ::= 0. |
      )(
        public end = ('end' println.)

        A = (
             onReceive: #hungry:id: do: [:args| 'hungry' println. actors assertFuture: [(actors isMessage: #done:) and: (actors isSender: (args at: 1))] msg: 'Philosopher did not return his forks'. B: (args at: 2)].
             onReceive: #done: do: ['done' println. A].
             onReceive: #exit do: ['exit' println. numExitedPhilosophers = numPhil ifTrue: [end] ifFalse: [A]].
        )

        B: phil = (
          onSend: #eat do: ['eat' println. actors assert: [cnt < 10] msg: 'too many denied philosophers'. cnt := 0. A].
          onSend: #denied do: [('denied' + cnt) println .cnt := cnt + 1. A]
        )

        public start = (
          A.
        )
      )

@smarr
Copy link
Owner

smarr commented Mar 14, 2017

Do you have a pointer to example code using the assertions?

@daumayr
Copy link
Contributor Author

daumayr commented Mar 14, 2017

I have an example locally, i added a protocol for the Philosophers benchmark.

@daumayr daumayr force-pushed the actor-assertions branch 3 times, most recently from 7e5c68b to 019d9a2 Compare March 21, 2017 14:53
@daumayr daumayr force-pushed the actor-assertions branch 2 times, most recently from 6e1eb3f to 2b2cd50 Compare April 24, 2017 11:17
@daumayr daumayr force-pushed the actor-assertions branch 3 times, most recently from 733485d to bf3ce18 Compare May 2, 2017 13:28
@smarr smarr added this to Open Issues in Completeness Feb 14, 2018
@smarr smarr closed this Apr 5, 2018
Completeness automation moved this from Open Issues to Completed Apr 5, 2018
@smarr smarr changed the base branch from master to release April 5, 2018 19:37
@smarr smarr changed the base branch from release to dev April 5, 2018 19:37
@smarr smarr reopened this Apr 5, 2018
Completeness automation moved this from Completed to Open Issues Apr 5, 2018
@daumayr
Copy link
Contributor Author

daumayr commented Sep 4, 2019

@smarr should we just close this PR. I think we decided against pursuing this further, also extremely outdated

@smarr smarr added remember research Work part of a research project labels Sep 4, 2019
@smarr smarr removed this from Open Issues in Completeness Sep 4, 2019
@smarr smarr added this to To Do in Actor Record & Replay via automation Sep 4, 2019
@smarr
Copy link
Owner

smarr commented Sep 4, 2019

Yeah, probably good to close. Though, I tagged it to be findable.

@smarr smarr closed this Sep 4, 2019
Actor Record & Replay automation moved this from To Do to Done Sep 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
remember research Work part of a research project
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants