Live data from Hacker News

Viewing profile — hogliux

hogliux

HN member
Joined
Tue, Oct 23, 2018, 7:21 AM UTC
HN karma
146
Public activity
13 items

About hogliux

No profile information was provided.

Recent public activity

  1. comment
    Comment #43981998

    Long-time happy Wise business customer here (since before the name change). While generally great, their KYC flow needs serious attention. Received four document request emails sim…

  2. comment
    Comment #25847351

    IMHO SOUL is a game changer in audio just like OpenGL/Direct3D/etc. was a game changer in the graphics world. Think of all of the graphics technologies that were enabled by OpenGL/…

  3. comment
    Comment #18287359

    Hmmm, I'm not sure I understand. You can't really mark `static static_map ::Value& get()` constexpr because it returns a value which is only known at run-time - again the value is …

  4. comment
    Comment #18284667

    Because with a constexpr declaration everything will be constexpr, i.e. you couldn't modify the values at run-time. The idea here is that finding the storage of the value is done a…

  5. comment
    Comment #18283517

    I'm looking forward to C++-20 when this is not needed anymore :-) - it will support string literals as non-type template parameters.

  6. comment
    Comment #18282671

    Both your approach and the `semi::static_map` will generate the same type of load instruction. In both cases, the compiler knows the offset of the values in memory at compile-time.…

  7. comment
    Comment #18282646

    Yes, that's a nice approach. However, this approach requires you to list all your keys in advance (in the enum). The `semi::static_map` does not require this.This is especially use…

  8. comment
    Comment #18282253

    Yup. The frozen map cannot be updated once it is initialized: >

  9. comment
    Comment #18282247

    Thanks, I'll have a look at this!

  10. comment
    Comment #18282172

    Yes with the optional run-time lookup there is an extra two machine instructions (a cmp and jne) needed to check if this is the first time accessing the value. It is exactly as fas…

  11. comment
    Comment #18282147

    Yes, in a way you are right: the compiler really does boil it down to global variables. However, `semi::static_map` gives you some additional features, which may be useful for a lo…

  12. story
  13. story