Live data from Hacker News

Viewing profile — mizmar

mizmar

HN member
Joined
Fri, Jul 04, 2025, 10:32 AM UTC
HN karma
29
Public activity
18 items

About mizmar

No profile information was provided.

Recent public activity

  1. comment
    Comment #48856703

    The seconds to calendar date conversion doesn't actually need to know about leap seconds. At the seconds representation level, the same number is repeated twice (or the smearing tr…

  2. comment
    Comment #48856154

    Yes, time() and clock_gettime(CLOCK_REALTIME) results are affected by leap seconds. New leap second will get to your system through NTP. Sadly NTP only distributes indicator flag t…

  3. comment
    Comment #48295210

    Clipboard on Wayland is interesting. Clients expose the content through wl_data_source and see wl_data_offer. To receive the clipboard content, they request receive on a wl_data_of…

  4. comment
    Comment #48177766

    I encountered this few months back. Netcat was recv-only client connected to server that was continually sending some logs. Managed to trigger it with netcat killed with Ctrl+\ sig…

  5. comment
    Comment #47816614

    Great reading, thanks. Describes how to handle ±0, works with difference to avoid truncation errors. First half of the paper is arriving at this correct snippet, second part of the…

  6. comment
    Comment #47797274

    the "XOR in hash functions" mentioned at the end most certainly refers to Zobrist hashing, the actually useful XOR trick. Requires fixed-length keys. Generate random table for each…

  7. comment
    Comment #47795588

    Another similar trick - XOR doubly linked list: XOR the prev and next pointers (storaged size of node decreases) and you can recover the values when accessing the node from prev or…

  8. comment
    Comment #47775091

    There is another way to compare floats for rough equality that I haven't seen much explored anywhere: bit-cast to integer, strip few least significant bits and then compare for equ…

  9. comment
    Comment #47577877

    >you're assuming copy/edit don't bump mtime Incorrect, I only assume move/rename of backup to original location doesn't change it's mtime (which it doesn't with default flags or fr…

  10. comment
    Comment #47576975

    ninja fails to detect that file changed from last build - all it's mtime, ctime, inode and size can change, yet it's not detected as long as mtime is not newer than target.

  11. comment
    Comment #47576057

    Similar to make, it does mtime chronological comparison of dependencies with target to determinate if dependencies changed. This is just so flawed and simple to fool by operations …

  12. comment
    Comment #47487032

    I wouldn't call wayland-client a callback hell. All callbacks are called at expected time when you call wl_display_dispatch() (and its variants) or during wl_display_roundtrip(). G…

  13. comment
    Comment #47481213

    Wayland makes it unnecessarily difficult to make simple clients. Gnome still doesn't support server-side window decoration and libdecor is an absolute nightmare and wayland-cursor …

  14. comment
    Comment #47481025

    >and I still don't know what's the difference between them (wl_display_roundtrip() & wl_display_dispatch()) and in what order to call them on I've been struggling with this initial…

  15. comment
    Comment #47338103

    I would mention stb_textedit.h, but I would not recommend it. It was an interesting thing to study. but the library has many shortcomings and is pain to integrate and use. It is us…

  16. comment
    Comment #47332251

    It's not that bad. You need really large files to notice. The largest realistic file I'll ever touch - sqlite3 amalgamation with 270k lines and 9.1 kB - still takes only 6 ms to me…

  17. comment
    Comment #44714053

    It's one of the improvements they claimed in the 2019 presentation. https://youtu.be/JZE3_0qvrMg?feature=shared&t=1054 Reporting 10% speedup on find, but 15% slowdown on insert. Th…

  18. comment
    Comment #44709708

    Something similar is used in swiss tables - metadata bucket entries are 1 bit occupancy marker and 7 MSB bits of hash (don't remember how tombstones are represented). Metadata tabl…