title: How to create huge array in Rust directly on the heap, skipping stack?
body: <p>I need to declare and initialize array with size at least 8GB (1 billion of f64 variables). Everything I've tried so far is very complicated or inefficient or gives STATUS_STACK_OVERFLOW (0xC00000FD) error because it's first being created on heap.</p>
  <p>How can I do it efficiently, clean and nice?</p>
  <p><a href="https://stackoverflow.com/questions/53691012/is-there-any-way-to-allocate-a-standard-rust-array-directly-on-the-heap-skippin">Is there any way to allocate a standard Rust array directly on the heap, skipping the stack entirely?</a>
  Solutions proposed here use Vec, which does have performance impact.</p>