Reading List
Improving the Usability of C Libraries in Swift from Michael Tsai RSS feed.
Improving the Usability of C Libraries in Swift
Doug Gregor: The Swift code above has a very “C” feel to it. It has global function calls with prefixed names like wgpuInstanceCreateSurface and global integer constants like WGPUStatus_Error. It pervasively uses unsafe pointers, some of which are managed with explicit reference counting, where the user provides calls to wpuXYZAddRef and wgpuXYZRelease functions. It works, […]