{"action":"created","issue":{"url":"https://api.github.com/repos/iojs/io.js/issues/980","labels_url":"https://api.github.com/repos/iojs/io.js/issues/980/labels{/name}","comments_url":"https://api.github.com/repos/iojs/io.js/issues/980/comments","events_url":"https://api.github.com/repos/iojs/io.js/issues/980/events","html_url":"https://github.com/iojs/io.js/pull/980","id":59169886,"number":980,"title":"node: extract node env initialization out of process initialization","user":{"login":"petkaantonov","id":829734,"avatar_url":"https://avatars.githubusercontent.com/u/829734?v=3","gravatar_id":"","url":"https://api.github.com/users/petkaantonov","html_url":"https://github.com/petkaantonov","followers_url":"https://api.github.com/users/petkaantonov/followers","following_url":"https://api.github.com/users/petkaantonov/following{/other_user}","gists_url":"https://api.github.com/users/petkaantonov/gists{/gist_id}","starred_url":"https://api.github.com/users/petkaantonov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petkaantonov/subscriptions","organizations_url":"https://api.github.com/users/petkaantonov/orgs","repos_url":"https://api.github.com/users/petkaantonov/repos","events_url":"https://api.github.com/users/petkaantonov/events{/privacy}","received_events_url":"https://api.github.com/users/petkaantonov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-27T00:40:42Z","updated_at":"2015-02-28T23:08:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/iojs/io.js/pulls/980","html_url":"https://github.com/iojs/io.js/pull/980","diff_url":"https://github.com/iojs/io.js/pull/980.diff","patch_url":"https://github.com/iojs/io.js/pull/980.patch"},"body":"This will enable implementing a worker class that is backed by a thread instead of a separate process.\r\n\r\n/cc @bnoordhuis\r\n\r\nP.S. I saw your todo comments about using uv_default_loop, I was thinking why not have the main thread use the default loop and workers use their own loops?"},"comment":{"url":"https://api.github.com/repos/iojs/io.js/issues/comments/76555667","html_url":"https://github.com/iojs/io.js/pull/980#issuecomment-76555667","issue_url":"https://api.github.com/repos/iojs/io.js/issues/980","id":76555667,"user":{"login":"petkaantonov","id":829734,"avatar_url":"https://avatars.githubusercontent.com/u/829734?v=3","gravatar_id":"","url":"https://api.github.com/users/petkaantonov","html_url":"https://github.com/petkaantonov","followers_url":"https://api.github.com/users/petkaantonov/followers","following_url":"https://api.github.com/users/petkaantonov/following{/other_user}","gists_url":"https://api.github.com/users/petkaantonov/gists{/gist_id}","starred_url":"https://api.github.com/users/petkaantonov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petkaantonov/subscriptions","organizations_url":"https://api.github.com/users/petkaantonov/orgs","repos_url":"https://api.github.com/users/petkaantonov/repos","events_url":"https://api.github.com/users/petkaantonov/events{/privacy}","received_events_url":"https://api.github.com/users/petkaantonov/received_events","type":"User","site_admin":false},"created_at":"2015-02-28T23:08:49Z","updated_at":"2015-02-28T23:08:49Z","body":"Addressed @bnoordhuis comments, I also added an internal `CreateEnvironment` overload since in the future we will need to know in env too whether it's the main thread or a worker one.\r\n\r\n> Why do we need another class for this? Isn't Environment enough?\r\n\r\nInstances of this class will be the data argument passed to `uv_create_thread`, I think it's cleaner if we create Environment while already executing in the thread the environment will belong to."}}