TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

C++ macros to write a hashtable implementation

58 pointsby mohamedmansourabout 7 years ago

5 comments

stevemk14ebrabout 7 years ago
Neat&#x2F;Funny i guess but not really technically impressive. They took normal C++ code and hid it behind a macro with some names. The actual implementation isn&#x27;t even there, Hashtable::hash and the &#x27;table&#x27; member for example.<p>I was totally hoping for some fancy templates and macro tricks to compile time gen all the code for a working hashtable implementation.
评论 #16560282 未加载
mkempeabout 7 years ago
I&#x27;ve happily used uthash [1] in embedded-system software written in C and C++.<p>[1] <a href="https:&#x2F;&#x2F;troydhanson.github.io&#x2F;uthash&#x2F;" rel="nofollow">https:&#x2F;&#x2F;troydhanson.github.io&#x2F;uthash&#x2F;</a>
gowldabout 7 years ago
Pale imitation of <a href="http:&#x2F;&#x2F;www.underhanded-c.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.underhanded-c.org&#x2F;</a> and <a href="https:&#x2F;&#x2F;www.ioccc.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.ioccc.org&#x2F;</a> (Obfuscated C Competition) where you find the true rings of power.
altaibayarabout 7 years ago
Eveything could be written under name &quot;RING&quot;. Then you would not need TO&#x2F;To&#x2F;tO
khcabout 7 years ago
How is this a hashtable implementation?
评论 #16561185 未加载
评论 #16560583 未加载