HackerTrans
トップ新着トレンドコメント過去質問紹介求人

chrchang523

no profile record

コメント

chrchang523
·2 か月前·議論
and you CAN use static_cast to convert from void*; this silently keeps working if you refactor the void* into a matching-type pointer later, while raising a compilation error if you refactor to a different-type pointer.
chrchang523
·3 か月前·議論
Other things worth noting about denormal numbers:

- It’s not just ‘old’ FPUs that handle them verrry slowly. Benchmark this aspect of your target processors if this detail matters.

- Most modern processors provide a “flush to zero” denormal handling mode (and sometimes you can separately specify “denormals are zero”, relevant when e.g. loading old data). However, math libraries usually haven’t been written with this mode in mind, so you need to be careful with this.
chrchang523
·10 か月前·議論
Note that BGZF solves gzip’s speed problem (libdeflate + parallel compression/decompression) without breaking compatibility, and usually the hit to compression ratio is tolerable.
chrchang523
·4 年前·議論
Are you aware of any games made in the last 20 years with writing quality comparable to Star Control II (or Sid Meier's Alpha Centauri)?
chrchang523
·6 年前·議論
Yes, I found this to be the best presentation among the several articles mentioned so far in this comment section.