GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [WIP] src: introduce node_bootstrap and node_process by jasnell · Pull Request #20879 · nodejs/node

Conversation

@jasnell

@jasnell jasnell commented May 22, 2018

Copy link
Copy Markdown
Member

Furthering the cause of breaking node.cc up into smaller, more manageable chunks.

This does two main things:

  1. Adds a new bootstrapper object that is used only during bootstrap to avoid having to delete and overwrite properties on process during bootstrap

  2. Moves most of the process function and property definitions to node_process.cc for better isolation.

Functionality is the same, tho there are some code cleanups along the way. This should be semver-patch.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
jasnell added 3 commits May 21, 2018 19:32
@jasnell
src: introduce node_bootstrap and node_process
cace949
This continues the reorganization of node.cc by splitting the
implementations of most process object functions and properties
out to a separate node_process.cc and creates a separate
temporary bootstrapper object used during Node.js bootstrap
to avoid the need for deleting/overwriting process properties
set during bootstrap.
@jasnell
src: cleanup SetupProcessObject code
b91694f
Various cleanups within SetupProcessObject to improve readability
@jasnell
src: move Exit into node_process
5abe91f
@nodejs-github-bot nodejs-github-bot added the lib / src Issues and PRs involving general changes in the lib/ or src/ directories. label May 22, 2018
@jasnell
jasnell requested a review from addaleax May 22, 2018 02:39
@trivikr trivikr added the c++ Issues and PRs that require attention from people who are familiar with C++. label May 22, 2018
targos
targos approved these changes May 22, 2018
View reviewed changes

@targos targos left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JS changes LGTM.
Rubber stamp LGTM on C++ changes, assuming it's mostly cut and paste.
Big +1 on reducing the number of lines in node.cc!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@targos

targos commented May 22, 2018

Copy link
Copy Markdown
Member

CI: https://ci.nodejs.org/job/node-test-pull-request/15011/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@addaleax

addaleax commented May 22, 2018

Copy link
Copy Markdown
Member

Can we do this in smaller chunks, more slowly? Landing a patch this size is going to be a major source of conflicts, and not just with things like #20876…

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jasnell

jasnell commented May 22, 2018

Copy link
Copy Markdown
Member Author

Yeah, splitting it up is possible but will take awhile longer. I'd like to get agreement on this path before staring to do that. :)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jasnell

jasnell commented May 23, 2018

Copy link
Copy Markdown
Member Author

@addaleax ... before I start splitting this up, can I ask you to give me a better sense for how it should be split up so the effort will have the least dramatic impact on what you're working on with the Workers stuff.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jasnell jasnell mentioned this pull request May 23, 2018
src: refactor bootstrap to use bootstrap object #20917
Closed
2 tasks done
@jasnell

jasnell commented May 23, 2018

Copy link
Copy Markdown
Member Author

Starting to break things up a bit: #20917

devsnek reacted with hooray emoji
All reactions
  • 🎉 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@addaleax

addaleax commented May 24, 2018

Copy link
Copy Markdown
Member

@jasnell Yes, that smaller PR looks better with regard to conflicts :)

In general, the easiest thing to check for how much "conflict potential" there is would be applying on PRs on top of the other… taking it in small chunks is definitely the right approach here

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jasnell jasnell added the wip Issues and PRs that are still a work in progress. label May 24, 2018
@jasnell jasnell changed the title src: introduce node_bootstrap and node_process [WIP] src: introduce node_bootstrap and node_process May 24, 2018
@jasnell jasnell closed this May 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@addaleax addaleax Awaiting requested review from addaleax
1 more reviewer
@targos targos targos approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs involving general changes in the lib/ or src/ directories. wip Issues and PRs that are still a work in progress.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@jasnell @targos @addaleax @trivikr @nodejs-github-bot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.