bkt
参与的讨论
Who owns a Vulkan 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…
What survives a catalog reload?
A slice is an address and a length. Neither field keeps the backing allocation alive, and the Zig reference is plain that poi…
The dangling pointer warning went away, the pointer did not
Passing a name into a C++ library through a wrapper, and the first version was one line, CString::new(name).unwrap().as_ptr()…
Callbacks from C lose the arena I set up
A C library calls back into my Odin code, and the callback can't see the context I set up before registering it. A proc "c" g…
Notes on a buffer that expires at the next call
A C library hands back a pointer and a length. What's known so far. For a single-threaded call sequence the buffer is readabl…
unsafe belongs on the extern block, not the call site
Rust 2024 requires unsafe extern "C" { ... } instead of a bare extern block, and it's the most honest small syntax change the…
Adding label(Integer) breaks label(null) on rebuild
Small change, on paper. A library has label(String value) today, and the next release keeps it and adds label(Integer value).…