HackerTrans
TopNewTrendsCommentsPastAskShowJobs

chrchang523

no profile record

comments

chrchang523
·2 mesi fa·discuss
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 mesi fa·discuss
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 mesi fa·discuss
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 anni fa·discuss
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 anni fa·discuss
Yes, I found this to be the best presentation among the several articles mentioned so far in this comment section.