{"action":"created","issue":{"url":"https://api.github.com/repos/WebAssembly/design/issues/398","labels_url":"https://api.github.com/repos/WebAssembly/design/issues/398/labels{/name}","comments_url":"https://api.github.com/repos/WebAssembly/design/issues/398/comments","events_url":"https://api.github.com/repos/WebAssembly/design/issues/398/events","html_url":"https://github.com/WebAssembly/design/issues/398","id":110823864,"number":398,"title":"Define a start function.","user":{"login":"JSStats","id":11826073,"avatar_url":"https://avatars.githubusercontent.com/u/11826073?v=3","gravatar_id":"","url":"https://api.github.com/users/JSStats","html_url":"https://github.com/JSStats","followers_url":"https://api.github.com/users/JSStats/followers","following_url":"https://api.github.com/users/JSStats/following{/other_user}","gists_url":"https://api.github.com/users/JSStats/gists{/gist_id}","starred_url":"https://api.github.com/users/JSStats/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JSStats/subscriptions","organizations_url":"https://api.github.com/users/JSStats/orgs","repos_url":"https://api.github.com/users/JSStats/repos","events_url":"https://api.github.com/users/JSStats/events{/privacy}","received_events_url":"https://api.github.com/users/JSStats/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":23,"created_at":"2015-10-10T23:41:39Z","updated_at":"2015-10-14T22:15:04Z","closed_at":null,"body":"While wasm can export functions, a use case might be running a stand-alone wasm application and if so then it seems appropriate to define a cold-start function. This could be used in self contained wasm code that does not depend on wrapper user code to launch it. What if the wrapper code itself were wasm code - this needs an entry point. What do people think, should a `main` cold-start entry point be defined in the spec, or is this out of scope?"},"comment":{"url":"https://api.github.com/repos/WebAssembly/design/issues/comments/148218718","html_url":"https://github.com/WebAssembly/design/issues/398#issuecomment-148218718","issue_url":"https://api.github.com/repos/WebAssembly/design/issues/398","id":148218718,"user":{"login":"kg","id":198130,"avatar_url":"https://avatars.githubusercontent.com/u/198130?v=3","gravatar_id":"","url":"https://api.github.com/users/kg","html_url":"https://github.com/kg","followers_url":"https://api.github.com/users/kg/followers","following_url":"https://api.github.com/users/kg/following{/other_user}","gists_url":"https://api.github.com/users/kg/gists{/gist_id}","starred_url":"https://api.github.com/users/kg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kg/subscriptions","organizations_url":"https://api.github.com/users/kg/orgs","repos_url":"https://api.github.com/users/kg/repos","events_url":"https://api.github.com/users/kg/events{/privacy}","received_events_url":"https://api.github.com/users/kg/received_events","type":"User","site_admin":false},"created_at":"2015-10-14T22:15:04Z","updated_at":"2015-10-14T22:15:04Z","body":"> making it a var option field in AST makes it clear that there is at most 1, which is one less thing to check\r\n\r\nIs it wise to limit it to 1? Wouldn't that prevent static linking of libraries that each have their own ```_start```? I guess the static linker could just glue the function bodies together... Shouldn't matter when we have dynamic linking."}}