{"action":"created","issue":{"url":"https://api.github.com/repos/WebAssembly/design/issues/1129","repository_url":"https://api.github.com/repos/WebAssembly/design","labels_url":"https://api.github.com/repos/WebAssembly/design/issues/1129/labels{/name}","comments_url":"https://api.github.com/repos/WebAssembly/design/issues/1129/comments","events_url":"https://api.github.com/repos/WebAssembly/design/issues/1129/events","html_url":"https://github.com/WebAssembly/design/issues/1129","id":252406005,"number":1129,"title":"Need basic example","user":{"login":"blakemcbride","id":6467584,"avatar_url":"https://avatars3.githubusercontent.com/u/6467584?v=4","gravatar_id":"","url":"https://api.github.com/users/blakemcbride","html_url":"https://github.com/blakemcbride","followers_url":"https://api.github.com/users/blakemcbride/followers","following_url":"https://api.github.com/users/blakemcbride/following{/other_user}","gists_url":"https://api.github.com/users/blakemcbride/gists{/gist_id}","starred_url":"https://api.github.com/users/blakemcbride/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blakemcbride/subscriptions","organizations_url":"https://api.github.com/users/blakemcbride/orgs","repos_url":"https://api.github.com/users/blakemcbride/repos","events_url":"https://api.github.com/users/blakemcbride/events{/privacy}","received_events_url":"https://api.github.com/users/blakemcbride/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-08-23T20:27:50Z","updated_at":"2017-09-06T19:40:04Z","closed_at":null,"author_association":"NONE","body":"Your \"Hello World\" example at http://webassembly.org/getting-started/developers-guide/ creates a 1,301 line HTML file, a 2,688 line JavaScript file to make the generated \"Hello World\" wasm file work.  Presuming it is possible, could you please create a demo with the absolute minimal HTML and JavaScript code?  What you have provided is useless to me."},"comment":{"url":"https://api.github.com/repos/WebAssembly/design/issues/comments/327591545","html_url":"https://github.com/WebAssembly/design/issues/1129#issuecomment-327591545","issue_url":"https://api.github.com/repos/WebAssembly/design/issues/1129","id":327591545,"user":{"login":"binji","id":1245315,"avatar_url":"https://avatars2.githubusercontent.com/u/1245315?v=4","gravatar_id":"","url":"https://api.github.com/users/binji","html_url":"https://github.com/binji","followers_url":"https://api.github.com/users/binji/followers","following_url":"https://api.github.com/users/binji/following{/other_user}","gists_url":"https://api.github.com/users/binji/gists{/gist_id}","starred_url":"https://api.github.com/users/binji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binji/subscriptions","organizations_url":"https://api.github.com/users/binji/orgs","repos_url":"https://api.github.com/users/binji/repos","events_url":"https://api.github.com/users/binji/events{/privacy}","received_events_url":"https://api.github.com/users/binji/received_events","type":"User","site_admin":false},"created_at":"2017-09-06T19:40:04Z","updated_at":"2017-09-06T19:40:04Z","author_association":"MEMBER","body":"Here's an example that's about as simple as it gets:\r\n\r\n```html\r\n<!doctype HTML>\r\n<body>\r\n  <pre></pre>\r\n  <script>\r\n    /*\r\n      (module\r\n        (func (export \"add\") (param i32 i32) (result i32)\r\n          get_local 0\r\n          get_local 1\r\n          i32.add))\r\n    */\r\n    let moduleBytes = new Uint8Array([\r\n      0x00, 0x61, 0x73, 0x6d, 0x01, 0x00, 0x00, 0x00, 0x01, 0x07, 0x01, 0x60,\r\n      0x02, 0x7f, 0x7f, 0x01, 0x7f, 0x03, 0x02, 0x01, 0x00, 0x07, 0x07, 0x01,\r\n      0x03, 0x61, 0x64, 0x64, 0x00, 0x00, 0x0a, 0x09, 0x01, 0x07, 0x00, 0x20,\r\n      0x00, 0x20, 0x01, 0x6a, 0x0b\r\n    ]);\r\n    WebAssembly.instantiate(moduleBytes).then(\r\n    ({instance}) => {\r\n      let preEl = document.querySelector('pre');\r\n      preEl.textContent += instance.exports.add(10, 20);\r\n    });\r\n  </script>\r\n</body>\r\n```\r\n\r\nIf you load this in your browser it should display `30`."}}
{"actor":{"display_login":"binji"}}