Internals3 days ago
The tcc_ffi Object Is a Recipe | Code Generation Is Central | How Values Move Between R, The Wrapper, And C | Copying Versus Borrowing Happens In The Wrapper | Internal Rule Dispatch | Wrapper Builders Work at the SEXP Boundary | Protection And Lifetime Rules Matter | Ownership And Lifetime Semantics In The Main Cases | Call-scoped borrows from R objects | Owned native allocations | Borrowed native views | Returned R objects | Callback registry lifetime | Compiled object lifetime | Host Symbol Injection Happens Before Relocation | Callback Round-Trips Cross The Boundary Twice | State Creation Is Separate from Compilation | The Compiled Object Is an Environment of Closures | Serialization Works by Recompiling the Recipe | Where To Read Next