Live data from Hacker News

Viewing profile — amavect

amavect

HN member
Joined
Mon, Nov 25, 2024, 7:55 PM UTC
HN karma
94
Public activity
94 items

About amavect

No profile information was provided.

Recent public activity

  1. comment
    Comment #49249361

    I recently played around with what I call "manual tail-call optimization": transform a tail call to a goto to the beginning of the function. Check it out: https://godbolt.org/z/3fY…

  2. comment
    Comment #49100955

    Why yes, I want to read research confirming common sense. And more valuable, I can read the nuance of it too (quantifying how much safer compared to cigarettes).

  3. comment
    Comment #49100907

    Well, I have no clue about their relative safety and would like to read more.

  4. comment
    Comment #49100247

    I see replies that keep repeating the same "it's got no smoke and tar so it must cause far less harm", as if common sense always matches reality. Coating the lungs with cooked prop…

  5. comment
    Comment #49072989

    Just thought of how to fix the problem I had. Since the program already highlights the inductive hypothesis blue (but doesn't underline), consider adding a clickable underline to i…

  6. comment
    Comment #49072440

    I got stuck in a loop on 8 "Adding zero to the right", blindly following the tip below the box keeps looping induction introduction. Looping 9 times following the help tip, it even…

  7. comment
    Comment #48895792

    Cool!! I really like how the overflow condition reads. "When the source and destination have the same sign, but the result a different sign, then signed addition overflows." x86 ha…

  8. comment
    Comment #48865665

    You sound like you believe in philosophical skepticism. Tell me: can a map ever properly describe the territory? When would a map properly describe the territory? (Can a theory eve…

  9. comment
    Comment #48861633

    I included that to try to explain the symbol soup that correctly encodes the preconditions (the ∀ lines). I intended that to mean "I need to make sure that y+x doesn't overflow", e…

  10. comment
    Comment #48861483

    Pedantically, that doesn't properly invert post-increment in the loop step. It decrements one extra time. If I need to use the loop index after the loop, then decrementing in the c…

  11. comment
    Comment #48854449

    I believe the main issue lies in most programming languages lacking theorem proving capabilities to prove the safety of integer operations. The safety conditions for unsigned arith…

  12. comment
    Comment #48854146

    Post-increment inverts to pre-decrement, but for-loops don't support proper syntax sugar for pre-decrement. for(size_t i = 0; i 0;){ i--; // loop body }

  13. comment
    Comment #48633909

    Hah, I can use this to give decibels an actual unit. dB_P = log(10)/10 dB_F = log(10)/20 log(10*V) = log(V) + 20*dB_F // the level of 10 V equals 20 dB more than the power level of…

  14. comment
    Comment #48632007

    >You might ask: if we have a baseless logarithm log(N), do we also have a “baseless exponential”? Sure we can, with some naive algebra. If we can take log(x,base) and drop the base…

  15. comment
    Comment #48557517

    That graph ends in 2015. The 2025 graph flattens. Looks like we can explain this trend by the economic development of East Asia. https://en.wikipedia.org/wiki/File:Total_population…

  16. comment
    Comment #48522487

    Perceptible latency goes well below 10 ms. https://www.youtube.com/watch?v=vOvQCPLkPt4

  17. comment
    Comment #48389622

    >The tone is generated using two sawtooth oscillators I interpreted "acoustically-accurate" to mean physically modeled in some way. Filtered sawtooth makes a simple brass-like timb…

  18. comment
    Comment #48363418

    Thinking about this more, dithering requires negative values to cancel out when adding. Works for audio, but color doesn't have negative numbers.

  19. comment
    Comment #48361733

    I agree. Additionally, both 0.0 and 1.0 don't really exist for dithered signals, so a byte should map to [0.5, 255.5] before division by 256. This also solves the signed integer as…

  20. comment
    Comment #48241170

    Optimizing for "radix economy", an argument that attempts to balance the digit cost against the choice of base. When the cost per digit equals the base, e turns out optimal. But wh…

  21. comment
    Comment #48240852

    I have an axe to grind. Radix economy makes a shallow argument when calculating the wrong per-digit information cost. I need some functions to show what I mean. Calculate logarithm…

  22. comment
    Comment #48226001

    A way to exit the adversarial process is by ending the separation between owners and workers, through things like worker cooperatives, employee ownership, and workplace democracy.

  23. comment
    Comment #48195567

    I imagine an OS where the system remembers to keep permanent permission for a program to manage its own files. An app data folder would work. The system should pass the capability …

  24. comment
    Comment #48184138

    That condition usually doesn't hold in practice. Very few programs have a reason for reading browser history or cookies. Excel has no purpose accessing the Notepad++ appdata folder…

  25. comment
    Comment #48183015

    I too would like an OS where called programs don't need to call open() on strings. The shell already has output redirection, but hamstrung so few ever use them. So many programs re…