News for hackers. Stuff that matters.
Re:David Patterson Says It’s Time for New Computer Architect... by stochastic_monk on Monday September 17, 2018 @07:01PM (#18010861)
Edit: RcouF1 posted a more thorough response covering cache coherence as well earlier, which I hadn’t seen. Read that instead. https://news.ycombinator.com/item?id=18010256

Original post:

As does C++ as of 11. [0] For heap allocations, one used the POSIX (not stdlib) posix_memalign until C++17/C11, when std::aligned_alloc became standard. [1] The other option was manually aligning heap memory; it’s so much more convenient to use a transparent aligned allocator.

[0] https://en.cppreference.com/w/cpp/language/alignas

[1] https://en.cppreference.com/w/cpp/memory/c/aligned_alloc

There are no comments on this comment yet.