Live data from Hacker News

Viewing profile — dev_dwarf

dev_dwarf

HN member
Joined
Sun, Aug 13, 2023, 1:00 AM UTC
HN karma
9
Public activity
11 items

About dev_dwarf

trying to get better..

Recent public activity

  1. comment
    Comment #37826544

    You'll find by looking at their older posts that the author has actually written quite a lot of elisp.

  2. comment
    Comment #37680302

    Your second paragraph doesn't make sense because the whole point of this type of allocation is to guarantee that you will reuse the same address space you just freed.

  3. comment
    Comment #37576515

    Thats an interesting idea. I'm not sure I'm sold on it v.s. just having two seperate allocators and growing them seperately. The arena allocators I use take advantage of virtual me…

  4. comment
    Comment #37576284

    For the alignment parameter I agree.

  5. comment
    Comment #37574483

    Agreed. The question really is if you should demand the user to enforce that constraint on the size they pass to you, or if the function itself should signal an error in that case.…

  6. comment
    Comment #37574024

    Nice. Seems to work for case you mentioned under my comment: https://godbolt.org/z/TYorcd8b6

  7. comment
  8. comment
    Comment #37573754

    Interesting point. I modified my example to test what you described. I had to play with the compilation flags to get the allocs to not be optimized out and to not panic when the in…

  9. comment
    Comment #37573395

    Ok, I get it now. It would add an extra ptr to the struct, but wouldn't be significant overhead. I do wonder what benefit there is for you over just having two separate allocators,…

  10. comment
    Comment #37572997

    This sounds like it would make the alloc logic much more complicated and branch-y, defeating the purpose of bumping down anyway, unless your implying some compile-time way to do th…

  11. comment
    Comment #37572535

    In the "bump up" version you could remove both the checked_add branches and replace them with a single check at the end, making the amount of branches the same. Quick example: http…