{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/node-eps/issues/4","labels_url":"https://api.github.com/repos/nodejs/node-eps/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/node-eps/issues/4/comments","events_url":"https://api.github.com/repos/nodejs/node-eps/issues/4/events","html_url":"https://github.com/nodejs/node-eps/pull/4","id":127001058,"number":4,"title":"Buffer.from/Buffer.alloc/Buffer.zalloc/Buffer() soft-deprecate","user":{"login":"jasnell","id":439929,"avatar_url":"https://avatars.githubusercontent.com/u/439929?v=3","gravatar_id":"","url":"https://api.github.com/users/jasnell","html_url":"https://github.com/jasnell","followers_url":"https://api.github.com/users/jasnell/followers","following_url":"https://api.github.com/users/jasnell/following{/other_user}","gists_url":"https://api.github.com/users/jasnell/gists{/gist_id}","starred_url":"https://api.github.com/users/jasnell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasnell/subscriptions","organizations_url":"https://api.github.com/users/jasnell/orgs","repos_url":"https://api.github.com/users/jasnell/repos","events_url":"https://api.github.com/users/jasnell/events{/privacy}","received_events_url":"https://api.github.com/users/jasnell/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":25,"created_at":"2016-01-16T04:46:16Z","updated_at":"2016-01-18T21:27:15Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/nodejs/node-eps/pulls/4","html_url":"https://github.com/nodejs/node-eps/pull/4","diff_url":"https://github.com/nodejs/node-eps/pull/4.diff","patch_url":"https://github.com/nodejs/node-eps/pull/4.patch"},"body":"Refs: https://github.com/nodejs/node/pull/4682\r\nRefs: https://github.com/nodejs/node/issues/4660"},"comment":{"url":"https://api.github.com/repos/nodejs/node-eps/issues/comments/172658598","html_url":"https://github.com/nodejs/node-eps/pull/4#issuecomment-172658598","issue_url":"https://api.github.com/repos/nodejs/node-eps/issues/4","id":172658598,"user":{"login":"trevnorris","id":289174,"avatar_url":"https://avatars.githubusercontent.com/u/289174?v=3","gravatar_id":"","url":"https://api.github.com/users/trevnorris","html_url":"https://github.com/trevnorris","followers_url":"https://api.github.com/users/trevnorris/followers","following_url":"https://api.github.com/users/trevnorris/following{/other_user}","gists_url":"https://api.github.com/users/trevnorris/gists{/gist_id}","starred_url":"https://api.github.com/users/trevnorris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trevnorris/subscriptions","organizations_url":"https://api.github.com/users/trevnorris/orgs","repos_url":"https://api.github.com/users/trevnorris/repos","events_url":"https://api.github.com/users/trevnorris/events{/privacy}","received_events_url":"https://api.github.com/users/trevnorris/received_events","type":"User","site_admin":false},"created_at":"2016-01-18T21:27:15Z","updated_at":"2016-01-18T21:27:15Z","body":"I take offence at your insistence that usage of uninitialized memory is _always_ unsafe. Take the following:\r\n```js\r\nvar b = Buffer.alloc(n).fill('abc');\r\n```\r\nor maybe this:\r\n```js\r\nvar b = Buffer.alloc(n);\r\nfs.read(fd, b, 0, b.length, 0, cb);\r\n```\r\nor possibly I'm just not being lazy and actually keep track of what I'm doing. The rebuttal of having a moment of potentially \"unsafe\" memory is pointless. There's a potential for anything to happen if a developer isn't careful. Allowing unchecked variables to be processed from an outside source is a pretty big mess up regardless of what the results are. Don't tell me what's unsafe. Just tell me what's technically happening.\r\n\r\nThat said, `alloc()` and `allocRaw()` seems appropriate enough. While `allocUninitialized()` is more technically correct I'd smack someone if I had to be typing that in constantly."}}