# Mmap and memory alignment

**URL:** <https://discourse.julialang.org/t/mmap-and-memory-alignment/20665>\
**Category:** General Usage\
**Created:** [February 11, 2019, 2:57pm UTC](https://discourse.julialang.org/t/mmap-and-memory-alignment/20665 "2019-02-11T14:57:32Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![foobar\_lv2](https://avatars.discourse-cdn.com/v4/letter/f/ee59a6/32.png) [@foobar\_lv2](https://discourse.julialang.org/u/foobar_lv2)\
**Post date:** [February 12, 2019, 2:30pm UTC](https://discourse.julialang.org/t/mmap-and-memory-alignment/20665/13 "2019-02-12T14:30:07Z")

</div>

I recommend against using `primitive type` for anything at all, cf eg [https://github.com/JuliaLang/julia/issues/29193](https://github.com/JuliaLang/julia/issues/29193), [https://github.com/JuliaLang/julia/issues/29053](https://github.com/JuliaLang/julia/issues/29053), [https://github.com/JuliaLang/julia/issues/26026](https://github.com/JuliaLang/julia/issues/26026), [https://discourse.julialang.org/t/odd-byte-length-primitive-types-and-reinterpret/9025/3](https://discourse.julialang.org/t/odd-byte-length-primitive-types-and-reinterpret/9025/3).

---

_[View the full topic](https://discourse.julialang.org/t/mmap-and-memory-alignment/20665)._
