{"action":"created","issue":{"url":"https://api.github.com/repos/gopherjs/gopherjs/issues/833","repository_url":"https://api.github.com/repos/gopherjs/gopherjs","labels_url":"https://api.github.com/repos/gopherjs/gopherjs/issues/833/labels{/name}","comments_url":"https://api.github.com/repos/gopherjs/gopherjs/issues/833/comments","events_url":"https://api.github.com/repos/gopherjs/gopherjs/issues/833/events","html_url":"https://github.com/gopherjs/gopherjs/issues/833","id":334155854,"node_id":"MDU6SXNzdWUzMzQxNTU4NTQ=","number":833,"title":"js: Consider adding Wasm support.","user":{"login":"dmitshur","id":1924134,"node_id":"MDQ6VXNlcjE5MjQxMzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/1924134?v=4","gravatar_id":"","url":"https://api.github.com/users/dmitshur","html_url":"https://github.com/dmitshur","followers_url":"https://api.github.com/users/dmitshur/followers","following_url":"https://api.github.com/users/dmitshur/following{/other_user}","gists_url":"https://api.github.com/users/dmitshur/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitshur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitshur/subscriptions","organizations_url":"https://api.github.com/users/dmitshur/orgs","repos_url":"https://api.github.com/users/dmitshur/repos","events_url":"https://api.github.com/users/dmitshur/events{/privacy}","received_events_url":"https://api.github.com/users/dmitshur/received_events","type":"User","site_admin":false},"labels":[{"id":585319470,"node_id":"MDU6TGFiZWw1ODUzMTk0NzA=","url":"https://api.github.com/repos/gopherjs/gopherjs/labels/NeedsDecision","name":"NeedsDecision","color":"ededed","default":false},{"id":633068629,"node_id":"MDU6TGFiZWw2MzMwNjg2Mjk=","url":"https://api.github.com/repos/gopherjs/gopherjs/labels/NeedsInvestigation","name":"NeedsInvestigation","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-06-20T16:26:17Z","updated_at":"2018-08-08T18:50:29Z","closed_at":null,"author_association":"MEMBER","body":"In https://github.com/hajimehoshi/gopherwasm, @hajimehoshi created an experimental wrapper that implements the `syscall/js` API using the `github.com/gopherjs/gopherjs/js` package in GopherJS, and using the `syscall/js` package itself in Wasm.\r\n\r\nThis gives me an idea for something that might be possible for the `github.com/gopherjs/gopherjs/js` package: to add an alternative implementation of the same API, but using the `syscall/js` package.\r\n\r\nThe GopherJS compiler would never use it, only the Go compiler would. It would help by making all packages that currently import `github.com/gopherjs/gopherjs/js` buildable for Wasm (with overhead, of course), until they can be updated to use `syscall/js` directly. This can be especially helpful for [browser API bindings](https://github.com/gopherjs/gopherjs/wiki/bindings) (e.g., see https://github.com/dominikh/go-js-dom/issues/57).\r\n\r\nAt this point this is just an idea. It needs investigation to see if it'd be viable. I wanted to create the issue so we can track it.\r\n\r\n@hajimehoshi Have you already thought about this?"},"comment":{"url":"https://api.github.com/repos/gopherjs/gopherjs/issues/comments/411512917","html_url":"https://github.com/gopherjs/gopherjs/issues/833#issuecomment-411512917","issue_url":"https://api.github.com/repos/gopherjs/gopherjs/issues/833","id":411512917,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTUxMjkxNw==","user":{"login":"flimzy","id":8555063,"node_id":"MDQ6VXNlcjg1NTUwNjM=","avatar_url":"https://avatars0.githubusercontent.com/u/8555063?v=4","gravatar_id":"","url":"https://api.github.com/users/flimzy","html_url":"https://github.com/flimzy","followers_url":"https://api.github.com/users/flimzy/followers","following_url":"https://api.github.com/users/flimzy/following{/other_user}","gists_url":"https://api.github.com/users/flimzy/gists{/gist_id}","starred_url":"https://api.github.com/users/flimzy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flimzy/subscriptions","organizations_url":"https://api.github.com/users/flimzy/orgs","repos_url":"https://api.github.com/users/flimzy/repos","events_url":"https://api.github.com/users/flimzy/events{/privacy}","received_events_url":"https://api.github.com/users/flimzy/received_events","type":"User","site_admin":false},"created_at":"2018-08-08T18:50:29Z","updated_at":"2018-08-08T18:50:29Z","author_association":"CONTRIBUTOR","body":"[This](https://github.com/go-kivik/pouchdb/blob/master/bindings/pouchdb.go#L79-L95) is how I turn async JS code into sync Go code."}}
{"actor":{"display_login":"flimzy"}}