GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||
GeezerVison is showing github.com — src: add context-aware helpers and init macro by gabrielschulhof · Pull Request #21318 · nodejs/node Conversation
Contributor
Introduces macro Also introduces class Together, these APIs allow one to avoid using global static data in Re: #21291 (comment) Checklist
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Collaborator
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
gabrielschulhof
force-pushed
the
node-addon-init
branch
2 times, most recently
from
e292f6d to
f25f30b
Compare
addaleax
reviewed
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wouldn’t be a fan of including this in our public API, unless there’s a reason why we would export it from core We originally had more core of this sort around (e.g.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing final backtick and period?
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should the first letter case be unified in this list?
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
gabrielschulhof
force-pushed
the
node-addon-init
branch
from
e83beeb to
0f7d65d
Compare
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
gabrielschulhof
force-pushed
the
node-addon-init
branch
2 times, most recently
from
237c4f3 to
ac20ee3
Compare
jasnell
reviewed
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: "When building addons with..."
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yep, I let that one slip :) Thanks!
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
gabrielschulhof
force-pushed
the
node-addon-init
branch
from
ac20ee3 to
49360b2
Compare
jasnell
approved these changes
gabrielschulhof
force-pushed
the
node-addon-init
branch
from
49360b2 to
6b68df1
Compare
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
|
Do you refer this sentence?
I read it as "One Collaborator is the PR author, another Collaborator is a reviewer". |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I don't read it that way, because I know that the PR's author may not
approve. Therefore, since all PRs need at least one approver, and a
Collaborator's PR needs and additional approver, I conclude that a
Collaborator's PR needs to approvers. Still, it should maybe state
explicitly that a Collaborator's PR needs the approver of two Collaborators.
…On Wed, Jun 27, 2018 at 10:29 AM, Vse Mozhet Byt ***@***.***> wrote:
Do you refer this sentence?
In the case of pull requests proposed by an existing Collaborator, an
additional Collaborator is required for sign-off.
I read it as "One Collaborator is the PR author, another Collaborator is a
reviewer".
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#21318 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AA7k0YUDmU2AqXPuk33Qw_GV-exV3InLks5uA5awgaJpZM4UmriR>
.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Let's see how others understand this. It seems we have a bit confusing wording here. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This does not need a second reviewer, although I would try pinging a relevant team or two before landing, just to get a second one. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@nodejs/collaborators in the spirit of #21565 (comment), could somebody else please have a look? 🙂 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Aww, the dreaded mention. P.S. I'll take a look :) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Can you please articulate what could be those cases?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
@mcollina how about the new paragraph I added?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
That’s perfect!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but if I were you, I'd wait for @addaleax's review.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@addaleax could you please take another look? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Introduces macro `NODE_MODULE_INIT()` which creates the boilerplate for a context-aware module which can be loaded multiple times via the special symbol mechanism. Additionally, provides an example of using the new macro to construct an addon which stores per-addon-instance data in a heap-allocated structure that gets passed to each binding, rather than in a collection of global static variables. Re: nodejs#21291 (comment)
f81217c to
9402ca1
Compare
|
Rebased and added doc for |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
New CI: https://ci.nodejs.org/job/node-test-pull-request/15716/ |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Landed in 602da64. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Introduces macros `NODE_MODULE_INITIALIZER` which expands to the name of the special symbol that process.dlopen() will look for to initialize an addon, and `NODE_MODULE_INIT()` which creates the boilerplate for a context-aware module which can be loaded multiple times via the special symbol mechanism. Additionally, provides an example of using the new macro to construct an addon which stores per-addon-instance data in a heap-allocated structure that gets passed to each binding, rather than in a collection of global static variables. Re: nodejs#21291 (comment) PR-URL: nodejs#21318 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ujjwal Sharma <[email protected]>
There was an error while loading. Please reload this page.
|
CI was not green. I think we need stronger wording in our docs about not landing stuff when CI is not green. I'll open a PR for that right now. If you have a mostly-green node-test-pull-request, you're fairly certain the not-green stuff isn't relevant to your changes, and you want to re-run just the things that aren't green, use "Resume Build" on the left menu. It will create a new node-test-pull-request, copy over all the green stuff, and only re-run the red/yellow/grey stuff.
EDIT: Can't re-run CI because the branch has been deleted. So in lieu of that, here's a node-daily-master run manually kicked off to re-test this: https://ci.nodejs.org/job/node-daily-master/1203/ |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@Trott sorry about that! One job failed on what looked like an infra issue (unable to create a directory). Using "Resume Build" is an awesome option! I didn't know about it. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Sorry, didn't mean to pick on you! No need to apologize. You're far from alone. I'm just trying to spread the word about Resume Build. :-D (I didn't know about it until someone else on Build showed it to me...I think it was @refack.) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Introduces macros `NODE_MODULE_INITIALIZER` which expands to the name of the special symbol that process.dlopen() will look for to initialize an addon, and `NODE_MODULE_INIT()` which creates the boilerplate for a context-aware module which can be loaded multiple times via the special symbol mechanism. Additionally, provides an example of using the new macro to construct an addon which stores per-addon-instance data in a heap-allocated structure that gets passed to each binding, rather than in a collection of global static variables. Re: #21291 (comment) PR-URL: #21318 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ujjwal Sharma <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.