{"action":"created","comment":{"url":"https://api.github.com/repos/ponylang/ponyc/pulls/comments/64990951","id":64990951,"diff_hunk":"@@ -0,0 +1,7 @@\n+struct val Product","path":"examples/producer-consumer/product.pony","position":1,"original_position":1,"commit_id":"44da3a4af40d6ba346d8828f15a4c3fb89806891","original_commit_id":"4495caf93c7e21c7af144525a107394d907b0ebc","user":{"login":"SeanTAllen","id":193596,"avatar_url":"https://avatars.githubusercontent.com/u/193596?v=3","gravatar_id":"","url":"https://api.github.com/users/SeanTAllen","html_url":"https://github.com/SeanTAllen","followers_url":"https://api.github.com/users/SeanTAllen/followers","following_url":"https://api.github.com/users/SeanTAllen/following{/other_user}","gists_url":"https://api.github.com/users/SeanTAllen/gists{/gist_id}","starred_url":"https://api.github.com/users/SeanTAllen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SeanTAllen/subscriptions","organizations_url":"https://api.github.com/users/SeanTAllen/orgs","repos_url":"https://api.github.com/users/SeanTAllen/repos","events_url":"https://api.github.com/users/SeanTAllen/events{/privacy}","received_events_url":"https://api.github.com/users/SeanTAllen/received_events","type":"User","site_admin":false},"body":"struct is intended for use with C FFI.\r\n\r\nyou want a class here.","created_at":"2016-05-28T16:24:07Z","updated_at":"2016-05-28T16:24:07Z","html_url":"https://github.com/ponylang/ponyc/pull/881#discussion_r64990951","pull_request_url":"https://api.github.com/repos/ponylang/ponyc/pulls/881","_links":{"self":{"href":"https://api.github.com/repos/ponylang/ponyc/pulls/comments/64990951"},"html":{"href":"https://github.com/ponylang/ponyc/pull/881#discussion_r64990951"},"pull_request":{"href":"https://api.github.com/repos/ponylang/ponyc/pulls/881"}}},"pull_request":{"url":"https://api.github.com/repos/ponylang/ponyc/pulls/881","id":71495542,"html_url":"https://github.com/ponylang/ponyc/pull/881","diff_url":"https://github.com/ponylang/ponyc/pull/881.diff","patch_url":"https://github.com/ponylang/ponyc/pull/881.patch","issue_url":"https://api.github.com/repos/ponylang/ponyc/issues/881","number":881,"state":"open","locked":false,"title":"Adding producer-consumer problem example","user":{"login":"danielaRiesgo","id":12351004,"avatar_url":"https://avatars.githubusercontent.com/u/12351004?v=3","gravatar_id":"","url":"https://api.github.com/users/danielaRiesgo","html_url":"https://github.com/danielaRiesgo","followers_url":"https://api.github.com/users/danielaRiesgo/followers","following_url":"https://api.github.com/users/danielaRiesgo/following{/other_user}","gists_url":"https://api.github.com/users/danielaRiesgo/gists{/gist_id}","starred_url":"https://api.github.com/users/danielaRiesgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielaRiesgo/subscriptions","organizations_url":"https://api.github.com/users/danielaRiesgo/orgs","repos_url":"https://api.github.com/users/danielaRiesgo/repos","events_url":"https://api.github.com/users/danielaRiesgo/events{/privacy}","received_events_url":"https://api.github.com/users/danielaRiesgo/received_events","type":"User","site_admin":false},"body":"Concurrency is such an important part of Pony, that I found it strange not to treat any of the typical concurrency problems in the examples. Moreover, I didn't found many examples with many actors instead of classes interacting with each other.\r\n\r\nThis is my implementation of a solution to the Producer-Consumer problem, any comment is welcome.\r\nI left the prints I used when coding it because if anyone wants to try the example out, maybe it helps; but I  understand if you like to erase them.","created_at":"2016-05-26T03:30:26Z","updated_at":"2016-05-28T16:24:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bffc709b883056fc160051d59f43bf93b31c6e43","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ponylang/ponyc/pulls/881/commits","review_comments_url":"https://api.github.com/repos/ponylang/ponyc/pulls/881/comments","review_comment_url":"https://api.github.com/repos/ponylang/ponyc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ponylang/ponyc/issues/881/comments","statuses_url":"https://api.github.com/repos/ponylang/ponyc/statuses/44da3a4af40d6ba346d8828f15a4c3fb89806891","head":{"label":"danielaRiesgo:add-example","ref":"add-example","sha":"44da3a4af40d6ba346d8828f15a4c3fb89806891","user":{"login":"danielaRiesgo","id":12351004,"avatar_url":"https://avatars.githubusercontent.com/u/12351004?v=3","gravatar_id":"","url":"https://api.github.com/users/danielaRiesgo","html_url":"https://github.com/danielaRiesgo","followers_url":"https://api.github.com/users/danielaRiesgo/followers","following_url":"https://api.github.com/users/danielaRiesgo/following{/other_user}","gists_url":"https://api.github.com/users/danielaRiesgo/gists{/gist_id}","starred_url":"https://api.github.com/users/danielaRiesgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielaRiesgo/subscriptions","organizations_url":"https://api.github.com/users/danielaRiesgo/orgs","repos_url":"https://api.github.com/users/danielaRiesgo/repos","events_url":"https://api.github.com/users/danielaRiesgo/events{/privacy}","received_events_url":"https://api.github.com/users/danielaRiesgo/received_events","type":"User","site_admin":false},"repo":{"id":59716144,"name":"ponyc","full_name":"danielaRiesgo/ponyc","owner":{"login":"danielaRiesgo","id":12351004,"avatar_url":"https://avatars.githubusercontent.com/u/12351004?v=3","gravatar_id":"","url":"https://api.github.com/users/danielaRiesgo","html_url":"https://github.com/danielaRiesgo","followers_url":"https://api.github.com/users/danielaRiesgo/followers","following_url":"https://api.github.com/users/danielaRiesgo/following{/other_user}","gists_url":"https://api.github.com/users/danielaRiesgo/gists{/gist_id}","starred_url":"https://api.github.com/users/danielaRiesgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielaRiesgo/subscriptions","organizations_url":"https://api.github.com/users/danielaRiesgo/orgs","repos_url":"https://api.github.com/users/danielaRiesgo/repos","events_url":"https://api.github.com/users/danielaRiesgo/events{/privacy}","received_events_url":"https://api.github.com/users/danielaRiesgo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/danielaRiesgo/ponyc","description":"Pony is an open-source, object-oriented, actor-model, capabilities-secure, high performance programming language","fork":true,"url":"https://api.github.com/repos/danielaRiesgo/ponyc","forks_url":"https://api.github.com/repos/danielaRiesgo/ponyc/forks","keys_url":"https://api.github.com/repos/danielaRiesgo/ponyc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danielaRiesgo/ponyc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danielaRiesgo/ponyc/teams","hooks_url":"https://api.github.com/repos/danielaRiesgo/ponyc/hooks","issue_events_url":"https://api.github.com/repos/danielaRiesgo/ponyc/issues/events{/number}","events_url":"https://api.github.com/repos/danielaRiesgo/ponyc/events","assignees_url":"https://api.github.com/repos/danielaRiesgo/ponyc/assignees{/user}","branches_url":"https://api.github.com/repos/danielaRiesgo/ponyc/branches{/branch}","tags_url":"https://api.github.com/repos/danielaRiesgo/ponyc/tags","blobs_url":"https://api.github.com/repos/danielaRiesgo/ponyc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danielaRiesgo/ponyc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danielaRiesgo/ponyc/git/refs{/sha}","trees_url":"https://api.github.com/repos/danielaRiesgo/ponyc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danielaRiesgo/ponyc/statuses/{sha}","languages_url":"https://api.github.com/repos/danielaRiesgo/ponyc/languages","stargazers_url":"https://api.github.com/repos/danielaRiesgo/ponyc/stargazers","contributors_url":"https://api.github.com/repos/danielaRiesgo/ponyc/contributors","subscribers_url":"https://api.github.com/repos/danielaRiesgo/ponyc/subscribers","subscription_url":"https://api.github.com/repos/danielaRiesgo/ponyc/subscription","commits_url":"https://api.github.com/repos/danielaRiesgo/ponyc/commits{/sha}","git_commits_url":"https://api.github.com/repos/danielaRiesgo/ponyc/git/commits{/sha}","comments_url":"https://api.github.com/repos/danielaRiesgo/ponyc/comments{/number}","issue_comment_url":"https://api.github.com/repos/danielaRiesgo/ponyc/issues/comments{/number}","contents_url":"https://api.github.com/repos/danielaRiesgo/ponyc/contents/{+path}","compare_url":"https://api.github.com/repos/danielaRiesgo/ponyc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danielaRiesgo/ponyc/merges","archive_url":"https://api.github.com/repos/danielaRiesgo/ponyc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danielaRiesgo/ponyc/downloads","issues_url":"https://api.github.com/repos/danielaRiesgo/ponyc/issues{/number}","pulls_url":"https://api.github.com/repos/danielaRiesgo/ponyc/pulls{/number}","milestones_url":"https://api.github.com/repos/danielaRiesgo/ponyc/milestones{/number}","notifications_url":"https://api.github.com/repos/danielaRiesgo/ponyc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danielaRiesgo/ponyc/labels{/name}","releases_url":"https://api.github.com/repos/danielaRiesgo/ponyc/releases{/id}","deployments_url":"https://api.github.com/repos/danielaRiesgo/ponyc/deployments","created_at":"2016-05-26T03:17:22Z","updated_at":"2016-05-26T03:17:25Z","pushed_at":"2016-05-28T16:06:54Z","git_url":"git://github.com/danielaRiesgo/ponyc.git","ssh_url":"git@github.com:danielaRiesgo/ponyc.git","clone_url":"https://github.com/danielaRiesgo/ponyc.git","svn_url":"https://github.com/danielaRiesgo/ponyc","homepage":"http://www.ponylang.org","size":52164,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ponylang:master","ref":"master","sha":"6640a56a10209ccea1f015e4cf01472a78bd7872","user":{"login":"ponylang","id":12997238,"avatar_url":"https://avatars.githubusercontent.com/u/12997238?v=3","gravatar_id":"","url":"https://api.github.com/users/ponylang","html_url":"https://github.com/ponylang","followers_url":"https://api.github.com/users/ponylang/followers","following_url":"https://api.github.com/users/ponylang/following{/other_user}","gists_url":"https://api.github.com/users/ponylang/gists{/gist_id}","starred_url":"https://api.github.com/users/ponylang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ponylang/subscriptions","organizations_url":"https://api.github.com/users/ponylang/orgs","repos_url":"https://api.github.com/users/ponylang/repos","events_url":"https://api.github.com/users/ponylang/events{/privacy}","received_events_url":"https://api.github.com/users/ponylang/received_events","type":"Organization","site_admin":false},"repo":{"id":6667084,"name":"ponyc","full_name":"ponylang/ponyc","owner":{"login":"ponylang","id":12997238,"avatar_url":"https://avatars.githubusercontent.com/u/12997238?v=3","gravatar_id":"","url":"https://api.github.com/users/ponylang","html_url":"https://github.com/ponylang","followers_url":"https://api.github.com/users/ponylang/followers","following_url":"https://api.github.com/users/ponylang/following{/other_user}","gists_url":"https://api.github.com/users/ponylang/gists{/gist_id}","starred_url":"https://api.github.com/users/ponylang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ponylang/subscriptions","organizations_url":"https://api.github.com/users/ponylang/orgs","repos_url":"https://api.github.com/users/ponylang/repos","events_url":"https://api.github.com/users/ponylang/events{/privacy}","received_events_url":"https://api.github.com/users/ponylang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ponylang/ponyc","description":"Pony is an open-source, object-oriented, actor-model, capabilities-secure, high performance programming language","fork":false,"url":"https://api.github.com/repos/ponylang/ponyc","forks_url":"https://api.github.com/repos/ponylang/ponyc/forks","keys_url":"https://api.github.com/repos/ponylang/ponyc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ponylang/ponyc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ponylang/ponyc/teams","hooks_url":"https://api.github.com/repos/ponylang/ponyc/hooks","issue_events_url":"https://api.github.com/repos/ponylang/ponyc/issues/events{/number}","events_url":"https://api.github.com/repos/ponylang/ponyc/events","assignees_url":"https://api.github.com/repos/ponylang/ponyc/assignees{/user}","branches_url":"https://api.github.com/repos/ponylang/ponyc/branches{/branch}","tags_url":"https://api.github.com/repos/ponylang/ponyc/tags","blobs_url":"https://api.github.com/repos/ponylang/ponyc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ponylang/ponyc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ponylang/ponyc/git/refs{/sha}","trees_url":"https://api.github.com/repos/ponylang/ponyc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ponylang/ponyc/statuses/{sha}","languages_url":"https://api.github.com/repos/ponylang/ponyc/languages","stargazers_url":"https://api.github.com/repos/ponylang/ponyc/stargazers","contributors_url":"https://api.github.com/repos/ponylang/ponyc/contributors","subscribers_url":"https://api.github.com/repos/ponylang/ponyc/subscribers","subscription_url":"https://api.github.com/repos/ponylang/ponyc/subscription","commits_url":"https://api.github.com/repos/ponylang/ponyc/commits{/sha}","git_commits_url":"https://api.github.com/repos/ponylang/ponyc/git/commits{/sha}","comments_url":"https://api.github.com/repos/ponylang/ponyc/comments{/number}","issue_comment_url":"https://api.github.com/repos/ponylang/ponyc/issues/comments{/number}","contents_url":"https://api.github.com/repos/ponylang/ponyc/contents/{+path}","compare_url":"https://api.github.com/repos/ponylang/ponyc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ponylang/ponyc/merges","archive_url":"https://api.github.com/repos/ponylang/ponyc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ponylang/ponyc/downloads","issues_url":"https://api.github.com/repos/ponylang/ponyc/issues{/number}","pulls_url":"https://api.github.com/repos/ponylang/ponyc/pulls{/number}","milestones_url":"https://api.github.com/repos/ponylang/ponyc/milestones{/number}","notifications_url":"https://api.github.com/repos/ponylang/ponyc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ponylang/ponyc/labels{/name}","releases_url":"https://api.github.com/repos/ponylang/ponyc/releases{/id}","deployments_url":"https://api.github.com/repos/ponylang/ponyc/deployments","created_at":"2012-11-13T07:38:25Z","updated_at":"2016-05-28T15:53:28Z","pushed_at":"2016-05-28T16:13:01Z","git_url":"git://github.com/ponylang/ponyc.git","ssh_url":"git@github.com:ponylang/ponyc.git","clone_url":"https://github.com/ponylang/ponyc.git","svn_url":"https://github.com/ponylang/ponyc","homepage":"http://www.ponylang.org","size":56244,"stargazers_count":1491,"watchers_count":1491,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":105,"mirror_url":null,"open_issues_count":82,"forks":105,"open_issues":82,"watchers":1491,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ponylang/ponyc/pulls/881"},"html":{"href":"https://github.com/ponylang/ponyc/pull/881"},"issue":{"href":"https://api.github.com/repos/ponylang/ponyc/issues/881"},"comments":{"href":"https://api.github.com/repos/ponylang/ponyc/issues/881/comments"},"review_comments":{"href":"https://api.github.com/repos/ponylang/ponyc/pulls/881/comments"},"review_comment":{"href":"https://api.github.com/repos/ponylang/ponyc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ponylang/ponyc/pulls/881/commits"},"statuses":{"href":"https://api.github.com/repos/ponylang/ponyc/statuses/44da3a4af40d6ba346d8828f15a4c3fb89806891"}}}}
{"actor":{"display_login":"SeanTAllen"}}