Live data from Hacker News

Viewing profile — chrchang523

chrchang523

HN member
Joined
Wed, Mar 08, 2017, 3:14 AM UTC
HN karma
589
Public activity
253 items

About chrchang523

No profile information was provided.

Recent public activity

  1. comment
    Comment #48266220

    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 yo…

  2. comment
    Comment #47678238

    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.…

  3. comment
    Comment #45253774

    Note that BGZF solves gzip’s speed problem (libdeflate + parallel compression/decompression) without breaking compatibility, and usually the hit to compression ratio is tolerable.

  4. comment
    Comment #44748018

    Yes, though I think tooling could be better; if I had more spare time I'd write a linter which flagged defers in loops that didn't come with an accompanying comment.

  5. comment
    Comment #41881167

    The problem with cgo is the high function-call overhead; you only want to use it for fairly big chunks of work. Calling an assembly function from Go is a lot cheaper. https://pkg.g…

  6. comment
    Comment #41154925

    I found it useful to walk through evaluation of a few elementary instances of this class using simpler methods, to put the main result in perspective. Specifically, replace the ini…

  7. comment
    Comment #40098632

    Two-bit values are common in bioinformatics, and I’ve found the ability to efficiently convert between packed arrays of 1- and 2-bit values to be valuable in that domain.

  8. comment
    Comment #40009622

    One question: it is possible for the XOR of two consecutive floating-point numbers to have 32-63 leading zeros; the numbers 32-63 do not fit in 5 bits. I imagine this is treated by…

  9. comment
  10. comment
    Comment #38716805

    The mod 1000 is actually a consequence of the test format: all answers are integers in [0, 999], you fill in 3 digit-bubbles.

  11. comment
    Comment #37927632

    Suppose the value of a network to an individual user is proportional to the number of users. Then the total value of the network, summed across all its users, is proportional to th…

  12. comment
    Comment #37921093

    Yup, and that's why I'd consider this a "101" essay. The larger exponential-growth trends (e.g. Moore's Law) practically always have a microstructure with many sigmoid curves. Afte…

  13. comment
    Comment #37577939

    The slave-owners were slave-owners because they had military control over the slaves. (Most of the time, anyway; some slave revolts were successful.) It is not clear how long human…

  14. comment
    Comment #37574129

    Yup. This 24-year-old game was so culturally significant in the Eastern Bloc that there was a piano concert in Warsaw dedicated to it last month: https://gmfest.com/2023/06/19/paul…

  15. comment
    Comment #37573287

    No, the idea is that you manually make some allocations downward from the top and some allocations upward from the bottom. The bumping code is as simple as in the unidirectional ca…

  16. comment
    Comment #37572886

    Incidentally, you can choose to bump in both directions. It's more complicated (you need to keep track of which end you allocated each data structure on), but in exchange, the allo…

  17. comment
    Comment #37571731

    I recently started running HOMM3 HD on my Mac with Porting Kit, which has been working great: https://www.portingkit.com/game/236 .

  18. comment
    Comment #37501141

    Sure, but there isn't even an offhand remark about how hacky this kind of polling is. It's presented as if it's a completely normal way to do things in reliable software.

  19. comment
    Comment #37499894

    Agree, I'm shocked at how ugly the recommended alternative is. This does not make MS look good.

  20. comment
    Comment #37177339

    Raymond Chen has been providing an inside perspective on this for decades: https://devblogs.microsoft.com/oldnewthing/

  21. comment
  22. comment
    Comment #37102028

    The possibilities you mention are definitely worth keeping in mind. However, they are not an exhaustive list; there are positive scenarios that are better than "trying to squeeze a…

  23. comment
    Comment #36965904

    Do you? I don’t like it, but the government is allowed to pay off the debt with inflated dollars.

  24. comment
    Comment #36829052

    Rare virtue, but I wouldn’t say it was unprecedented: https://en.m.wikipedia.org/wiki/Lucius_Quinctius_Cincinnatus

  25. comment
    Comment #36818733

    There are games where the final score is primarily based on taking as little time as possible (e.g. the Heroes of Might and Magic series, which had its debut around the same time a…