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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: Preprocessing Tool for Generating Hashes

1 点作者 r1chardnl9 个月前
I dabbled a bit with compile time hashing of strings and most ways seem to incur a heavy penalty on the compile time cost (in C++). Recently I came across <a href="https:&#x2F;&#x2F;handmade.network&#x2F;forums&#x2F;t&#x2F;1507-compile_time_string_hashing_with_c_constexpr_vs._your_own_preprocessor" rel="nofollow">https:&#x2F;&#x2F;handmade.network&#x2F;forums&#x2F;t&#x2F;1507-compile_time_string_h...</a> but having everything in one header file makes recompilation annoying. Thus I decided to make this small tool to just generate them inline. I&#x27;m sure there&#x27;s some tool that does exactly this already out there, but, alas, I don&#x27;t know.<p>It&#x27;s still one of the things that bug me about C&#x2F;C++, having to use RTTI vs compile time reflection&#x2F;template&#x2F;metaprogramming. Reflection for C++26 might help who knows.

暂无评论

暂无评论