Live data from Hacker News

Viewing profile — danbruc

danbruc

HN member
Joined
Sat, Oct 13, 2012, 12:39 PM UTC
HN karma
9,620
Public activity
4,183 items

About danbruc

No profile information was provided.

Recent public activity

  1. comment
    Comment #49173170

    Just run a full-text search on the old value. How often does 10 appear in the code base? And is the value you are looking for even 10 or does only the UI show 10 points but in code…

  2. comment
    Comment #49170795

    I suspect adrian_b is talking about a scenario where a rouge thread essentially writes random garbage to random addresses in the address space.

  3. comment
    Comment #49170529

    About what scenario are you actually talking? Are all threads using the read() and write() functions of the shared data structure? In that case it is absolutely possible for reader…

  4. comment
    Comment #49170356

    [...] because if a writer enters an infinite loop while writing the shared data, that will stop progress in any other algorithm [...] Even if you have while (true) { sharedData.wri…

  5. comment
    Comment #49170169

    No, such algorithms exist and they use various mechanisms to achieve this. For larger data structures a common trick is to make a copy, update the copy, and then replace the origin…

  6. comment
    Comment #49169965

    Not true, a wait-free algorithm guarantees that a read will complete in a bounded amount of time. And it guarantees that all threads make progress, it is lock-free that only guaran…

  7. comment
    Comment #49169898

    [...] then the readers will spin forever waiting for the counter to become even again.

  8. comment
    Comment #49169881

    Obstruction-free, lock-free, and wait-free are increasingly strong guarantees for non-blocking synchronization mechanisms. A sequence lock is a blocking synchronization mechanism a…

  9. comment
    Comment #49168283

    A common approach to mitigating the described data race without using blocking locks is to utilize a sequence lock. A sequence lock is a blocking lock. If the writer dies between t…

  10. comment
    Comment #49166866

    Updating a constant versus a config parameter isn’t all that different if the build is fast. Not even remotely true except that in both cases you change a number in some text file.…

  11. comment
    Comment #49161412

    Is any of the raw datasets of such an experiment available? I would like to see a scatter plot of self-assesed score vs actual score instead of the data aggregated into four bins.

  12. comment
    Comment #49138428

    Ohh, you mean when the CIA supported a coup d'état in Iran? No, sorry, that was 73 years ago. When the USA supported Iraq in attacking Iran including the use of chemical weapons in…

  13. comment
    Comment #49127654

    Another fun fact - heavy water has a sweet taste.

  14. comment
    Comment #49126996

    33M vertices and 1B edges easily fits into memory, if you use 32 bit integers, it will require about 4 GiB of memory. Out of curiosity I just implemented generating a random graph …

  15. comment
    Comment #49120912

    Instead of the CDF I like to use one minus the CDF, the fraction of requests not yet completed at any given time. Then you can make it a log log plot showing the entire tail with d…

  16. comment
    Comment #49115740

    Don't get me wrong, a function doing five things is bad. I consider code not good if you write if(condition) instead of if (condition) or a +b instead of a + b. Not that it is real…

  17. comment
    Comment #49112745

    I did not mean it as a metric but as an indicator what was wrong with the code. - the code is essentially good but all is in one file, you split it up, lines of code stay the same …

  18. comment
    Comment #49112113

    Interesting that the amount of code remained essentially unchanged. In my experience it is not unusual that refactoring messy code cuts the number of lines in half.

  19. comment
    Comment #49111531

    To add to this. - allow drawing wires backwards from sink to source - allow connecting inputs Also there is a problem with the tests and the simulator that showed up in the SR latc…

  20. comment
    Comment #49102223

    No, correct post. But maybe I am misunderstanding the idea behind the post, that is certainly possible.

  21. comment
    Comment #49101985

    This reminds me somewhat of OLE, COM, DCOM, ActiveX, ... [1]. You can paste an Excel chart into a Word document and if you update the data in Excel, the chart in Word will update. …

  22. comment
    Comment #49095553

    Not the author, but this prevents leaking all URLs you are visiting to agolia. Instead of asking Was this URL submitted to Hacker News? you ask Which URLs have been submitted to He…

  23. comment
    Comment #49087007

    There are 120 monomials of degree at most 7 in three variables. If we restrict the coefficients to the integers from -10 to +10, that makes 21^120 possible polynomials. And we need…

  24. comment
    Comment #49081812

    You do exactly the same in a monolith, functionality is broken into modules with a public API and you can switch out the implementation at any time if you want or have to.

  25. comment
    Comment #49080328

    We do not want to ban using those models, we want to ban the things that enable those models to exist.