2

Are there any best practices for binding C-librarys to a higher level language?
Like, regarding Concurrency-Safety, memory-safety, general fault-tolerance, glue-datastructures with low overhead?

Comments
  • 0
    Most of the time the language provides all the necessary primitives if you're using it's runtime library. If you're straight up using pure c via ffi then the standard is integrating the "problems" of C into the accompanying library in the target language, not the other way round... I.e. Java wrapper libs around low level stuff expose pointers in safe objects that track their lifetime and which often also do have allocate() and free() methods
Add Comment