Live data from Hacker News

Viewing profile — pskocik

pskocik

HN member
Joined
Wed, Feb 12, 2014, 1:26 PM UTC
HN karma
96
Public activity
54 items

About pskocik

[ my public key: https://keybase.io/pskocik; my proof: https://keybase.io/pskocik/sigs/H3qxeUdzLamFcMn7QJY_Cqs4PjhmyvOIutSrfysyeRs ]

Recent public activity

  1. comment
    Comment #15155166

    The cop's behavior was inexcusable. Even if he had those orders, he could have informed her and arrest her calmly without unecessarily escalating the situation. The loss of temper …

  2. comment
    Comment #15049635

    I'm also using (for now) something based on these time checks (also pure posix + local, but local is extremely portable (tests well on 7 shells), though mine's a little more involv…

  3. comment
    Comment #13936307

    I once benchmarked reads with `mmap` vs `read` ( http://stackoverflow.com/a/39196499/1084774 ) . mmap starts winning big time once the file is >= 16KiB. Copying should have similar…

  4. comment
    Comment #13787749

    I'm for a complete and total shutdown of all Americans entering the European Union until we figure out what the hell is going on over there.

  5. comment
    Comment #13350315

    I haven't seen it in practice, but OOM is conceivably recoverable in certain cases (e.g., exponential vector growth with large capacities fails on a 32 bit system, but switching to…

  6. comment
  7. comment
  8. comment
  9. comment
    Comment #13346312

    It's a common (gcc/clang/tcc) compiler extension (chapter 6.1 of the gcc manual) that allows you to use parentheses around a compound statement to turn the compound statement into …

  10. comment
    Comment #13344864

    True. However, I think in the case of the dynamic array, this effect is minor. The macros are small, and most of the time, they end up wrapped in a function anyway. But, admittedly…

  11. comment
    Comment #13344593

    Expression macros `({, })` aren't standard either. But I sort of go with, if all gcc/clang/tinycc support it and it's a highly useful feature, then it's part of C as far as I'm con…

  12. comment
    Comment #13344560

    __typeof_ is a compile-time feature. It's like C++'s decltype. (You can make C++'s auto out of it too.) There's is a potential for code size increases with this approach, that's tr…

  13. comment
    Comment #13344533

    I like my C alternative better. I pass growth factors/increments as parameters to the vector macros so that I can affect how it grows on capacity exhaustion during each call and I …

  14. comment
    Comment #13344440

    In my codebase, I use expression macros (with a little bit of __typeof__-based type checks) to do it fully generically. Much of what you think you need C++ for can be done almost j…

  15. comment
    Comment #12937587

    A very smart programmer who's made a large contribution to society decides not to have kids while people of which neither can be said breed like rabbits. Looks like we'll be wateri…

  16. comment
    Comment #12628698

    So true. A page long rant is much more reasonable than the ten-or-so keystrokes that would paste the ULONLONGs in there.

  17. comment
  18. comment
    Comment #12100409

    Czech (his passport) changes endings all over the place. It's how our grammar works. Nouns and adjectives have different endings depending on their contextual gender associations. …

  19. comment
    Comment #12100198

    Smuggling tip: On a Slavic passport, if your last name ends in ova, it says you're female.

  20. comment
    Comment #11977464

    I appreciate your appreciating my jibe. Good luck with your suite and sorry for the little bit of negativity. Command line apps are my favorite type of apps.

  21. comment
  22. comment
    Comment #11977421

    I'm quite unfond of this command suite pattern that seems to be popular in cli apps lately. It's a very git thing to do. Why not just mac-whatever1 mac-whatever2? It has less coupl…

  23. comment
    Comment #11971477

    Technology may well bring about a collapse of democracy as we know it. No longer are the mediocre and the below mediocre insulated from actual decision making for reasons of imprac…

  24. comment
    Comment #11861509

    I don't understand why someone thought it was a good idea to require that POSIX stdio should lock the thread. It slows down stdio several times compared to the nonlocking version, …

  25. comment
    Comment #11826354

    Nothing against gotos, but the cringe from that implementation was way too strong. Why does this even get any attention at all?