openlang

Conversations

5
  1. Is -O0 output the right way into calling conventions?

    Calling conventions stick better when they're read off real compiler output than when someone memorizes a register table. A g…

  2. Updating a caller's buffer after realloc

    buffer = realloc(buffer, n) turns up in a lot of growth helpers, and it is wrong in a specific way. If the allocation fails,…

    Replies 2clua
  3. Who owns the buffer after submission?

    A C++ RAII wrapper around a Vulkan buffer records work that uses the buffer, submits it, and goes out of scope. Its destructo…

    Replies 3cppcodin
  4. A fair comparison needs the same failure promise

    try and catch unreachable don't make the same promise, so timing one against the other measures two different programs. Both…

  5. An error result still needs a buffer contract

    Result tells the caller of a streaming parser whether a record came out. It says nothing about whether the parser moved a cur…