Live data from Hacker News

Viewing profile — mh7

mh7

HN member
Joined
Fri, Jun 15, 2018, 4:43 AM UTC
HN karma
99
Public activity
38 items

About mh7

No profile information was provided.

Recent public activity

  1. comment
    Comment #35046173

    How would you make a mistake? The only time signed vs unsigned matters is for comparisons and mul/div, and those have explicit names so you're never surprised that 0xFFFFFFFF is le…

  2. comment
    Comment #35045829

    Bread takes hours to make and lasts for one day. So unless you wanna wake up at 3 am (or have a dedicated stay-at-home person making bread every day) it's not really a realistic op…

  3. comment
    Comment #35045563

    Signed and unsigned should both go, there should only be wordN types (word8, word16, etc) with two's complement semantics. Then you can have explicit functions for the operation yo…

  4. comment
    Comment #34747599

    I asked for actual concrete evidence, not "can be used". Is there an example of a program that was crap, implemented telemetry and then got better afterwards? (and of course contro…

  5. comment
    Comment #34714854

    Any evidence that telemetry actually works? (i.e makes the program better)

  6. comment
    Comment #34316480

    It's probably a case of me not knowing what I don't know, but I've never understood what the big deal with 'observation' is in QM. I dabble a lot in electronics and I'm painfully a…

  7. comment
    Comment #34313755

    I don't see a way around that - Organs are inherently rare because of their size, cost, locations and maintenance requirements. Unless someone finds a way of scaling up production …

  8. comment
    Comment #34294347

    No it is not reserved, it's just posix's personal style guides. There's just as much of a name clash possibility when not using _t because lots of other libraries and platforms use…

  9. comment
    Comment #34226155

    The sad part is that this setup is probably slower and laggier running on top end machines of today than turbo c running on the actual legacy hardware back in the day.

  10. comment
    Comment #34139861

    Does zig plan on not supporting microcontrollers or not using "/" for integer division? Because on your typical arm mcu, x/y is a function call to a definitively non-constant time …

  11. comment
    Comment #33901045

    >There is no language called "C/C++". Yes there is. Take the union of C and C++ which is valid syntax (and same semantics) in both languages, voila; C/C++.

  12. comment
    Comment #33843745

    strlen() returns a size_t so you're already constrained to a maximum length of SIZE_MAX.

  13. comment
    Comment #33843659

    Re #3: A big downside is that you you can't easily take ownership of an existing buffer and treat it as this string type. string s; char some_buf[]; string_take(&s, some_buf, some_…

  14. comment
    Comment #33843626

    It's reserved in the same sense that google's style guide 'reserves' struct names starting with a capital letter. Only ISO C can officially reserve names, everyone else just has th…

  15. comment
    Comment #33753538

    >These things require access to accurate and up-to-date road and traffic info Which they will probably steal from the regular drivers, so you will be effectively paying for your ow…

  16. comment
    Comment #33608857

    Well not even Windows can manage to sleep a 'modern standby' laptop reliably these days. I had to set hibernate on lid-close because Windows kept waking it up all the time even whi…

  17. comment
    Comment #33387725

    Nope, not even formal proofs can save you, see WPA2/KRACK. Using proofs just shifts the bugs into the assumptions/axioms (i.e you think your proof is proving X but it's actually pr…

  18. comment
    Comment #33207600

    >equivalent windfarm (at $1.3M/MW) Does that include storage costs? Because a windfarm alone cannot replace a nuclear power plant no matter how cheaper or how much electricity the …

  19. comment
    Comment #33165031

    >Nowadays, I don't want to fiddle with Windows (which insists on forcing updates when I do power my PC up to play with friends) Unfortunately consoles have become normal PCs in thi…

  20. comment
    Comment #33152783

    >If LLVM were written in Rust it would have function level parallel compilation already No one is stopping anyone from writing a compiler backend/optimizer in rust, yet it hasn't h…

  21. comment
    Comment #33040092

    A real terminal or a fake one drawn ontop of a gui emulating deacades old cruft? Complete madness and inefficiency.

  22. comment
    Comment #32011837

    You don't know what the function called "add" does either. There's no reason for the name "+" to be anymore special than "add" - especially in any language supporting unicode ident…

  23. comment
    Comment #31623017

    Grocery stores can ban me for life - which means I starve.

  24. comment
    Comment #31386070

    No, nothing breaks with unsigned integers. Modular arithmetic makes it work. Try a few examples close to UINT_MAX if you want to convince yourself.

  25. comment
    Comment #31385971

    Why do so many people use the head==tail as full condition? You can use the entire buffer and not waste one slot by doing: push: buf[writeidx % bufsize] = x; writeidx++; pop: x = b…