{"action":"created","issue":{"url":"https://api.github.com/repos/tc39/ecmascript_sharedmem/issues/98","repository_url":"https://api.github.com/repos/tc39/ecmascript_sharedmem","labels_url":"https://api.github.com/repos/tc39/ecmascript_sharedmem/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/tc39/ecmascript_sharedmem/issues/98/comments","events_url":"https://api.github.com/repos/tc39/ecmascript_sharedmem/issues/98/events","html_url":"https://github.com/tc39/ecmascript_sharedmem/issues/98","id":152754376,"number":98,"title":"Is it appropriate to \"transfer\" SABs?","user":{"login":"lars-t-hansen","id":4823190,"avatar_url":"https://avatars.githubusercontent.com/u/4823190?v=3","gravatar_id":"","url":"https://api.github.com/users/lars-t-hansen","html_url":"https://github.com/lars-t-hansen","followers_url":"https://api.github.com/users/lars-t-hansen/followers","following_url":"https://api.github.com/users/lars-t-hansen/following{/other_user}","gists_url":"https://api.github.com/users/lars-t-hansen/gists{/gist_id}","starred_url":"https://api.github.com/users/lars-t-hansen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lars-t-hansen/subscriptions","organizations_url":"https://api.github.com/users/lars-t-hansen/orgs","repos_url":"https://api.github.com/users/lars-t-hansen/repos","events_url":"https://api.github.com/users/lars-t-hansen/events{/privacy}","received_events_url":"https://api.github.com/users/lars-t-hansen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tc39/ecmascript_sharedmem/labels/Agents","name":"Agents","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2016-05-03T11:43:32Z","updated_at":"2016-07-22T05:20:50Z","closed_at":null,"body":"@domenic @annevk\r\n\r\nThis came up in a discussion with @dherman: Is it appropriate for SABs to be sent from one agent to another *with* the structured clone transfer mechanism (as we have now) or *without* it?  It turns out he and I have different intuitions about what is entailed by \"transfer\".  To me it it entails \"don't deep copy\".  To Dave it entails \"detach the buffer, don't share it\".  Clearly, for ArrayBuffer both intuitions hold.\r\n\r\nI don't know precisely how we came to this point where a SAB must be in the transfer list.  Judging from our Mercurial log I inherited the mechanism with the prototype code I took over from @sstangl, and given my intuition about structured clone I always thought it was a reasonable choice.  I don't know if there's any deeper background, eg, a design that comes from PNaCl for example.\r\n\r\nAnother justification that comes up from time to time is that having to add a SAB to the transfer map makes it easier to guarantee that a SAB is never shared accidentally.  I happen to think that's a benefit, but not if it runs counter to some generally agreed-upon aspect of transfering.  (Nobody's raised any flags before now.)"},"comment":{"url":"https://api.github.com/repos/tc39/ecmascript_sharedmem/issues/comments/234456906","html_url":"https://github.com/tc39/ecmascript_sharedmem/issues/98#issuecomment-234456906","issue_url":"https://api.github.com/repos/tc39/ecmascript_sharedmem/issues/98","id":234456906,"user":{"login":"annevk","id":1544111,"avatar_url":"https://avatars.githubusercontent.com/u/1544111?v=3","gravatar_id":"","url":"https://api.github.com/users/annevk","html_url":"https://github.com/annevk","followers_url":"https://api.github.com/users/annevk/followers","following_url":"https://api.github.com/users/annevk/following{/other_user}","gists_url":"https://api.github.com/users/annevk/gists{/gist_id}","starred_url":"https://api.github.com/users/annevk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/annevk/subscriptions","organizations_url":"https://api.github.com/users/annevk/orgs","repos_url":"https://api.github.com/users/annevk/repos","events_url":"https://api.github.com/users/annevk/events{/privacy}","received_events_url":"https://api.github.com/users/annevk/received_events","type":"User","site_admin":false},"created_at":"2016-07-22T05:20:50Z","updated_at":"2016-07-22T05:20:50Z","body":"I meant with a new API. Same as we would have to do for blobs."}}
{"actor":{"display_login":"annevk"}}