Live data from Hacker News

Viewing profile — properparity

properparity

HN member
Joined
Mon, Jan 31, 2022, 7:58 PM UTC
HN karma
99
Public activity
32 items

About properparity

No profile information was provided.

Recent public activity

  1. comment
    Comment #39164940

    Yep, that's how the world works. Politicians only starts caring about peoples problems if they are either personally effected or one of their close friends/benefactors are effected…

  2. comment
    Comment #39164876

    Vector* vector_create(size_t itemSize) { Vector* vec = (Vector*)malloc(sizeof(Vector)); // ... return vec; } This just immediately strike me as poor code. C is not java, you do not…

  3. comment
    Comment #36561686

    A capacitor is a few extra cents on the bom which is a no go for profit maximizing companies.

  4. comment
    Comment #36459351

    What exactly is it that costs so much money when it comes to space stuff? Is the materials, exotic and rare stuff? Do you need custom microchips/fabs or something? Is it the engine…

  5. comment
    Comment #35460174

    If an AI is ever capable of replacing a human programmer it would also be capable of replacing a manager and running its own company. So why would you even be in a position to hire…

  6. comment
    Comment #35428434

    My findings as a spartan C programmer: I've been using a simple unity-build ad-hoc build.bat/build.sh "system" for years now, works wonders. YAGNI will serve you well, 99.99999(rep…

  7. comment
    Comment #35413631

    >This would prevent integer operation reordering as an optimization, leading to slower code. The sane way to address that is to add explicit opt-in annotations like 'restrict'. #pu…

  8. comment
    Comment #35413456

    But why put in unreachable? Doesn't make any sense to me. If a branch is truly not supposed to ever happen, why have a branch at all? Just remove that code from the source entirely…

  9. comment
    Comment #35100443

    That is something a decent type system should solve - make it impossible to pass 'incomplete values' on, so any state further on which depends on the error handled/not handled will…

  10. comment
    Comment #34445064

    How? By making text flow to 100% of the width you can easily resize the browser window for everyone's perfect reading width. I usually run my browser tiled to 50% of the screen, th…

  11. comment
    Comment #34301833

    Yes like errno, except not global of course, you add one per struct/context/module/thread/whatever. And you design the functions to early return if the error state is set. >how do …

  12. comment
    Comment #34291859

    You don't have to code like that in Go, C or other languages without exceptions or fancy option-type sugar. A sensible thing that often works great is to have a sticky error state …

  13. comment
    Comment #34291281

    Why would I ever care if something is a struct or not a struct? Just that is almost zero useful information. I do care about the size of a struct sometimes, but that would require …

  14. comment
    Comment #34291218

    >even BIGGER no. This is completely misunderstanding what a typedef is and what it should be used for. Hard disagree. Life safer when dealing with things like SI unit types. I used…

  15. comment
    Comment #34290876

    Mass starvation and mass migration due to climate change will most likely result in WW3.

  16. comment
    Comment #34154541

    Also been thinking this. What I want from a text editor is: - Like you said, running tasks with a button/keybind, easily customizable (Like I wanna open a config file, add a functi…

  17. comment
    Comment #33660462

    We need to let it completely loose and get everyone exposed to it everywhere so that maybe we can finally get rid of this insane taboo and uptightness about sex and nudity we have …

  18. comment
    Comment #33587178

    There's several GB/s of bandwidth from disk to screen these days, so unless you're processing several GB of data you have no excuse for anything in your programs to take more than …

  19. comment
    Comment #32987119

    Why limit yourself to crusty text when you can have live visualizations of data structures in various formats, graph dx/dy over time of some variable, stop and inspect data on some…

  20. comment
    Comment #32754120

    How is w=add(u, v) more explicit than w=u+v? Because operators "should not be function calls"? That would make zig unusable on soft float/soft div architectures, or would have to g…

  21. comment
    Comment #32442299

    > incremental builds I've found that to not matter that much these days - unless your projects is hundreds of thousands (or maybe millions even) of LOC, full builds are instant on …

  22. comment
    Comment #31467313

    If you open up the image in a new tab to see the full resolution and look at fine details it's very easy to spot AI ones - AI seems to especially struggle on reflective details, it…

  23. comment
    Comment #31386436

    Not necessarily divisible, but requires power of 2 bufsize with this code (but you probably want that anyway to avoid division). With non-power-2 bufsize you need some extra logic …

  24. comment
    Comment #31135267

    Meh, I find C syntax a total non-problem. Don't think I've ever constructed a more complicated type ('directly' so to speak, i.e without typedefs) than an array of function pointer…

  25. comment
    Comment #30816247

    >For comparison, Microchip (formerly atmel) SAMD21 (also Cortex-M0+, of Arduino Zero fame) is about 3-4 $, single core, less RAM. But it has built in flash. Sure, external flash is…