Viewing profile — fruneau
fruneau
HN member- Joined
- Sat, Jul 13, 2013, 7:05 PM UTC
- HN karma
- 471
- Public activity
- 33 items
- HN profile
- View on Hacker News ↗
About fruneau
Recent public activity
- story
-
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…
-
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…
-
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…
-
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…
-
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.
- story
-
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…
- story
- story
- story
- story
-
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.
-
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…
- story
-
comment
Comment #6484678
Clearly, we go back to the initial statement: for specific use cases, we need specific allocators.
-
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…
-
comment
Comment #6481030
alloca has its drawbacks. See the previous article in the series: https://techtalk.intersec.com/2013/08/memory-part-3-managing...
-
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.…
-
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.
-
comment
Comment #6478338
jemalloc 3.4.0 (current package in debian sid)
-
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 …
-
comment
Comment #6476484
These allocators are based on mmap to build the arenas.
-
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.
-
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…