-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Native Interface (NI) #1
Comments
This is the kind of proposal I was thinking my proposal from #4 would merge into well (doesn't replace the whole thing, of course, but that was never my intent). Incidentally, the building blocks are really quite minimal:
Everything else can be implemented on top of these. We should definitely provide a lot of shortcuts, but these are the most core pieces. I really think we should avoid our type-specific implementations becoming public API again. If you want to add two values, call the general "add" function and let it figure out that |
To meet this requirement, the NI layer should use concrete types (e.g. See #3 and capi-workgroup/api-evolution#29 |
You should first explain why you call it "Native Interface" and what that implies. |
Let's add a brand new API layer called the Native Interface (NI) that is:
Then, let's build a C-API layer on top of that, as one of many possible layers: things like Cython, PyO3,
ctypes.pythonapi
would act as alternatives to C-API (and reimplement it).The C-API layer would implement the current C-API (Limited API at first), and would consist of
The text was updated successfully, but these errors were encountered: