{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rfcs/issues/618","repository_url":"https://api.github.com/repos/rust-lang/rfcs","labels_url":"https://api.github.com/repos/rust-lang/rfcs/issues/618/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rfcs/issues/618/comments","events_url":"https://api.github.com/repos/rust-lang/rfcs/issues/618/events","html_url":"https://github.com/rust-lang/rfcs/issues/618","id":54965853,"number":618,"title":"support alloca","user":{"login":"steveklabnik","id":27786,"avatar_url":"https://avatars.githubusercontent.com/u/27786?v=3","gravatar_id":"","url":"https://api.github.com/users/steveklabnik","html_url":"https://github.com/steveklabnik","followers_url":"https://api.github.com/users/steveklabnik/followers","following_url":"https://api.github.com/users/steveklabnik/following{/other_user}","gists_url":"https://api.github.com/users/steveklabnik/gists{/gist_id}","starred_url":"https://api.github.com/users/steveklabnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steveklabnik/subscriptions","organizations_url":"https://api.github.com/users/steveklabnik/orgs","repos_url":"https://api.github.com/users/steveklabnik/repos","events_url":"https://api.github.com/users/steveklabnik/events{/privacy}","received_events_url":"https://api.github.com/users/steveklabnik/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rust-lang/rfcs/labels/A-wishlist","name":"A-wishlist","color":"d7e101"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-01-21T01:31:06Z","updated_at":"2016-05-30T10:27:53Z","closed_at":null,"body":"<a href=\"https://github.com/thestinger\"><img src=\"https://avatars.githubusercontent.com/u/1505226?v=3\" align=\"left\" width=\"96\" height=\"96\" hspace=\"10\"></img></a> **Issue by [thestinger](https://github.com/thestinger)**\n_Friday May 03, 2013 at 01:35 GMT_\n\n_For earlier discussion, see https://github.com/rust-lang/rust/issues/6203_\n\n_This issue was labelled with: A-llvm, I-wishlist in the Rust repository_\n\n----\n\nIt's probably going to be tricky to get this working with the segmented stack implementation.\n"},"comment":{"url":"https://api.github.com/repos/rust-lang/rfcs/issues/comments/222462963","html_url":"https://github.com/rust-lang/rfcs/issues/618#issuecomment-222462963","issue_url":"https://api.github.com/repos/rust-lang/rfcs/issues/618","id":222462963,"user":{"login":"kirillkh","id":583047,"avatar_url":"https://avatars.githubusercontent.com/u/583047?v=3","gravatar_id":"","url":"https://api.github.com/users/kirillkh","html_url":"https://github.com/kirillkh","followers_url":"https://api.github.com/users/kirillkh/followers","following_url":"https://api.github.com/users/kirillkh/following{/other_user}","gists_url":"https://api.github.com/users/kirillkh/gists{/gist_id}","starred_url":"https://api.github.com/users/kirillkh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirillkh/subscriptions","organizations_url":"https://api.github.com/users/kirillkh/orgs","repos_url":"https://api.github.com/users/kirillkh/repos","events_url":"https://api.github.com/users/kirillkh/events{/privacy}","received_events_url":"https://api.github.com/users/kirillkh/received_events","type":"User","site_admin":false},"created_at":"2016-05-30T10:27:52Z","updated_at":"2016-05-30T10:27:52Z","body":"I find myself running into wanting to use stack-allocated arrays quite often. One use-case that comes up: allocate a temporary array, do some processing, tear it down (all in the same function). The alternatives to doing it on stack are either temporary heap allocation (heavy price) or allocate and cache (inconvenience, sometimes not even feasible, e.g. when the array is allocated by Iterator::collect(); with stack-allocated arrays it would be possible to extend the collections API to allow collecting into stack-based arrays). "}}
{"actor":{"display_login":"kirillkh"}}