Skip to content
This repository has been archived by the owner on Mar 25, 2018. It is now read-only.

First Steps #15

Open
mikeal opened this issue May 12, 2015 · 8 comments
Open

First Steps #15

mikeal opened this issue May 12, 2015 · 8 comments

Comments

@mikeal
Copy link
Contributor

mikeal commented May 12, 2015

It's time to start thinking about things we can implement today that set us up for some of the bigger ideas we've been talking about in this repo. After a nice lunch with @piscisaureus and @jasnell these two materialized as obvious requirements.

  • Support and implement localized installs of node.
  • Implement import w/o any stdlib.

Localized installations of node are going to help us move faster in general and make it much easier for people to build applications that use new experiments without overwriting their global install.

Supporting the import syntax is obviously going to be part of a future platform. We should probably put this behind a flag at first. import should not expose any of the current stdlib, that should only be accessible through require() but having native import w/o a stdlib opens up the possibility of people experimenting with and writing new possible stdlib modules in the ecosystem.

Thoughts?

@domenic
Copy link

domenic commented May 12, 2015

Import isn't implemented in V8, so, unsure how you anticipate that experiment working.

@mikeal
Copy link
Contributor Author

mikeal commented May 12, 2015

@domenic how is that gonna work btw. Obviously it needs to be in the vm but what it gets connected to will be totally different in node.js than the browser.

@domenic
Copy link

domenic commented May 12, 2015

@ajklein can probably say more but my understanding is that parsing will be implemented in V8 but loading etc. will be implemented by the embedder. Not sure of the exact hooks in terms of the V8 API.

@chrisdickinson
Copy link

Support and implement localized installs of node.

To be clear: "localized" as in i18n, or "localized" as in "node's virtualenv"?

@mikeal
Copy link
Contributor Author

mikeal commented May 12, 2015

I wouldn't use the term "virtualenv" but yet :)

@chrisdickinson
Copy link

Ah – are we talking about devoting time to getting this issue rolled into npm?

@mikeal
Copy link
Contributor Author

mikeal commented May 12, 2015

@chrisdickinson that's one option, or maybe it's as simple as this https://github.com/mikeal/nstall I whipped up a quick proof-of-concept installer.

@jasnell
Copy link
Member

jasnell commented May 12, 2015

The i18n localization stuff will come soon enough ;-) I've already implemented a good portion of it, just holding a bit to work on landing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants