ry | 1 Nov 2009 08:44
Gravatar

Task: require URLs


For fun and to attract people to hacking Node, I'm going to
occasionally post little tasks to the mailing list.  If you do this,
please create a patch against HEAD and post it to this mailing list.
I'll wait a week for someone to do them before doing it myself :)

This task was actually already completed by Urban a long time ago!
http://groups.google.com/group/nodejs/browse_thread/thread/19f2e7aa09e91c91/b8f226bae7d94240?lnk=gst&q=attract#b8f226bae7d94240

However in during the course of development it was disabled. I would
like to bring it back along with "module.uri" which is item 3.2 on
http://wiki.commonjs.org/wiki/Modules/1.1

This is not such a difficult task, it does not require touching C++;
but it will require understanding src/node.js.

A URL to specify the main script should be supported too, so we can do
"node http://github.com/isaacs/npm/raw/master/install.js"

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "nodejs" group.
To post to this group, send email to nodejs@...
To unsubscribe from this group, send email to nodejs+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/nodejs?hl=en
-~----------~----~----~----~------~----~------~--~---

elliottcable | 1 Nov 2009 09:12

Re: node-v0.1.15


On Oct 28, 7:42 am, r...@... wrote:
> 2009.10.28, Version 0.1.15
>
>   * API: Rename node.libraryPaths to require.paths
>

Uh, not so hot on this. I’m in the middle of building a versatile
alternative to `require()`, which doesn’t follow the stupid
ServerSideJS (or whatever it is) rules… and it’s called `acquire()`.
It’d be kind of annoying to have to add paths to `require.paths()`,
when you’re using `acquire()` instead…

Not to mention that I think the former was more semantic. It’s the
paths to node libraries… so… `node.libraryPaths`… d-:
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "nodejs" group.
To post to this group, send email to nodejs@...
To unsubscribe from this group, send email to nodejs+unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/nodejs?hl=en
-~----------~----~----~----~------~----~------~--~---

Ryan Dahl | 1 Nov 2009 09:29
Picon

Re: node-v0.1.15


On Sun, Nov 1, 2009 at 9:12 AM, elliottcable
<google.com@...> wrote:
>
> On Oct 28, 7:42 am, r...@... wrote:
>> 2009.10.28, Version 0.1.15
>>
>>   * API: Rename node.libraryPaths to require.paths
>>
>
> Uh, not so hot on this. I’m in the middle of building a versatile
> alternative to `require()`, which doesn’t follow the stupid
> ServerSideJS (or whatever it is) rules… and it’s called `acquire()`.
> It’d be kind of annoying to have to add paths to `require.paths()`,
> when you’re using `acquire()` instead…
>
> Not to mention that I think the former was more semantic. It’s the
> paths to node libraries… so… `node.libraryPaths`… d-:

"require.paths" aliased as "process.paths" in g9bd2717. (I was going
to do that anyway.)

Although if you're writing your own module system, you should probably
use your own search path.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "nodejs" group.
To post to this group, send email to nodejs@...
To unsubscribe from this group, send email to nodejs+unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/nodejs?hl=en
(Continue reading)

Jérémy Lal | 1 Nov 2009 12:45
Picon
Gravatar

renaming node binary ?

Hi,
the name of the binary "node" is going to be a problem,
for us linux package management users (rpm, deb...) :
there is already a binary with that name, see [0], [1], [2].

I guess it is a good idea to name it "nodejs" or "node-js",
(node.js is a bad idea).

Regards,
Jérémy Lal

kapouer | 1 Nov 2009 12:53
Picon
Gravatar

Re: renaming node binary ?


Oops, forgot the links

[0]
http://packages.debian.org/sid/i386/node/filelist

[1]
http://packages.ubuntu.com/en/karmic/i386/node/filelist

[2]
ftp://ftp.hes.iki.fi/pub/ham/linux/ax25/

On 1 nov, 12:45, "Jérémy Lal" <holi...@...> wrote:
> Hi,
> the name of the binary "node" is going to be a problem,
> for us linux package management users (rpm, deb...) :
> there is already a binary with that name, see [0], [1], [2].
>
> I guess it is a good idea to name it "nodejs" or "node-js",
> (node.js is a bad idea).
>
> Regards,
> Jérémy Lal
>
>  signature.asc
> < 1 000AfficherTélécharger
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "nodejs" group.
To post to this group, send email to nodejs@...
To unsubscribe from this group, send email to nodejs+unsubscribe <at> googlegroups.com
(Continue reading)

ry | 1 Nov 2009 15:44
Gravatar

Re: Task: require URLs


Completed by Felix in 8fd472b

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "nodejs" group.
To post to this group, send email to nodejs@...
To unsubscribe from this group, send email to nodejs+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/nodejs?hl=en
-~----------~----~----~----~------~----~------~--~---

Felix Geisendörfer | 2 Nov 2009 00:37
Favicon
Gravatar

[PATCH] The return of absolute Module loading


Hey ryan,

I think we also lost support for absolute module loading during the
require() refactoring. This patch restores absolute module loading and
also simplifies the location lookup.

http://gist.github.com/223797

Let me know what you think,
--Felix Geisendörfer aka the_undefined
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "nodejs" group.
To post to this group, send email to nodejs@...
To unsubscribe from this group, send email to nodejs+unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/nodejs?hl=en
-~----------~----~----~----~------~----~------~--~---

Felix Geisendörfer | 2 Nov 2009 01:40
Favicon
Gravatar

Script for refactoring existing node code to new module system


Hey guys,

if you are playing with node:HEAD, here is a little script that I
wrote for refactoring my rather large node code base to be compatible
with the new require system:

https://gist.github.com/0d473971be6ce0ab860d

You may want to tweak / add to this as you see need. I was upgrading
from a "fairly" recent node version and this script is in no way
complete.

HTH,
-- Felix Geisendörfer aka the_undefined
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "nodejs" group.
To post to this group, send email to nodejs@...
To unsubscribe from this group, send email to nodejs+unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/nodejs?hl=en
-~----------~----~----~----~------~----~------~--~---

ry | 3 Nov 2009 00:14
Gravatar

Task: buffered file documentation


For fun and to attract people to hacking Node, I'm going to
occasionally post little tasks to the mailing list.  If you do this,
please create a patch against HEAD and post it to this mailing list.
I'll wait a week for someone to do them before doing it myself :)

Add a documentation to doc/api.txt about lib/file.js. It should
include some examples and outline all the functions.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "nodejs" group.
To post to this group, send email to nodejs@...
To unsubscribe from this group, send email to nodejs+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/nodejs?hl=en
-~----------~----~----~----~------~----~------~--~---

ry | 3 Nov 2009 13:56
Gravatar

node version 0.1.16


2009.11.03, Version 0.1.16

  * API: Use CommonJS-style module requiring
    - require("/sys.js") becomes require("sys")
    - require("circle.js") becomes require("./circle")
    - process.path.join() becomes require("path").join()
    - __module becomes module

  * API: Many namespacing changes
    - Move node.* into process.*
    - Move node.dns into module "dns"
    - Move node.fs into module "posix"
    - process is no longer the global object. GLOBAL is.

  For more information on the API changes see:
    http://thread.gmane.org/gmane.comp.lang.javascript.nodejs/6
    http://thread.gmane.org/gmane.comp.lang.javascript.nodejs/14

  * Feature: process.platform, process.memoryUsage()

  * Feature: promise.cancel() (Felix Geisendörfer)

  * Upgrade V8 to 1.3.18

Download: http://s3.amazonaws.com/four.livejournal/20091103/node-v0.1.16.tar.gz

Website: http://nodejs.org/

Documentation: http://nodejs.org/api.html
(Continue reading)


Gmane