openlang

Interoperability and FFI

What has to cross a language boundary besides a function name.

  1. Notes on a buffer that expires at the next call

    Assume a hypothetical C library returns a pointer and a length. For a single-threaded call sequence, its buffer is readable a…