Live data from Hacker News

Viewing profile — fruneau

fruneau

HN member
Joined
Sat, Jul 13, 2013, 7:05 PM UTC
HN karma
471
Public activity
33 items

About fruneau

[ my public key: https://keybase.io/florentbruneau; my proof: https://keybase.io/florentbruneau/sigs/sSnUztkO7yw1KmB6PbjZI1-37dvEeYa4WZBUpuwB7sU ]

Recent public activity

  1. story
  2. comment
    Comment #8645286

    Extensions are how new features come to an established language... C11 standard mostly standardised stuff that was already supported as extension by most compilers. Most of the tim…

  3. comment
    Comment #8645263

    Three main reasons for this. First, we originally chose the C language because it is much much simpler. One can master the language without too much pain, and you end up having muc…

  4. comment
    Comment #8643432

    Some already tried: http://anzwix.com/a/FreeBSD/GccAddSupportForApplesBlockExten... http://gcc.1065356.n5.nabble.com/RFC-Apple-Blocks-extension-... I'm not aware of any attempt tha…

  5. comment
    Comment #8643407

    Thanks. That said, I'm not sure the amount of effort is that huge: having a working rewriter was a matter of days, which makes it far less expensive than rewriting a codebase of se…

  6. comment
    Comment #8643393

    Languages such as Go, Rust or Swift aim to fill that gap, but in 2010 they were either nascent or simply inexistent.

  7. story
  8. comment
    Comment #8379956

    There's a moment when you realise you should avoid allocations because you discover that allocations are expensive. Then you also realise at some point that you cannot avoid some a…

  9. story
  10. story
  11. story
  12. story
  13. comment
    Comment #6949775

    Moreover, I think that some answers are not doing what we should expect from the subject. For example the "Detect Multiple Of Two" detects powers of two, not multiples.

  14. comment
    Comment #6906135

    I do agree. That ASan part of the article starts with the following sentence: "The tradeoff however is that ASan won’t detect errors such as uses of uninitialized variables or leak…

  15. story
  16. comment
    Comment #6484678

    Clearly, we go back to the initial statement: for specific use cases, we need specific allocators.

  17. comment
    Comment #6481047

    There are two main issues with alloca: first you cannot deallocate or reallocate the memory, you just append more data to your frame. As a consequence, it is not suitable for dynam…

  18. comment
    Comment #6481030

    alloca has its drawbacks. See the previous article in the series: https://techtalk.intersec.com/2013/08/memory-part-3-managing...

  19. comment
    Comment #6481022

    I admit that test stress some corner cases (at least some cases that the allocator designer consider as corner cases). That said, malloc has no choice but supporting that use case.…

  20. comment
    Comment #6478408

    The diff is a truncation. The actual error rate is 0.5ms on average. By using a round instead of truncation, we can reduce the error to 0.25ms on average.

  21. comment
    Comment #6478338

    jemalloc 3.4.0 (current package in debian sid)

  22. comment
    Comment #6478162

    PHP is used as a small layer that enables talking to our C code from javascript. We have a custom (Protocol Buffer-like) protocol to manage our RPC, the PHP embeds a native module …

  23. comment
    Comment #6476484

    These allocators are based on mmap to build the arenas.

  24. comment
    Comment #6476271

    I'll consider writing a more detailed article on the subject. Open-sourcing the code will not be possible in the short-term.

  25. comment
    Comment #6475810

    The objective of the article wasn't to stress the specific case of the 8-bytes allocation pattern, it was about showing that malloc behavior depends on the context. The size of 8 b…