Live data from Hacker News

Viewing profile — harpiee

harpiee

HN member
Joined
Mon, Oct 09, 2023, 8:19 AM UTC
HN karma
10
Public activity
3 items

About harpiee

No profile information was provided.

Recent public activity

  1. comment
    Comment #37820514

    Smart pointers for what? I don't use any dynamically allocated memory in my firmware projects. I do sometimes use statically allocated pools for things like packet buffers and allo…

  2. comment
    Comment #37818785

    I do it mainly as a form of namespacing and aid in readability. do_thing(foo); // foo is variable do_thing(FOO); // FOO is constant (i.e this call should always do the same thing) …

  3. comment
    Comment #37818251

    With unsigned you can actually check for overflow yourself very easily z=x+y; if(z And bounds checks are just a single comparisons against an upper bound (handles both over and und…