Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
8dcc
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
Understanding the FAT File System
(8dcc.github.io)
5 points
by
8dcc
2y ago
|
0 comments
2.
▲
The Pros and Cons of Cons
(8dcc.github.io)
3 points
by
8dcc
2y ago
|
0 comments
3.
▲
by
8dcc
2y ago
> I would do exactly the dual: the chunk's size should be defined at pool creation, so that you can create multiple pools, each dedicated to one specific kind of object. This is supported in my 'libpool' project. I thought
4.
▲
by
8dcc
2y ago
I am not sure what you mean, exactly. There are some other valgrind macros that need to be called for pointers other than the ones returned by 'malloc'. More importantly, the memory regions need to be marked as 'NOACCESS'
5.
▲
by
8dcc
2y ago
You are right, sorry about that. I fixed it on the most recent commit (73526e0).
6.
▲
by
8dcc
2y ago
> I thought the whole point of writing a custom allocator was to not use the system allocator beyond statically allocating a huge block of memory upfront and then managing that yourself, is it not? Yes, that's what the article is ba
7.
▲
by
8dcc
2y ago
(In case you missed my other post, I ended up adding valgrind support in the article and in the 'libpool' project.) > I integrated the TXR Lisp garbage collector with valgrind. That's funny, because when I said "for o
8.
▲
by
8dcc
2y ago
Actually, I have one question. You said: > The actual benchmark program itself can be as simple as allocating and deallocating in a loop [...] What do you mean, exactly? Deallocating immediately after allocating? I feel like there would
9.
▲
by
8dcc
2y ago
Wow. This is probably the best comment I have ever seen on HN. Thank you so much for the information, I will add benchmarking to my 'libpool' project and mention it in the article. I can't think of any questions right now, bu
10.
▲
by
8dcc
2y ago
Yes, you are right. Do you have any suggestions on how I should do the benchmarking? I am not sure how this is usually done, but if the output is some kind of graph, I would also like to know how these graphs are usually produced.
11.
▲
by
8dcc
2y ago
> The diagrams in particular are very clear. (They seem to have been done in draw.io: https://github.com/8dcc/8dcc.github.io/blob/main/img/pool-al ... which seems to be a pretty decent Apache-2.0
12.
▲
by
8dcc
2y ago
Hello, I am the author. Thank you all for the instructive comments, I made some changes to the article since I first posted it: - Added a link to this HN post. - Renamed some variables and types in the code for readability. - Mention (in a
13.
▲
by
8dcc
2y ago
Thank you so much! I will definitely check it out. I also planned on writing an article about arena allocators soon.
14.
▲
by
8dcc
2y ago
I have never heard about this (using valgrind with a "non-standard allocator"), but it looks really interesting, specially for other projects I am working on. I will definitely look into it.
15.
▲
by
8dcc
2y ago
I don't currently have much experience with thread safety, but it's something I should look into. Thank you.
16.
▲
by
8dcc
2y ago
I will also take note of this, you are right.
17.
▲
by
8dcc
2y ago
Yes, this is true. I didn't use that in the code because I thought it would make it less readable, though. I might mention it somewhere, thank you.
18.
▲
Writing a simple pool allocator in C
(8dcc.github.io)
307 points
by
8dcc
2y ago
|
143 comments
19.
▲
by
8dcc
2y ago
Some months ago, before a GitHub update, you could just paste an image while editing a Markdown file and it would be uploaded to their CDN. You could use that link even in other files (e.g. Org files in my case). They changed their upload s
20.
▲
by
8dcc
2y ago
> There are often bright spots in these kinds of visuals that you end up seeing over and over again (e.g. clusters of ASCII). Indeed, this is specially true in the "bigrams" mode, where each point (X,Y) is set if the bytes X an
21.
▲
by
8dcc
2y ago
I added them after reading these replies, yes. I usually don't add screenshots because I don't like adding images to the git repository (people don't really want to clone that), and I don't want to use an external CDN fo
22.
▲
by
8dcc
2y ago
My project was inspired by Cortesi's blog posts, among other things. I thought binary visualization could be useful for reverse engineering, a fun thing to program, so I did. I wanted to share it in case someone was interested in the c
23.
▲
by
8dcc
2y ago
I added screenshots to the README.
24.
▲
Show HN: Bin-graph: Visualize binary files
(github.com)
57 points
by
8dcc
2y ago
|
17 comments
25.
▲
Implementing the modulus operator for floating-point numbers
(8dcc.github.io)
2 points
by
8dcc
2y ago
|
0 comments