{"action":"created","issue":{"url":"https://api.github.com/repos/kripken/ammo.js/issues/117","labels_url":"https://api.github.com/repos/kripken/ammo.js/issues/117/labels{/name}","comments_url":"https://api.github.com/repos/kripken/ammo.js/issues/117/comments","events_url":"https://api.github.com/repos/kripken/ammo.js/issues/117/events","html_url":"https://github.com/kripken/ammo.js/issues/117","id":110876085,"number":117,"title":"WebAssembly?","user":{"login":"josephrocca","id":1167575,"avatar_url":"https://avatars.githubusercontent.com/u/1167575?v=3","gravatar_id":"","url":"https://api.github.com/users/josephrocca","html_url":"https://github.com/josephrocca","followers_url":"https://api.github.com/users/josephrocca/followers","following_url":"https://api.github.com/users/josephrocca/following{/other_user}","gists_url":"https://api.github.com/users/josephrocca/gists{/gist_id}","starred_url":"https://api.github.com/users/josephrocca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josephrocca/subscriptions","organizations_url":"https://api.github.com/users/josephrocca/orgs","repos_url":"https://api.github.com/users/josephrocca/repos","events_url":"https://api.github.com/users/josephrocca/events{/privacy}","received_events_url":"https://api.github.com/users/josephrocca/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-10-11T18:40:44Z","updated_at":"2015-10-13T21:59:27Z","closed_at":null,"body":"Sorry, this is very hypothetical, but I'm just wondering whether the \"next generation\" of Ammo.js could use WebAssembly to compile Bullet (almost) directly to a usable JavaScript module? I'm not exactly sure how WebAssembly works, so I am just naive and curious.\r\n\r\nApparently WebAssembly will hit browsers some time next year if all goes well. Here are some articles for those who haven't heard of it yet:\r\n\r\nhttps://medium.com/javascript-scene/what-is-webassembly-the-dawn-of-a-new-era-61256ec5a8f6\r\nhttps://medium.com/javascript-scene/why-we-need-webassembly-an-interview-with-brendan-eich-7fb2a60b0723"},"comment":{"url":"https://api.github.com/repos/kripken/ammo.js/issues/comments/147865855","html_url":"https://github.com/kripken/ammo.js/issues/117#issuecomment-147865855","issue_url":"https://api.github.com/repos/kripken/ammo.js/issues/117","id":147865855,"user":{"login":"kripken","id":173661,"avatar_url":"https://avatars.githubusercontent.com/u/173661?v=3","gravatar_id":"","url":"https://api.github.com/users/kripken","html_url":"https://github.com/kripken","followers_url":"https://api.github.com/users/kripken/followers","following_url":"https://api.github.com/users/kripken/following{/other_user}","gists_url":"https://api.github.com/users/kripken/gists{/gist_id}","starred_url":"https://api.github.com/users/kripken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kripken/subscriptions","organizations_url":"https://api.github.com/users/kripken/orgs","repos_url":"https://api.github.com/users/kripken/repos","events_url":"https://api.github.com/users/kripken/events{/privacy}","received_events_url":"https://api.github.com/users/kripken/received_events","type":"User","site_admin":false},"created_at":"2015-10-13T21:59:27Z","updated_at":"2015-10-13T21:59:27Z","body":"Regarding the file size, it's possible to make custom builds of ammo, defining just the parts of bullet that are needed, in the `ammo.idl` file. The full 1.41MB is just for the entire engine containing everything. Still, though, a handwritten JS engine will likely be smaller, although slower.\r\n\r\nWhat do you mean by \"another emscripten library to pass callbacks\"?\r\n\r\nDefinitely lets collaborate on a benchmark! One thought I had was that at least for a cannon.js / ammo.js comparison, I would look if it is possible to take some cannon demo and just replace it with ammo. Not sure offhand if that would work though."}}