Live data from Hacker News

Viewing profile — charleslmunger

charleslmunger

HN member
Joined
Sun, Mar 03, 2013, 10:34 PM UTC
HN karma
1,309
Public activity
455 items

About charleslmunger

No profile information was provided.

Recent public activity

  1. comment
    Comment #49246346

    >today you could set up a system where the whole process is tap two phones together with nfc and confirm This was actually possible in 2011 or so, and a friend and I implemented it…

  2. comment
    Comment #49238069

    Yes but that space would have existed anyway for a window of that size regardless of its contents.

  3. comment
    Comment #49233043

    A weather widget using 8 bit color plus alpha on a 4k display show three full size images in 100mb. But I suspect that's not the ux we're talking about here, and a widget style sys…

  4. comment
    Comment #49210197

    It's a problem for language specifiers, basically. The behavior is undefined in the standard; to rely on it you either need your implementation of the standard to define it themsel…

  5. comment
    Comment #49169563

    From a hardware perspective this is correct. From a language perspective it's UB, and unless your compiler has defined that UB, it doesn't matter what the hardware's behavior is un…

  6. comment
    Comment #49072638

    This is overstated in value; on arm systems with LSE it's faster to use that even for weak operations than to use ll/sc. Even if you are limited to ll/sc the compiler may not put y…

  7. comment
    Comment #48796237

    I agree you can't trust your compiler, but you can control its behavior more reliably with __builtin_expect_with_probability https://github.com/protocolbuffers/protobuf/commit/9f29…

  8. comment
    Comment #48779697

    Michael Bloomberg

  9. comment
    Comment #48538547

    I mean this is sort of true in that windows is constantly introducing trash, but I've run into all kinds of nonsense: 1. Amd HDMI 2.1 fiasco and adapter workarounds -> debugged the…

  10. comment
    Comment #48219256

    I mean... You can turn a one byte out of bounds write into code execution. https://daniel.haxx.se/blog/2016/10/14/a-single-byte-write-o... And if you get code execution, then you b…

  11. comment
    Comment #48219221

    Isn't the proposal from the parent comment to define the behavior?

  12. comment
    Comment #48209736

    I got a measurable improvement from eliminating a null pointer check within the last week. Billions of devices have arm little cores, and the extra branch predictor pressure and fr…

  13. comment
    Comment #48209597

    Wouldn't that make a compiler that emitted bounds checks violate the standard, since it would not be emitting the actual memory operations if you deref out of bounds?

  14. comment
    Comment #48209521

    Is that really a meaningful distinction? Once you are addressing arbitrary values you are firmly in the realm of "anything happening" in practice, but you've now given up optimizat…

  15. comment
    Comment #48109611

    The Synaptics VMM7100-based adapters only support VRR on older firmware versions with bugs. The Chrontel CH7218 is the most reliable but still also suffers blackouts during VRR. Pa…

  16. comment
    Comment #47983218

    Yeah arm little cores are a very different story - they aren't superscalar out of order architectures, they can dispatch up to two operations per cycle. Big cores are more like tha…

  17. comment
    Comment #47974756

    The first implementation I encountered was a linear search, starting at the last-found field. Empirically it performed better to do a binary search with early exit and branchless b…

  18. comment
    Comment #47969438

    Yeah namespaces and public/private would be quite nice, but C doesn't have them, so they get hacked on via macros and prefixing. The syntax was not the hard part of working or anal…

  19. comment
    Comment #47968689

    I've spent some brainpower on binary search and have not been able to beat this: https://github.com/protocolbuffers/protobuf/blob/44025909eb7... 1. Check for dense list O(1) 2. Che…

  20. comment
    Comment #47957791

    I had fun exploiting this to detect the falling convention used by some code at runtime - there were two different options depending on OS version; one passed a jnienv* as the firs…

  21. comment
    Comment #47898341

    >Maintaining both MV2 & MV3 support isn’t easily sustainable long term when you factor in the need to prioritize other features. There is no feature Firefox provides that is more d…

  22. comment
    Comment #47877040

    If you can trigger address sanitizer from input outside the program, and the program may interact with untrusted input, isn't that always worth reporting and fixing?

  23. comment
    Comment #47394247

    >With Kotlin/Spring Boot, compilation is annoyingly slow. That's what you get with modern languages and rich syntax. This is because the kotlin compiler is not written in the way p…

  24. comment
    Comment #47115822

    The default Gboard keyboard has settings for always showing the number row, or only showing it when entering a password. There is also a setting for the "suggestion strip" under "c…

  25. comment
    Comment #47021350

    Not OP, but used Arch for a while in 2011, and at some point doing an update moved /bin to /usr/bin or something like that and gave me an unbootable system. This was massive inconv…