Rusty C-API bindings

Issue #3 new
Devin Jeanpierre
repo owner created an issue

Want to have C-API bindings that don't use raw pointers, and instead automatically INCREF/DECREF when copied/destroyed.

Possibilities:

  • Is there a way to define copyable unique pointers with a copy constructor and with a finalizer?
  • Is there a way to define our own pointer type that uses the Python GC?
  • Can we get away with using borrowed pointers?
  • Is it really that bad to have a nondeterministic DECREF like if we use shared pointers? (probably really bad, yes.)