Live data from Hacker News

Viewing profile — clappski

clappski

HN member
Joined
Mon, Feb 29, 2016, 9:09 PM UTC
HN karma
425
Public activity
183 items

About clappski

C++ software developer, based in London.

me jakeclapp com

Recent public activity

  1. comment
    Comment #48395742

    At least in that case you can refactor the stored proc to be more performant without pushing application changes.

  2. comment
    Comment #48091794

    Not at all, for example at secondary/high school you would address male teachers interchangeable as ‘sir’ and ‘mr. Last name’.

  3. comment
    Comment #46575165

    The mistake is that you did a system update when you wanted to use the computer. Not implying that system updates should be a dangerous thing to do, but just something learnt from …

  4. comment
    Comment #46230132

    I like the priorities. I think a core thing that's missing is that code that performs well is (IME) also the simplest version of the thing. By that, I mean you'll be; - Avoiding vi…

  5. comment
    Comment #44634638

    You'd have an error about an incomplete type - see https://godbolt.org/z/G4Gsfn7MT > a pointer, whose size is always known Yeah, this is exactly how it works. You work with a point…

  6. comment
    Comment #44633219

    When we're talking about opaque it's really in relation to an individual translation unit - somewhere in the binary or its linked libraries the definition has to exist for the code…

  7. comment
    Comment #38203647

    Reminds me of the shadow paging used in LMDB, which is effectively the same but at the page level rather than the whole tree and allows each reader their own context to read from, …

  8. comment
    Comment #37236330

    f" something { my_dict['key'] } something else " This works in Python already, allowing for nesting is a big QoL improvement

  9. comment
    Comment #34272360

    C++ has two types of polymorphism; - Templates (compile time), which are generic bits of code that are monomorphized over every combination of template parameters that they're used…

  10. comment
    Comment #34104385

    > haven't seen depth info past the best bid/offer (maybe exists? I'm not an expert) Most exchanges will provide arbitrary depth in way of a pure order feed. From that you can const…

  11. comment
    Comment #33608407

    So are you arguing that genocide and slavery aren't objectively bad?

  12. comment
    Comment #33439801

    By sharing the load, we have a #reviews channel that anyone can put something in to get peer review. If there's something that needs attention from a specific person then arranging…

  13. comment
    Comment #33436925

    There's much more reason to do a greenfield project in C++ than Rust - experienced C++ hiring is still considerably easier! Not everything has a purely technical motivator.

  14. comment
    Comment #32707214

    > Is it boring? Was I right about that? > who uses programming as a problem solving tool Programming can be boring, software development is much more exciting! All software is solv…

  15. comment
    Comment #32552920

    The ship had sailed on > WFH is a rare, once a month kind of thing years ago for tech in London, way before 2020 for most businesses. You'd be better off looking outside of London …

  16. comment
    Comment #31538645

    In practise shared_ptr should only be used when you need to actually share ownership of some dynamically allocated object. You get around it by using it in the right place. You’re …

  17. comment
    Comment #31456197

    Sometimes you might use bits in an integer to encode data, e.g.; - A bitset index - Bitflags (e.g. to represent logging levels) - Feature flags `bit_count` (aka `popcount`) gives y…

  18. comment
    Comment #30643731

    Something to bare in mind when you're looking at both of those is the price is highly dependent on a number of factors; - Type of generation, looking at the NY data they have a hug…

  19. comment
    Comment #30627529

    Wouldn't `Count` ( https://docs.microsoft.com/en-us/dotnet/api/system.collectio... ) be the preferred way to check if a collection has values? `someCollection.Any()` is the same as…

  20. comment
    Comment #30057416

    > But wouldn't the ability to restrict arbitrary changes to a struct still be important? Typically immutability in C++ is at the interface scope rather than structural, e.g. prefer…

  21. comment
    Comment #29820600

    My comment wasn’t about buffered writing in a main thread, it was about moving the work out of your threads actually executing your program and having them push raw log actions int…

  22. comment
    Comment #29812792

    > logging to a synchronized output There's your performance issue, logging doesn't need to be persisted or even processed by your main program thread or any thread/process actually…

  23. comment
    Comment #29767897

    What you should be doing for checked arithmetic with GCC is use the builtins for those that aren’t aware; https://gcc.gnu.org/onlinedocs/gcc/Integer-Overflow-Builtins...

  24. comment
    Comment #29339415

    It’s only possible to do that if your positive integers are passed via template parameters. All your type traits/SFAINE/concepts/static_asserts happen at compile time, you can’t us…

  25. comment
    Comment #28443599

    >I did not wanted to fiddle with openssl directly It's actually fairly simple to use openssl directly if you have a good handle of sockets in general, it's basically just a case of…