TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Polymorph: Queryless ECS in Nim (Nimconf2022 Video)

5 点作者 pietroppeter超过 2 年前

1 comment

cb321超过 2 年前
While popular with game developers (as clear in this talk), the &quot;automatic abstraction transpose&quot; to struct of arrays (SOA) from array of structs (AOS) of ECS or &quot;data-oriented&quot; programming has more broadly interesting qualities.<p>As any row&#x2F;column database devs will tell you, performance-wise, it is often a matter of &quot;scales &amp; commonality&quot;. If you <i>always</i> want two fields at the same time, one cache miss or IO is better than two. Ultimate performance in a scale&#x2F;context general sense and purity&#x2F;simplicity are ever at odds. Ah well.