Hacker GitHub

← All repos

celtera/ahsohtoa

View on GitHub ↗ ★ 88 C++

Structure-of-array synthesis in C++20

9 mentions on Hacker News by 4 people: 3 stories, 6 comments · first 2021-11-03 · latest 2026-03-19

Mentions per year 9 mentions · busiest year 2022 (4)
20082026
  1. …a quick search, it seems HackerNews's own jcelerier has put together a C++ library for doing this. https://github.com/celtera/ahsohtoa
    comment by MaxBarraclough · 2026-03-18 · in Rob Pike’s Rules of Programming (1989)
  2. …for sure does not have the utility functions defined here though, but is useful enough for me): https://github.com/celtera/ahsohtoa/blob/main/include/ahsoht...
    comment by jcelerier · 2022-08-22 · in Zig is now self–hosted by default
  3. …bit about this part of DoD - plugging my C++ library for automatic conversion of AoS layout to SoA: https://github.com/celtera/ahsohtoa if it can be useful to anyone ; the entire code is pretty short and fully documented to explain the…
  4. …AOS is relatively easy in D There's a library (which I haven't tried out) for doing this in C++20: https://github.com/celtera/ahsohtoa (The author is an HN regular, jcelerier .)
    comment by MaxBarraclough · 2022-03-08 · in Algorithms for Modern Hardware
  5. …at writing time. no need to reach for upcoming languages, it's doable directly in C++: https://github.com/celtera/ahsohtoa =)
  6. …to have an "object" API on top of an array-based storage (AoS interface / SoA implementation): https://github.com/celtera/ahsohtoa