-
Notifications
You must be signed in to change notification settings - Fork 34
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
renaming n-api to something more appropriate and descriptive #420
Comments
Let's make it a vote with emoji. 🎉 = S-ABI 🚀 = C-API 👎🏻 = status quo |
@nodejs/n-api |
Will put on agenda of the N-API team for this Friday. |
@jasnell, the files in src are |
@mhdawson we have js_native_api.h for non-Node.js-specific APIs, so we could diverge this further into |
@gabrielschulhof I'm not quite sure I follow. The discussion is around replacing N-API in all of the docs with something else. I'm suggesting we use NODE-API to replace N-API versus the other suggestions based on the names of the include files. |
From the discussion in the team meeting,
|
No, not suggesting we rename or duplicate symbols, just do better as we go for ward from here. node_api works good as a name. |
@jasnell it sounds like what we might be able to do is:
@jasnell would that align with how you were thinking we'd address the concern? |
Fwiw, these are all problems that can be easily solved by using |
@addaleax using define was something that we discussed, from our understanding it can solve the names in the include files etc. but still leaves the symbols with the original names as what is exported by node. It would be another possibility for "partial" replacement but we wanted to understand what/how far @jasnell was suggesting we go before considering the different partial/full steps. |
@mhdawson ... Yes, that sounds good. Using the |
@mhdawson Since the N-API team has decided to move forward with this initiative, does it make sense to create a new issue on https://github.com/nodejs/abi-stable-node and organize our work there instead of continuing this issue? We could just rename #417 and pickup from there. |
If @jasnell is ok with it I can just move this issue over to the abi-stable-node repo ? |
Go for it |
As we are moving forward with this initiative, I thought I'd collect some ideas for further discussion and planning by the N-API team and others. Here are some aspects we need to consider:
|
`n-api` shall no longer be accepted as a subsystem. Instead, the accepted name for it shall be `node-api`. Refs: nodejs/abi-stable-node#420
At today's TSC meeting we concluded that, for the time being, we will replace documentation references to N-API with Node-API, stopping short of providing C preprocessor aliases for our symbols and public macros. We may make deeper changes if, after these changes, we feel that further changes are warranted. |
These are projects that facilitate the building of Node-API modules. Some of them include documentation that refers to N-API. Docs
Related Node-API Build Tools
Since I've contributed to most of the projects that need documentation updates, I will go ahead and create the necessary PRs. |
`n-api` shall no longer be accepted as a subsystem. Instead, the accepted name for it shall be `node-api`. Refs: nodejs/abi-stable-node#420
Refs: nodejs/abi-stable-node#420 PR-URL: #37259 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]>
Refs: nodejs/abi-stable-node#420 PR-URL: #37259 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]>
Should we change the blog posts we wrote for the Node.js Collections? |
@NickNaso I think we are probably ok leaving those as is. |
One last thing I see that should be fixed is the GitHub About box for https://github.com/nodejs/node-addon-api |
@jschlight - DONE |
Looks like we are done based on update from @jschlight in last Node-API team meeting, closing. |
Refs: nodejs/abi-stable-node#420 PR-URL: #37259 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]>
N-API
is a poorly selected name for the ABI-stable API for native addons. While the intent is for the name to be pronounced "En-Ay-Pee-Eye", it is most often colloquially reduced to "nappy", which -- if you're unfamiliar -- is term often used in English as a derogatory way describing the hair of black people. Aside from that, it's just not actually descriptive of what the API is for.I'd like to propose "Stable ABI" (or S-ABI for short) as an alternative. (@addaleax has suggested C-API as a viable alternative also... based on the fact that, well, "that's exactly what it is" 🤣... that would work also)
I can open a PR to update all of the references in project but wanted to determine the support. I'd rather not spend a ton of time bike-shedding alternative names.
There's been some adoption of the API in other projects so the old name certainly won't disappear entirely overnight, but renaming it here would be a great step in the right direction.
/cc @addaleax @nodejs/tsc
The text was updated successfully, but these errors were encountered: