[rust-dev] Newbie question about Rust stack management

2014-12-18 Thread Alfredo Di Napoli
Good morning Rustaceans, I'm just moving my first steps into the Rust world, so please apologies in advance for my silly questions. As an exercise to learn the language I'm trying to create a streaming CLI app to decrypt data read from stdin directly into stdout. This gist is a very simple

Re: [rust-dev] Newbie question about Rust stack management

2014-12-18 Thread Richo Healey
On 18/12/14 10:40 +0100, Alfredo Di Napoli wrote: Good morning Rustaceans, I'm just moving my first steps into the Rust world, so please apologies in advance for my silly questions. As an exercise to learn the language I'm trying to create a streaming CLI app to decrypt data read from stdin

Re: [rust-dev] Newbie question about Rust stack management

2014-12-18 Thread Alfredo Di Napoli
Ah, thanks a lot Richo, I did miss the fact a Box was allocating on the heap. Bad me! Yes, I do agree that allocating huge things on the stack is bad, hence my head scratching. Thanks! Alfredo On Thursday, 18 December 2014, Richo Healey ri...@psych0tik.net wrote: On 18/12/14 10:40 +0100,