[nodejs] [ANN] promise-stream: Turn a stream into a commonJS promise

2012-10-02 Thread Raynos
https://github.com/Raynos/promise-stream

If you want to turn a stream into a promise you can.

This mainly illustrates how streams and promises are similar for those that 
like promises.

It also shows a comparison between how you flow async code through promises 
and streams

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Re: [ANN]: Deferred - Maintainable asynchronous JavaScript with promises

2012-10-02 Thread Jake Verbaten
domains have a parallel to sync code. Use event emitters for your sync
flow. promises only have a parallel to sync code if you use promises for
sync & async code.

On Tue, Oct 2, 2012 at 7:28 PM, Domenic Denicola <
dome...@domenicdenicola.com> wrote:

> I forgot to add, this is especially important in Node, where promises
> solve the entire uncaught-exception-in-callbacks problem if used
> consistently throughout an app. An exception in a very deeply-nested
> promise callback simply transforms that innermost promise into a rejected
> promise, which then propagates up the chain to the closest rejection
> handler (just like sync exceptions!). This is unlike the situation with
> callbacks, where an exception in a deeply-nested callback jumps immediately
> out to process.on("uncaughtException").
>
> Notably this uncaught exception jumping is the problem domains attempt to
> solve; they do so in the majority of cases, when all your asynchronicity
> eventually comes from the EventEmitters that domains hook into, at the cost
> of introducing an abstraction that---unlike promises---has no parallel to
> sync code.
>
> But yeah, since jQuery doesn't translate exceptions into rejections, this
> entire benefit is lost and you're back in traditional callback land, where
> an exception inside a callback jumps all the way back up to window.onerror.
>
>
>
> On Tuesday, October 2, 2012 10:18:42 PM UTC-4, Domenic Denicola wrote:
>>
>> jQuery promises also aren't interoperable with other promise-consuming
>> libraries, because they do not transform errors thrown in callbacks into
>> rejection reasons, violating Promises/A. So e.g.
>>
>> function doOperationAndDontGiveUp(**operation) {
>> return operation().then(null, function (error) {
>> if (error instanceof TemporaryNetworkError) {
>> return doOperationAndDontGiveUp(**operation);
>> }
>> throw error;
>> });
>> }
>>
>> doOperationAndDontGiveUp(**whatever).then(console.log, function (error) {
>>console.log("A non-temporary error: ", error);
>> });
>>
>> will not work, because you can't re-throw errors in jQuery to stay in a
>> rejected state; the error will end up uncaught by any handlers except
>> window.onerror/process.on("**uncaughtException"), and so the rejection
>> handler will never be called.
>>
>> There's also the issue where jQuery promises can be resolved with
>> multiple values, which other libraries cannot consume.
>>
>> You're better off using a different promise library, like Kris Kowal and
>> myself's Q, or Mariusz's deferred, or When, in both the browser and the
>> server, and immediately converting any jQuery promises to real Promises/A
>> promises using e.g. Q.when(jQueryPromise).
>>
>>
>> On Tuesday, October 2, 2012 12:01:03 PM UTC-4, Jeff Barczewski wrote:
>>>
>>> Mariusz,
>>>
>>> I was using an old version of your deferred module, Deferred@0.1.1which was 
>>> API compatible with jQuery.
>>>
>>> I guess for upgrading many things have changed since then:
>>>
>>>  - .promise() becomes .promise
>>>  - Deferred.when()  - I will have to create my own, right?
>>>
>>> Anything else that you remember which will need to change? (I know this
>>> was a long time ago when you changed it so not a big deal if you don't
>>> remember)
>>>
>>>
>>> If I want to keep the jQuery.Deferred style API (for consistency on all
>>> client and server code) but use your latest module, then I guess I need to
>>> create some light adapters which will use your api under the covers.
>>>
>>> If you have any other ideas or thoughts on this let me know.
>>>
>>> Thanks in advance!
>>>
>>> Jeff
>>>
>>>
>>>  --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


[nodejs] Re: [ANN]: Deferred - Maintainable asynchronous JavaScript with promises

2012-10-02 Thread Domenic Denicola
I forgot to add, this is especially important in Node, where promises solve 
the entire uncaught-exception-in-callbacks problem if used consistently 
throughout an app. An exception in a very deeply-nested promise callback 
simply transforms that innermost promise into a rejected promise, which 
then propagates up the chain to the closest rejection handler (just like 
sync exceptions!). This is unlike the situation with callbacks, where an 
exception in a deeply-nested callback jumps immediately out to 
process.on("uncaughtException").

Notably this uncaught exception jumping is the problem domains attempt to 
solve; they do so in the majority of cases, when all your asynchronicity 
eventually comes from the EventEmitters that domains hook into, at the cost 
of introducing an abstraction that---unlike promises---has no parallel to 
sync code.

But yeah, since jQuery doesn't translate exceptions into rejections, this 
entire benefit is lost and you're back in traditional callback land, where 
an exception inside a callback jumps all the way back up to window.onerror.


On Tuesday, October 2, 2012 10:18:42 PM UTC-4, Domenic Denicola wrote:
>
> jQuery promises also aren't interoperable with other promise-consuming 
> libraries, because they do not transform errors thrown in callbacks into 
> rejection reasons, violating Promises/A. So e.g.
>
> function doOperationAndDontGiveUp(operation) {
> return operation().then(null, function (error) {
> if (error instanceof TemporaryNetworkError) {
> return doOperationAndDontGiveUp(operation);
> }
> throw error;
> });
> }
>
> doOperationAndDontGiveUp(whatever).then(console.log, function (error) {
>console.log("A non-temporary error: ", error);
> });
>
> will not work, because you can't re-throw errors in jQuery to stay in a 
> rejected state; the error will end up uncaught by any handlers except 
> window.onerror/process.on("uncaughtException"), and so the rejection 
> handler will never be called.
>
> There's also the issue where jQuery promises can be resolved with multiple 
> values, which other libraries cannot consume.
>
> You're better off using a different promise library, like Kris Kowal and 
> myself's Q, or Mariusz's deferred, or When, in both the browser and the 
> server, and immediately converting any jQuery promises to real Promises/A 
> promises using e.g. Q.when(jQueryPromise).
>
>
> On Tuesday, October 2, 2012 12:01:03 PM UTC-4, Jeff Barczewski wrote:
>>
>> Mariusz,
>>
>> I was using an old version of your deferred module, Deferred@0.1.1 which 
>> was API compatible with jQuery.
>>
>> I guess for upgrading many things have changed since then:
>>
>>  - .promise() becomes .promise
>>  - Deferred.when()  - I will have to create my own, right?
>>
>> Anything else that you remember which will need to change? (I know this 
>> was a long time ago when you changed it so not a big deal if you don't 
>> remember)
>>
>>
>> If I want to keep the jQuery.Deferred style API (for consistency on all 
>> client and server code) but use your latest module, then I guess I need to 
>> create some light adapters which will use your api under the covers.
>>
>> If you have any other ideas or thoughts on this let me know.
>>
>> Thanks in advance!
>>
>> Jeff
>>
>>
>>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


[nodejs] Re: [ANN]: Deferred - Maintainable asynchronous JavaScript with promises

2012-10-02 Thread Domenic Denicola
jQuery promises also aren't interoperable with other promise-consuming 
libraries, because they do not transform errors thrown in callbacks into 
rejection reasons, violating Promises/A. So e.g.

function doOperationAndDontGiveUp(operation) {
return operation().then(null, function (error) {
if (error instanceof TemporaryNetworkError) {
return doOperationAndDontGiveUp(operation);
}
throw error;
});
}

doOperationAndDontGiveUp(whatever).then(console.log, function (error) {
   console.log("A non-temporary error: ", error);
});

will not work, because you can't re-throw errors in jQuery to stay in a 
rejected state; the error will end up uncaught by any handlers except 
window.onerror/process.on("uncaughtException"), and so the rejection 
handler will never be called.

There's also the issue where jQuery promises can be resolved with multiple 
values, which other libraries cannot consume.

You're better off using a different promise library, like Kris Kowal and 
myself's Q, or Mariusz's deferred, or When, in both the browser and the 
server, and immediately converting any jQuery promises to real Promises/A 
promises using e.g. Q.when(jQueryPromise).


On Tuesday, October 2, 2012 12:01:03 PM UTC-4, Jeff Barczewski wrote:
>
> Mariusz,
>
> I was using an old version of your deferred module, Deferred@0.1.1 which 
> was API compatible with jQuery.
>
> I guess for upgrading many things have changed since then:
>
>  - .promise() becomes .promise
>  - Deferred.when()  - I will have to create my own, right?
>
> Anything else that you remember which will need to change? (I know this 
> was a long time ago when you changed it so not a big deal if you don't 
> remember)
>
>
> If I want to keep the jQuery.Deferred style API (for consistency on all 
> client and server code) but use your latest module, then I guess I need to 
> create some light adapters which will use your api under the covers.
>
> If you have any other ideas or thoughts on this let me know.
>
> Thanks in advance!
>
> Jeff
>
>
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Re: What Editor / OS / Dev enviroment do you use?

2012-10-02 Thread Thomas Shinnick
Y'no, he could be Occitanian and just saying 'later', or are you going to 
take offense at signoffs like 'tschüss' or "plus tard".

Perhaps English is not his first language
or perhaps his sensitivity may not up to the challenge 
or perhaps English is your stumbling block
or perhaps your sensitivity is too challenging?

You've failed Postel's law, twice over.

On Tuesday, October 2, 2012 12:50:00 PM UTC-5, Mark Hahn wrote:
>
> Did you just call someone "Tard"?  That has got to be the most rude and 
> childish thing I've seen on this, or any. technical forum.
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Re: What Editor / OS / Dev enviroment do you use?

2012-10-02 Thread Joe Developer
Don't know about that, but it ranks pretty high on my tragically-ironic
meter.

On Wed, Oct 3, 2012 at 12:49 AM, Mark Hahn  wrote:

> Did you just call someone "Tard"?  That has got to be the most rude and
> childish thing I've seen on this, or any. technical forum.
>
>
> On Tue, Oct 2, 2012 at 5:31 AM, Fadrizul H  wrote:
>
>> Lol, Sublime is free to use. You can pay for the registration if you want
>> to get rid off the pops up. Tard
>>
>> Sent from my Windows Phone
>> --
>> From: Sapardee
>> Sent: 2/10/2012 8:24 PM
>> To: nodejs@googlegroups.com
>> Subject: Re: [nodejs] Re: What Editor / OS / Dev enviroment do you use?
>>
>> Sublime Text2 is not free, it needs registration to use it..
>>  On Sep 26, 2012 4:09 AM, "Bruno Jouhier"  wrote:
>>
>>> Mac OS X + Sublime Text 2
>>>
>>> On Thursday, September 20, 2012 6:42:27 PM UTC+2, Andrew Mclagan wrote:

 Im switching to Ubuntu after struggling with windows, i will replace
 notepad++ with Vim and finally get into terminal...

 Im interested in what OS / Dev Enviroment other Node.js developers use?

>>>  --
>>> Job Board: http://jobs.nodejs.org/
>>> Posting guidelines:
>>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>>> You received this message because you are subscribed to the Google
>>> Groups "nodejs" group.
>>> To post to this group, send email to nodejs@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> nodejs+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>>
>>  --
>> Job Board: http://jobs.nodejs.org/
>> Posting guidelines:
>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>> You received this message because you are subscribed to the Google
>> Groups "nodejs" group.
>> To post to this group, send email to nodejs@googlegroups.com
>> To unsubscribe from this group, send email to
>> nodejs+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>
>> --
>> Job Board: http://jobs.nodejs.org/
>> Posting guidelines:
>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>> You received this message because you are subscribed to the Google
>> Groups "nodejs" group.
>> To post to this group, send email to nodejs@googlegroups.com
>> To unsubscribe from this group, send email to
>> nodejs+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>
>
>  --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] TypeScript and node.js

2012-10-02 Thread Daniel Morilha
so all of this to end up with a type safe, which compiles, has classes and
the the syntax reminds C.

So why not use C++?

On Tue, Oct 2, 2012 at 1:47 PM, Dominick Pham wrote:

> semi-related note, I'm very impressed that cloud9 already has TypeScript
> support
> https://c9.io/site/blog/2012/10/typescript-support-in-cloud9/
>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>



-- 
Daniel Morilha (dmori...@gmail.com)

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Store callbacks for signals in a C++ addon

2012-10-02 Thread Ben Noordhuis
On Tue, Oct 2, 2012 at 11:28 PM, Alexandre Quessy  wrote:
> Hello everyone,
>
> I need to be able to publish events from my C++ addon. This way, users of my
> nodejs addon will be notified in their JavaScript server-side script when
> they occur.
>
> So, I guess I want to store all the javascript callbacks that are registered
> in a global map in my C++ addon. (of a member of an object)
> Should I store them as a std::map > ? What the right
> scope to use?

It's idiomatic to push as much as possible to JS land. Here is a
minimal C++ event emitter and a JS shim that does the actual
dispatching. Dispatching is left as exercise to the reader. :-)

  // in Init()
  Persistent context_obj = Persistent::New(Object::New());
  target->Set(String::New("context"), context_obj);

  // elsewhere in your code
  Local args[] = { String::New("ping") };
  node::MakeCallback(context_obj, "on", ARRAY_SIZE(args), args);

And the JS shim:

  var bindings = require('./bindings'); // the .node file
  bindings.context.on = function(name) {
console.log(name); // prints "ping"
// now invoke the user's callbacks
  };

Hope that helps.

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


[nodejs] Re: Store callbacks for signals in a C++ addon

2012-10-02 Thread mscdex
On Oct 2, 5:28 pm, Alexandre Quessy  wrote:
> I need to be able to publish events from my C++ addon. This way, users of
> my nodejs addon will be notified in their JavaScript server-side script
> when they occur.

Why not emit events instead?

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


[nodejs] Store callbacks for signals in a C++ addon

2012-10-02 Thread Alexandre Quessy
Hello everyone,

I need to be able to publish events from my C++ addon. This way, users of 
my nodejs addon will be notified in their JavaScript server-side script 
when they occur.

So, I guess I want to store all the javascript callbacks that are 
registered in a global map in my C++ addon. (of a member of an object)
Should I store them as a std::map > ? What the 
right scope to use?

(see http://nodejs.org/docs/latest/api/addons.html#addons_callbacks)

Thanks!

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Re: What Editor / OS / Dev enviroment do you use?

2012-10-02 Thread shawn wilson
Or tmux: ctrl+b [  alt+w to copy and ctrl+b ] or screen's variation
or vi's ctrl/shift+v y to copy and p to paste, or gpm left click to
immediately copy a buffer.

Copy/paste is no where near as standard as anyone thinks or would hope.
On Oct 2, 2012 8:23 AM, "Karl"  wrote:

> Or left click = copy, right click = paste, PuTTY style
>
> El jueves, 20 de septiembre de 2012 18:42:27 UTC+2, Andrew Mclagan
> escribió:
>>
>> Im switching to Ubuntu after struggling with windows, i will replace
>> notepad++ with Vim and finally get into terminal...
>>
>> Im interested in what OS / Dev Enviroment other Node.js developers use?
>>
>  --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] TypeScript and node.js

2012-10-02 Thread Dominick Pham
semi-related note, I'm very impressed that cloud9 already has TypeScript 
support
https://c9.io/site/blog/2012/10/typescript-support-in-cloud9/

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


[nodejs] Trouble Installing npm to Mac

2012-10-02 Thread John Doe
   Either by running the mac installer or building from source, I cannot 
get npm to work on os x mountain lion. When building from source I get the 
following error:

symlinking ../lib/node_modules/npm/bin/npm-cli.js -> /usr/local/bin/npm
updating shebang of /usr/local/bin/npm to /usr/local/bin/node
Traceback (most recent call last):
  File "tools/install.py", line 225, in 
run(sys.argv[:])
  File "tools/install.py", line 220, in run
if cmd == 'install': return files(install)
  File "tools/install.py", line 203, in files
if 'true' == variables.get('node_install_npm'): npm_files(action)
  File "tools/install.py", line 166, in npm_files
update_shebang(link_path, shebang)
  File "tools/install.py", line 133, in update_shebang
s = open(path, 'r').read()
IOError: [Errno 2] No such file or directory: '/usr/local/bin/npm'

Here's what npm looks like in /usr/local/bin:

lrwxr-xr-x  1 root  wheel  38 Oct  2 16:15 npm -> 
../lib/node_modules/npm/bin/npm-cli.js

  When using the automated installer, everything goes smoothly. When typing 
'npm' to the command line I get a command not found error. Any help would 
be greatly appreciated.

-JD

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Re: "Evil OS X"... the perfect client to a node server!

2012-10-02 Thread Chad Engler
I was getting mad up until I read "I have to turn myself into a kind of
heroic figure in the minds of the average Web using public." And then I
just couldn't stop laughing the rest of the way through.

 

-Chad

 

From: nodejs@googlegroups.com [mailto:nodejs@googlegroups.com] On Behalf
Of Rick Waldron
Sent: Monday, October 01, 2012 12:03 PM
To: nodejs@googlegroups.com
Subject: [*** SPAM ***] - Re: [nodejs] Re: "Evil OS X"... the perfect
client to a node server! - Bayesian Filter detected spam

 

Something tells me that we're being mega-trolled.

 

 

 

On Mon, Oct 1, 2012 at 6:56 AM, Sotonin  wrote:

"Respectfully, I am not the typical poster here.  I am a revolutionary
and a trailblazer, and everything I do is geared for maximum effect."

 

This sentence perfectly illustrates why your thread received almost 0
real interest from the beginning. You need to adjust your attitude if
you want to get helpful knowledgable folks interested in your project.
You are just coming off as a "typical" ego-centric lone wolf programmer
whom thinks he is better than everybody else. I don't know you, but with
nothing but long winded e-mails that read like marketing speak, I don't
feel any desire to get to know you or your project (future projects).

 

On Mon, Oct 1, 2012 at 8:38 AM, Dennis Kane  wrote:

Respectfully, I am not the typical poster here.  I am a revolutionary
and a trailblazer, and everything I do is geared for maximum effect.  I
have precisely zero interest in working for paychecks or even creating
something for the purpose of selling out to a corporation.  I am
interested in starting a truly socialist movement... one whose
participants understand that like it or not, we are constantly moving
into a post-capitalist future.

 

This ultimately just means that the historical corporate/ad buying
business model will slowly give way to models that have the notion of
"social capital" at their core.  For any arbitrarily complicated web
domain that does not live and die by the ad revenue "sword" -- for
example a university or a municipality -- there is the ever present
problem of getting naive users to navigate the domain.

 

Today's websites typically do not use much logic when organizing their
resources.  It all comes down to physical page space.  So if one page
becomes too crowded with content, then another page must be created.
Then the problem reduces to how to develop a menu of links that allows
to user to navigate to the appropriate resource.  At the moment, there
are no standards as to how a site should organize its content.  Everyone
has to roll their own navigation solution, and when happening upon a new
domain for the first time, a user has to spend an arbitrary amount of
time parsing the visual layout, in order to create a site tree in their
minds.

 

For everyone who says that the desktop environment is simply a
"metaphor", I would have to disagree.  Our modern desktop GUI's are the
result of a evolutionary process... a process that has resulted in the
most intuitive and powerful of navigation systems.  All that I am saying
is that we stop thinking of the client-side as a mere afterthought.  For
anyone who wants to devote their efforts towards codifying a standard
client-side browser web-app interface, there will be countless service
providers who will breathe a sigh of relief that they will no longer be
forced to worry about layout and navigation.

 

And yes, I know there have been many many efforts in the past that have
tried to bring the desktop experience into the browser.  The first
obvious problem is that Javascript has only recently become performant
enough to allow there to be pretty much zero difference from the native
OS in terms of icon/window handling.  

 

Next, all of those other efforts were pre-HTML5, which pretty much
forced the applications to rely upon a back end for the purpose of
saving state.  But now, there are so many different ways to save to the
client, it actually makes me blush!

 

And last but not least, we are really talking about doing a kind radical
paradigm inversion that conservative corporate interests just have no
interest in.  The politics of the modern WWW is such that most websites
are completely in service of the corporate bottom line.  And since
corporations have historically been all about buying up ad space/ad time
in whatever medium it can (print, radio, TV...), the Web has inevitably
found itself as having this exact same kind of role.

 

So there really is not "allowed" to be very much creativity on the Web,
if this creativity would only confuse/aggravate the corporate bosses who
are just trying to hawk their wares to as many naive consumers as
possible.  The result of all of this political mumbo-jumbo is that the
lowly web developer is forced to think of him/herself as a mere layout
designer... such that the given layout gives sufficient prominence to
whatever ad space it is trying to sell.  So the Web becomes nothing but
a series of static magazin

Re: [nodejs] "Evil OS X"... the perfect client to a node server!

2012-10-02 Thread Mark Hahn
> I think it was well warranted.

No it wasn't.  Equating someone with a serial killer is inexcusable.
 Earlier today I reprimanded someone for calling another person a "tard".

Please folks, be civil.


On Tue, Oct 2, 2012 at 12:08 PM, Sotonin  wrote:

> I think it was well warranted.
>
> He received numerous requests for some substance to back up his claims.
> Everybody wants to see some code and his response to that was (paraphrasing)
>
> "I expected you all to be skeptical but I'm amazing and already knew you'd
> react that way, the real world loves me and when I'm done convincing 'them'
> of my new web, you won't be needed as your programming will be obsolete."
>
> This is of course cut down from the "Visionary" marketing speak he
> presented.
>
> This is a programming board, so again. cut the fluff and "prove" you are
> worth listening to, because right now you are essentially a nobody to
> everybody. Vaporware.
>
> On Tue, Oct 2, 2012 at 1:46 PM, Ted Young  wrote:
>
>> Seriously.  It's fine if you don't think the project is interesting, but
>> that is way too nasty.
>>
>>   Ted
>>
>> On Oct 2, 2012, at 10:54 AM, Mark Hahn  wrote:
>>
>> Lay off.
>>
>> On Tue, Oct 2, 2012 at 6:07 AM, Sotonin  wrote:
>>
>>> This guy has future serial killer written all over him. Sociopath much?
>>>
>>>
>>> On Tue, Oct 2, 2012 at 6:47 AM, Dennis Kane  wrote:
>>>
 I hope you are all aware that I fully expect the reception that I have
 gotten here.  The accusations of mental illness and trollishness are fully
 expected.  The only problem is that I have a real life outside of
 professional programming circles.  I know what it takes to make real things
 happen in this world.  The fact is that it requires much, much more that
 mere programming talent to have any kind of impact.  The importance of fact
 that I put my physical ass on the line in the *real world* in order to make
 profound connections with *real people* is something that the vast majority
 of you will never be able to comprehend, which is extremely sad.  I mean, I
 am here in the deep south, for chrissake, where there are so many
 hillbillies with shotguns who are constantly on the lookout for guys like
 me to sneer at and intimidate.

 So please, be my guest and continue to ridicule in those pithy,
 sardonic ways that have been perfected over the years on message forums
 like this.  I am beholden to no one, and it will remain like that.  But
 please understand that people are falling head over heels for me on a mass
 level here in the *real world*.  It is just a matter of time before I am
 able to command their attention and educate them about the Web and about
 computing in general... so that they will eventually need precisely zero of
 the services that any of you are offering.

 Cheers!

 --
 Job Board: http://jobs.nodejs.org/
 Posting guidelines:
 https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
 You received this message because you are subscribed to the Google
 Groups "nodejs" group.
 To post to this group, send email to nodejs@googlegroups.com
 To unsubscribe from this group, send email to
 nodejs+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/nodejs?hl=en?hl=en

>>>
>>>
>>> --
>>> Job Board: http://jobs.nodejs.org/
>>> Posting guidelines:
>>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>>> You received this message because you are subscribed to the Google
>>> Groups "nodejs" group.
>>> To post to this group, send email to nodejs@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> nodejs+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>>
>>
>>
>> --
>> Job Board: http://jobs.nodejs.org/
>> Posting guidelines:
>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>> You received this message because you are subscribed to the Google
>> Groups "nodejs" group.
>> To post to this group, send email to nodejs@googlegroups.com
>> To unsubscribe from this group, send email to
>> nodejs+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>
>>
>>  --
>> Job Board: http://jobs.nodejs.org/
>> Posting guidelines:
>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>> You received this message because you are subscribed to the Google
>> Groups "nodejs" group.
>> To post to this group, send email to nodejs@googlegroups.com
>> To unsubscribe from this group, send email to
>> nodejs+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>
>
>  --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guid

Re: [nodejs] "Evil OS X"... the perfect client to a node server!

2012-10-02 Thread Rick Waldron
That's pretty much when I decided that we were being trolled ;)

On Tue, Oct 2, 2012 at 3:08 PM, Sotonin  wrote:

> I think it was well warranted.
>
> He received numerous requests for some substance to back up his claims.
> Everybody wants to see some code and his response to that was (paraphrasing)
>
> "I expected you all to be skeptical but I'm amazing and already knew you'd
> react that way, the real world loves me and when I'm done convincing 'them'
> of my new web, you won't be needed as your programming will be obsolete."
>
> This is of course cut down from the "Visionary" marketing speak he
> presented.
>
> This is a programming board, so again. cut the fluff and "prove" you are
> worth listening to, because right now you are essentially a nobody to
> everybody. Vaporware.
>
> On Tue, Oct 2, 2012 at 1:46 PM, Ted Young  wrote:
>
>> Seriously.  It's fine if you don't think the project is interesting, but
>> that is way too nasty.
>>
>>   Ted
>>
>> On Oct 2, 2012, at 10:54 AM, Mark Hahn  wrote:
>>
>> Lay off.
>>
>> On Tue, Oct 2, 2012 at 6:07 AM, Sotonin  wrote:
>>
>>> This guy has future serial killer written all over him. Sociopath much?
>>>
>>>
>>> On Tue, Oct 2, 2012 at 6:47 AM, Dennis Kane  wrote:
>>>
 I hope you are all aware that I fully expect the reception that I have
 gotten here.  The accusations of mental illness and trollishness are fully
 expected.  The only problem is that I have a real life outside of
 professional programming circles.  I know what it takes to make real things
 happen in this world.  The fact is that it requires much, much more that
 mere programming talent to have any kind of impact.  The importance of fact
 that I put my physical ass on the line in the *real world* in order to make
 profound connections with *real people* is something that the vast majority
 of you will never be able to comprehend, which is extremely sad.  I mean, I
 am here in the deep south, for chrissake, where there are so many
 hillbillies with shotguns who are constantly on the lookout for guys like
 me to sneer at and intimidate.

 So please, be my guest and continue to ridicule in those pithy,
 sardonic ways that have been perfected over the years on message forums
 like this.  I am beholden to no one, and it will remain like that.  But
 please understand that people are falling head over heels for me on a mass
 level here in the *real world*.  It is just a matter of time before I am
 able to command their attention and educate them about the Web and about
 computing in general... so that they will eventually need precisely zero of
 the services that any of you are offering.

 Cheers!

 --
 Job Board: http://jobs.nodejs.org/
 Posting guidelines:
 https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
 You received this message because you are subscribed to the Google
 Groups "nodejs" group.
 To post to this group, send email to nodejs@googlegroups.com
 To unsubscribe from this group, send email to
 nodejs+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/nodejs?hl=en?hl=en

>>>
>>>
>>> --
>>> Job Board: http://jobs.nodejs.org/
>>> Posting guidelines:
>>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>>> You received this message because you are subscribed to the Google
>>> Groups "nodejs" group.
>>> To post to this group, send email to nodejs@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> nodejs+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>>
>>
>>
>> --
>> Job Board: http://jobs.nodejs.org/
>> Posting guidelines:
>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>> You received this message because you are subscribed to the Google
>> Groups "nodejs" group.
>> To post to this group, send email to nodejs@googlegroups.com
>> To unsubscribe from this group, send email to
>> nodejs+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>
>>
>>  --
>> Job Board: http://jobs.nodejs.org/
>> Posting guidelines:
>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>> You received this message because you are subscribed to the Google
>> Groups "nodejs" group.
>> To post to this group, send email to nodejs@googlegroups.com
>> To unsubscribe from this group, send email to
>> nodejs+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>
>
>  --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to 

Re: [nodejs] ANN: Spoon

2012-10-02 Thread Rick Waldron
On Tue, Oct 2, 2012 at 3:07 PM, Fedor Indutny  wrote:

> Well, it supposed to work in all browsers, and it supposed to be
> optimizable by all optimizers including uglifyjs, closure compiler and yui
> compressor (that's why I'm using "escaped" property names sometimes).


Ah, got it, this makes sense :)

Rick



>
>
> On Tue, Oct 2, 2012 at 11:03 PM, Rick Waldron wrote:
>
>> Fedor,
>>
>> Is xjst meant to run in a browser at all? I ask because I see code where
>> objects with a property named "default" are accessing like...
>>
>> obj["default"]
>>
>> which isn't necessary in runtimes that correctly implement ES5.1.
>> "default" is a reserved word, but property names are IdentifierNames, not
>> Identifiers, so "default" is valid when used like...
>>
>> obj.default;
>>
>> eg.
>>
>> $ node
>> > var o = {default: "hi!"}
>> undefined
>> > o.default
>> 'hi!'
>> >
>>
>>
>> Anyway, no big deal, I just happened to notice it and figured I'd mention.
>>
>> Rick
>>
>>
>> On Tue, Oct 2, 2012 at 2:56 PM, Fedor Indutny  wrote:
>>
>>> I'll write a blog post about it on http://blog.indutny.com/ soon,
>>> describing everything in details.
>>>
>>>
>>> On Tue, Oct 2, 2012 at 10:49 PM, Fedor Indutny wrote:
>>>
 No, we ain't using this at nodejitsu.

 I'm coauthor of xjst module, which is compiling templates to a
 highly-recursive javascript code. However some javascript VMs like
 Spidermonkey doesn't support that recursion well, and here comes spoon! It
 can translate any recursive calls into fake asynchronous ones. And then
 using tricky dispatch function I can run those calls one-by-one without any
 recursion at all:
 https://github.com/veged/xjst/blob/master/lib/xjst/utils.js#L68



 On Tue, Oct 2, 2012 at 10:43 PM, Ted Young wrote:

> Just wondering, what were your use cases when writing spoon? Was it to
> solve production problems you were facing? Are you using it at nodejitsu?
>
> Cheers,
>   Ted
>
> On Oct 1, 2012, at 11:28 PM, Fedor Indutny  wrote:
>
> "I'm just doing my job".
>
>
> On Tue, Oct 2, 2012 at 1:55 AM, Mark Hahn  wrote:
>
>> @Marcel just meant that you have started an infinite discussion
>> thread.  He wasn't insulting your module.
>>
>>
>> On Mon, Oct 1, 2012 at 2:42 PM, Marcel Laverdet 
>> wrote:
>>
>>> You have no idea what you've done.
>>>
>>> On Mon, Oct 1, 2012 at 2:11 PM, Fedor Indutny wrote:
>>>
 Hey people,

 Let me introduce you The Spoon: https://github.com/indutny/spoon

 It's a JavaScript to CFG (Control-Flow Graph) transpiler and
 additionally a CPS (Continuation Passing Style) transpiler too.

 Basically, it lets you to rewrite code like this:

 var data = 'prefix: ' + fs.read('file')

  To this:

 var data;
 fs.read('file', function(err, result) {
   data = 'prefix: ' + result;
 });

 Please check the readme, if you're interested.

 Cheers,
 Fedor.


 --
 Job Board: http://jobs.nodejs.org/
 Posting guidelines:
 https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
 You received this message because you are subscribed to the Google
 Groups "nodejs" group.
 To post to this group, send email to nodejs@googlegroups.com
 To unsubscribe from this group, send email to
 nodejs+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/nodejs?hl=en?hl=en

>>>
>>>
>>> --
>>> Job Board: http://jobs.nodejs.org/
>>> Posting guidelines:
>>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>>> You received this message because you are subscribed to the Google
>>> Groups "nodejs" group.
>>> To post to this group, send email to nodejs@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> nodejs+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>>
>>
>>
>> --
>> Job Board: http://jobs.nodejs.org/
>> Posting guidelines:
>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>> You received this message because you are subscribed to the Google
>> Groups "nodejs" group.
>> To post to this group, send email to nodejs@googlegroups.com
>> To unsubscribe from this group, send email to
>> nodejs+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>
>
>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received 

Re: [nodejs] "Evil OS X"... the perfect client to a node server!

2012-10-02 Thread Sotonin
I think it was well warranted.

He received numerous requests for some substance to back up his claims.
Everybody wants to see some code and his response to that was (paraphrasing)

"I expected you all to be skeptical but I'm amazing and already knew you'd
react that way, the real world loves me and when I'm done convincing 'them'
of my new web, you won't be needed as your programming will be obsolete."

This is of course cut down from the "Visionary" marketing speak he
presented.

This is a programming board, so again. cut the fluff and "prove" you are
worth listening to, because right now you are essentially a nobody to
everybody. Vaporware.

On Tue, Oct 2, 2012 at 1:46 PM, Ted Young  wrote:

> Seriously.  It's fine if you don't think the project is interesting, but
> that is way too nasty.
>
> Ted
>
> On Oct 2, 2012, at 10:54 AM, Mark Hahn  wrote:
>
> Lay off.
>
> On Tue, Oct 2, 2012 at 6:07 AM, Sotonin  wrote:
>
>> This guy has future serial killer written all over him. Sociopath much?
>>
>>
>> On Tue, Oct 2, 2012 at 6:47 AM, Dennis Kane  wrote:
>>
>>> I hope you are all aware that I fully expect the reception that I have
>>> gotten here.  The accusations of mental illness and trollishness are fully
>>> expected.  The only problem is that I have a real life outside of
>>> professional programming circles.  I know what it takes to make real things
>>> happen in this world.  The fact is that it requires much, much more that
>>> mere programming talent to have any kind of impact.  The importance of fact
>>> that I put my physical ass on the line in the *real world* in order to make
>>> profound connections with *real people* is something that the vast majority
>>> of you will never be able to comprehend, which is extremely sad.  I mean, I
>>> am here in the deep south, for chrissake, where there are so many
>>> hillbillies with shotguns who are constantly on the lookout for guys like
>>> me to sneer at and intimidate.
>>>
>>> So please, be my guest and continue to ridicule in those pithy, sardonic
>>> ways that have been perfected over the years on message forums like this.
>>>  I am beholden to no one, and it will remain like that.  But please
>>> understand that people are falling head over heels for me on a mass level
>>> here in the *real world*.  It is just a matter of time before I am able to
>>> command their attention and educate them about the Web and about computing
>>> in general... so that they will eventually need precisely zero of the
>>> services that any of you are offering.
>>>
>>> Cheers!
>>>
>>> --
>>> Job Board: http://jobs.nodejs.org/
>>> Posting guidelines:
>>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>>> You received this message because you are subscribed to the Google
>>> Groups "nodejs" group.
>>> To post to this group, send email to nodejs@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> nodejs+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>>
>>
>>
>> --
>> Job Board: http://jobs.nodejs.org/
>> Posting guidelines:
>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>> You received this message because you are subscribed to the Google
>> Groups "nodejs" group.
>> To post to this group, send email to nodejs@googlegroups.com
>> To unsubscribe from this group, send email to
>> nodejs+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>
>
>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>
>
>  --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] ANN: Spoon

2012-10-02 Thread Fedor Indutny
Well, it supposed to work in all browsers, and it supposed to be
optimizable by all optimizers including uglifyjs, closure compiler and yui
compressor (that's why I'm using "escaped" property names sometimes).


On Tue, Oct 2, 2012 at 11:03 PM, Rick Waldron wrote:

> Fedor,
>
> Is xjst meant to run in a browser at all? I ask because I see code where
> objects with a property named "default" are accessing like...
>
> obj["default"]
>
> which isn't necessary in runtimes that correctly implement ES5.1.
> "default" is a reserved word, but property names are IdentifierNames, not
> Identifiers, so "default" is valid when used like...
>
> obj.default;
>
> eg.
>
> $ node
> > var o = {default: "hi!"}
> undefined
> > o.default
> 'hi!'
> >
>
>
> Anyway, no big deal, I just happened to notice it and figured I'd mention.
>
> Rick
>
>
> On Tue, Oct 2, 2012 at 2:56 PM, Fedor Indutny  wrote:
>
>> I'll write a blog post about it on http://blog.indutny.com/ soon,
>> describing everything in details.
>>
>>
>> On Tue, Oct 2, 2012 at 10:49 PM, Fedor Indutny  wrote:
>>
>>> No, we ain't using this at nodejitsu.
>>>
>>> I'm coauthor of xjst module, which is compiling templates to a
>>> highly-recursive javascript code. However some javascript VMs like
>>> Spidermonkey doesn't support that recursion well, and here comes spoon! It
>>> can translate any recursive calls into fake asynchronous ones. And then
>>> using tricky dispatch function I can run those calls one-by-one without any
>>> recursion at all:
>>> https://github.com/veged/xjst/blob/master/lib/xjst/utils.js#L68
>>>
>>>
>>>
>>> On Tue, Oct 2, 2012 at 10:43 PM, Ted Young wrote:
>>>
 Just wondering, what were your use cases when writing spoon? Was it to
 solve production problems you were facing? Are you using it at nodejitsu?

 Cheers,
   Ted

 On Oct 1, 2012, at 11:28 PM, Fedor Indutny  wrote:

 "I'm just doing my job".


 On Tue, Oct 2, 2012 at 1:55 AM, Mark Hahn  wrote:

> @Marcel just meant that you have started an infinite discussion
> thread.  He wasn't insulting your module.
>
>
> On Mon, Oct 1, 2012 at 2:42 PM, Marcel Laverdet 
> wrote:
>
>> You have no idea what you've done.
>>
>> On Mon, Oct 1, 2012 at 2:11 PM, Fedor Indutny wrote:
>>
>>> Hey people,
>>>
>>> Let me introduce you The Spoon: https://github.com/indutny/spoon
>>>
>>> It's a JavaScript to CFG (Control-Flow Graph) transpiler and
>>> additionally a CPS (Continuation Passing Style) transpiler too.
>>>
>>> Basically, it lets you to rewrite code like this:
>>>
>>> var data = 'prefix: ' + fs.read('file')
>>>
>>>  To this:
>>>
>>> var data;
>>> fs.read('file', function(err, result) {
>>>   data = 'prefix: ' + result;
>>> });
>>>
>>> Please check the readme, if you're interested.
>>>
>>> Cheers,
>>> Fedor.
>>>
>>>
>>> --
>>> Job Board: http://jobs.nodejs.org/
>>> Posting guidelines:
>>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>>> You received this message because you are subscribed to the Google
>>> Groups "nodejs" group.
>>> To post to this group, send email to nodejs@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> nodejs+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>>
>>
>>
>> --
>> Job Board: http://jobs.nodejs.org/
>> Posting guidelines:
>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>> You received this message because you are subscribed to the Google
>> Groups "nodejs" group.
>> To post to this group, send email to nodejs@googlegroups.com
>> To unsubscribe from this group, send email to
>> nodejs+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>
>
>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>


 --
 Job Board: http://jobs.nodejs.org/
 Posting guidelines:
 https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
 You received this message because you are subscribed to the Google
 Groups "nodejs" group.
 To post to this group, send email to nodejs@googlegroups.com
 To unsubscribe from this group, send email to
 nodejs+unsubscr...@googlegroups.com
 For more

Re: [nodejs] ANN: Spoon

2012-10-02 Thread Rick Waldron
Fedor,

Is xjst meant to run in a browser at all? I ask because I see code where
objects with a property named "default" are accessing like...

obj["default"]

which isn't necessary in runtimes that correctly implement ES5.1. "default"
is a reserved word, but property names are IdentifierNames, not
Identifiers, so "default" is valid when used like...

obj.default;

eg.

$ node
> var o = {default: "hi!"}
undefined
> o.default
'hi!'
>


Anyway, no big deal, I just happened to notice it and figured I'd mention.

Rick

On Tue, Oct 2, 2012 at 2:56 PM, Fedor Indutny  wrote:

> I'll write a blog post about it on http://blog.indutny.com/ soon,
> describing everything in details.
>
>
> On Tue, Oct 2, 2012 at 10:49 PM, Fedor Indutny  wrote:
>
>> No, we ain't using this at nodejitsu.
>>
>> I'm coauthor of xjst module, which is compiling templates to a
>> highly-recursive javascript code. However some javascript VMs like
>> Spidermonkey doesn't support that recursion well, and here comes spoon! It
>> can translate any recursive calls into fake asynchronous ones. And then
>> using tricky dispatch function I can run those calls one-by-one without any
>> recursion at all:
>> https://github.com/veged/xjst/blob/master/lib/xjst/utils.js#L68
>>
>>
>>
>> On Tue, Oct 2, 2012 at 10:43 PM, Ted Young wrote:
>>
>>> Just wondering, what were your use cases when writing spoon? Was it to
>>> solve production problems you were facing? Are you using it at nodejitsu?
>>>
>>> Cheers,
>>>   Ted
>>>
>>> On Oct 1, 2012, at 11:28 PM, Fedor Indutny  wrote:
>>>
>>> "I'm just doing my job".
>>>
>>>
>>> On Tue, Oct 2, 2012 at 1:55 AM, Mark Hahn  wrote:
>>>
 @Marcel just meant that you have started an infinite discussion
 thread.  He wasn't insulting your module.


 On Mon, Oct 1, 2012 at 2:42 PM, Marcel Laverdet wrote:

> You have no idea what you've done.
>
> On Mon, Oct 1, 2012 at 2:11 PM, Fedor Indutny wrote:
>
>> Hey people,
>>
>> Let me introduce you The Spoon: https://github.com/indutny/spoon
>>
>> It's a JavaScript to CFG (Control-Flow Graph) transpiler and
>> additionally a CPS (Continuation Passing Style) transpiler too.
>>
>> Basically, it lets you to rewrite code like this:
>>
>> var data = 'prefix: ' + fs.read('file')
>>
>>  To this:
>>
>> var data;
>> fs.read('file', function(err, result) {
>>   data = 'prefix: ' + result;
>> });
>>
>> Please check the readme, if you're interested.
>>
>> Cheers,
>> Fedor.
>>
>>
>> --
>> Job Board: http://jobs.nodejs.org/
>> Posting guidelines:
>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>> You received this message because you are subscribed to the Google
>> Groups "nodejs" group.
>> To post to this group, send email to nodejs@googlegroups.com
>> To unsubscribe from this group, send email to
>> nodejs+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>
>
>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>


 --
 Job Board: http://jobs.nodejs.org/
 Posting guidelines:
 https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
 You received this message because you are subscribed to the Google
 Groups "nodejs" group.
 To post to this group, send email to nodejs@googlegroups.com
 To unsubscribe from this group, send email to
 nodejs+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/nodejs?hl=en?hl=en

>>>
>>>
>>> --
>>> Job Board: http://jobs.nodejs.org/
>>> Posting guidelines:
>>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>>> You received this message because you are subscribed to the Google
>>> Groups "nodejs" group.
>>> To post to this group, send email to nodejs@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> nodejs+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>>
>>>
>>>  --
>>> Job Board: http://jobs.nodejs.org/
>>> Posting guidelines:
>>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>>> You received this message because you are subscribed to the Google
>>> Groups "nodejs" group.
>>> To post to this group, send email to nodejs@googlegroups.com
>>> To unsubscribe from this group, send em

Re: [nodejs] "Evil OS X"... the perfect client to a node server!

2012-10-02 Thread William Oliveira
Go to https://github.com/, create a repo and show you revolutionary project
to the world.

In other words, "Show me the code".

On Tue, Oct 2, 2012 at 3:46 PM, Ted Young  wrote:

> Seriously.  It's fine if you don't think the project is interesting, but
> that is way too nasty.
>
> Ted
>
> On Oct 2, 2012, at 10:54 AM, Mark Hahn  wrote:
>
> Lay off.
>
> On Tue, Oct 2, 2012 at 6:07 AM, Sotonin  wrote:
>
>> This guy has future serial killer written all over him. Sociopath much?
>>
>>
>> On Tue, Oct 2, 2012 at 6:47 AM, Dennis Kane  wrote:
>>
>>> I hope you are all aware that I fully expect the reception that I have
>>> gotten here.  The accusations of mental illness and trollishness are fully
>>> expected.  The only problem is that I have a real life outside of
>>> professional programming circles.  I know what it takes to make real things
>>> happen in this world.  The fact is that it requires much, much more that
>>> mere programming talent to have any kind of impact.  The importance of fact
>>> that I put my physical ass on the line in the *real world* in order to make
>>> profound connections with *real people* is something that the vast majority
>>> of you will never be able to comprehend, which is extremely sad.  I mean, I
>>> am here in the deep south, for chrissake, where there are so many
>>> hillbillies with shotguns who are constantly on the lookout for guys like
>>> me to sneer at and intimidate.
>>>
>>> So please, be my guest and continue to ridicule in those pithy, sardonic
>>> ways that have been perfected over the years on message forums like this.
>>>  I am beholden to no one, and it will remain like that.  But please
>>> understand that people are falling head over heels for me on a mass level
>>> here in the *real world*.  It is just a matter of time before I am able to
>>> command their attention and educate them about the Web and about computing
>>> in general... so that they will eventually need precisely zero of the
>>> services that any of you are offering.
>>>
>>> Cheers!
>>>
>>> --
>>> Job Board: http://jobs.nodejs.org/
>>> Posting guidelines:
>>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>>> You received this message because you are subscribed to the Google
>>> Groups "nodejs" group.
>>> To post to this group, send email to nodejs@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> nodejs+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>>
>>
>>
>> --
>> Job Board: http://jobs.nodejs.org/
>> Posting guidelines:
>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>> You received this message because you are subscribed to the Google
>> Groups "nodejs" group.
>> To post to this group, send email to nodejs@googlegroups.com
>> To unsubscribe from this group, send email to
>> nodejs+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>
>
>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>
>
>  --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>



-- 
*// w. oliveira *
*// js - python - lisp - clojure*

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] ANN: Spoon

2012-10-02 Thread Fedor Indutny
I'll write a blog post about it on http://blog.indutny.com/ soon,
describing everything in details.


On Tue, Oct 2, 2012 at 10:49 PM, Fedor Indutny  wrote:

> No, we ain't using this at nodejitsu.
>
> I'm coauthor of xjst module, which is compiling templates to a
> highly-recursive javascript code. However some javascript VMs like
> Spidermonkey doesn't support that recursion well, and here comes spoon! It
> can translate any recursive calls into fake asynchronous ones. And then
> using tricky dispatch function I can run those calls one-by-one without any
> recursion at all:
> https://github.com/veged/xjst/blob/master/lib/xjst/utils.js#L68
>
>
>
> On Tue, Oct 2, 2012 at 10:43 PM, Ted Young  wrote:
>
>> Just wondering, what were your use cases when writing spoon? Was it to
>> solve production problems you were facing? Are you using it at nodejitsu?
>>
>> Cheers,
>>   Ted
>>
>> On Oct 1, 2012, at 11:28 PM, Fedor Indutny  wrote:
>>
>> "I'm just doing my job".
>>
>>
>> On Tue, Oct 2, 2012 at 1:55 AM, Mark Hahn  wrote:
>>
>>> @Marcel just meant that you have started an infinite discussion thread.
>>>  He wasn't insulting your module.
>>>
>>>
>>> On Mon, Oct 1, 2012 at 2:42 PM, Marcel Laverdet wrote:
>>>
 You have no idea what you've done.

 On Mon, Oct 1, 2012 at 2:11 PM, Fedor Indutny wrote:

> Hey people,
>
> Let me introduce you The Spoon: https://github.com/indutny/spoon
>
> It's a JavaScript to CFG (Control-Flow Graph) transpiler and
> additionally a CPS (Continuation Passing Style) transpiler too.
>
> Basically, it lets you to rewrite code like this:
>
> var data = 'prefix: ' + fs.read('file')
>
>  To this:
>
> var data;
> fs.read('file', function(err, result) {
>   data = 'prefix: ' + result;
> });
>
> Please check the readme, if you're interested.
>
> Cheers,
> Fedor.
>
>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>


 --
 Job Board: http://jobs.nodejs.org/
 Posting guidelines:
 https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
 You received this message because you are subscribed to the Google
 Groups "nodejs" group.
 To post to this group, send email to nodejs@googlegroups.com
 To unsubscribe from this group, send email to
 nodejs+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/nodejs?hl=en?hl=en

>>>
>>>
>>> --
>>> Job Board: http://jobs.nodejs.org/
>>> Posting guidelines:
>>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>>> You received this message because you are subscribed to the Google
>>> Groups "nodejs" group.
>>> To post to this group, send email to nodejs@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> nodejs+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>>
>>
>>
>> --
>> Job Board: http://jobs.nodejs.org/
>> Posting guidelines:
>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>> You received this message because you are subscribed to the Google
>> Groups "nodejs" group.
>> To post to this group, send email to nodejs@googlegroups.com
>> To unsubscribe from this group, send email to
>> nodejs+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>
>>
>>  --
>> Job Board: http://jobs.nodejs.org/
>> Posting guidelines:
>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>> You received this message because you are subscribed to the Google
>> Groups "nodejs" group.
>> To post to this group, send email to nodejs@googlegroups.com
>> To unsubscribe from this group, send email to
>> nodejs+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>
>
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] ANN: Spoon

2012-10-02 Thread Fedor Indutny
No, we ain't using this at nodejitsu.

I'm coauthor of xjst module, which is compiling templates to a
highly-recursive javascript code. However some javascript VMs like
Spidermonkey doesn't support that recursion well, and here comes spoon! It
can translate any recursive calls into fake asynchronous ones. And then
using tricky dispatch function I can run those calls one-by-one without any
recursion at all:
https://github.com/veged/xjst/blob/master/lib/xjst/utils.js#L68


On Tue, Oct 2, 2012 at 10:43 PM, Ted Young  wrote:

> Just wondering, what were your use cases when writing spoon? Was it to
> solve production problems you were facing? Are you using it at nodejitsu?
>
> Cheers,
>   Ted
>
> On Oct 1, 2012, at 11:28 PM, Fedor Indutny  wrote:
>
> "I'm just doing my job".
>
>
> On Tue, Oct 2, 2012 at 1:55 AM, Mark Hahn  wrote:
>
>> @Marcel just meant that you have started an infinite discussion thread.
>>  He wasn't insulting your module.
>>
>>
>> On Mon, Oct 1, 2012 at 2:42 PM, Marcel Laverdet wrote:
>>
>>> You have no idea what you've done.
>>>
>>> On Mon, Oct 1, 2012 at 2:11 PM, Fedor Indutny  wrote:
>>>
 Hey people,

 Let me introduce you The Spoon: https://github.com/indutny/spoon

 It's a JavaScript to CFG (Control-Flow Graph) transpiler and
 additionally a CPS (Continuation Passing Style) transpiler too.

 Basically, it lets you to rewrite code like this:

 var data = 'prefix: ' + fs.read('file')

  To this:

 var data;
 fs.read('file', function(err, result) {
   data = 'prefix: ' + result;
 });

 Please check the readme, if you're interested.

 Cheers,
 Fedor.


 --
 Job Board: http://jobs.nodejs.org/
 Posting guidelines:
 https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
 You received this message because you are subscribed to the Google
 Groups "nodejs" group.
 To post to this group, send email to nodejs@googlegroups.com
 To unsubscribe from this group, send email to
 nodejs+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/nodejs?hl=en?hl=en

>>>
>>>
>>> --
>>> Job Board: http://jobs.nodejs.org/
>>> Posting guidelines:
>>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>>> You received this message because you are subscribed to the Google
>>> Groups "nodejs" group.
>>> To post to this group, send email to nodejs@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> nodejs+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>>
>>
>>
>> --
>> Job Board: http://jobs.nodejs.org/
>> Posting guidelines:
>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>> You received this message because you are subscribed to the Google
>> Groups "nodejs" group.
>> To post to this group, send email to nodejs@googlegroups.com
>> To unsubscribe from this group, send email to
>> nodejs+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>
>
>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>
>
>  --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] "Evil OS X"... the perfect client to a node server!

2012-10-02 Thread Ted Young
Seriously.  It's fine if you don't think the project is interesting, but that 
is way too nasty.

Ted

On Oct 2, 2012, at 10:54 AM, Mark Hahn  wrote:

> Lay off.
> 
> On Tue, Oct 2, 2012 at 6:07 AM, Sotonin  wrote:
> This guy has future serial killer written all over him. Sociopath much?
> 
> 
> On Tue, Oct 2, 2012 at 6:47 AM, Dennis Kane  wrote:
> I hope you are all aware that I fully expect the reception that I have gotten 
> here.  The accusations of mental illness and trollishness are fully expected. 
>  The only problem is that I have a real life outside of professional 
> programming circles.  I know what it takes to make real things happen in this 
> world.  The fact is that it requires much, much more that mere programming 
> talent to have any kind of impact.  The importance of fact that I put my 
> physical ass on the line in the *real world* in order to make profound 
> connections with *real people* is something that the vast majority of you 
> will never be able to comprehend, which is extremely sad.  I mean, I am here 
> in the deep south, for chrissake, where there are so many hillbillies with 
> shotguns who are constantly on the lookout for guys like me to sneer at and 
> intimidate.
> 
> So please, be my guest and continue to ridicule in those pithy, sardonic ways 
> that have been perfected over the years on message forums like this.  I am 
> beholden to no one, and it will remain like that.  But please understand that 
> people are falling head over heels for me on a mass level here in the *real 
> world*.  It is just a matter of time before I am able to command their 
> attention and educate them about the Web and about computing in general... so 
> that they will eventually need precisely zero of the services that any of you 
> are offering.
> 
> Cheers!
> 
> -- 
> Job Board: http://jobs.nodejs.org/
> Posting guidelines: 
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
> 
> 
> -- 
> Job Board: http://jobs.nodejs.org/
> Posting guidelines: 
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
> 
> 
> -- 
> Job Board: http://jobs.nodejs.org/
> Posting guidelines: 
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] TypeScript and node.js

2012-10-02 Thread Rick Waldron
On Tue, Oct 2, 2012 at 1:43 PM, Stephen Handley
wrote:

> +1 on this being blogged. not into TypeScript but would be very interested
> in you elaborating on the two rules / js optimization info you mention in
> the beginning.


Stephen,

Isaac was kind enough to post this yesterday:
http://blog.izs.me/post/32697104162/thoughts-on-typescript

:)

Rick



>
>
> On Monday, October 1, 2012 4:11:12 PM UTC-7, Dick Hardt wrote:
>
>> +1 to putting this on your blog Isaac.
>>
>> On Oct 1, 2012, at 3:50 PM, Rick Waldron  wrote:
>>
>>
>>
>> On Mon, Oct 1, 2012 at 6:46 PM, Isaac Schlueter  wrote:
>>
>>> I've been through the paces quite a few times trying to optimize the
>>> hell out of very hot code.  In the last few years, this has been
>>> mostly in V8, of course, but the basic principles are not too far off
>>> in different JS environments.
>>>
>>> It's important to not put too much weight in rules of thumb, and we
>>> programmers are particularly bad at that, given our tendencies towards
>>> abstraction.  But that disclaimer out of the way, I've found very few
>>> exceptions to these two rules:
>>>
>>> 1. If you have more than one of something, use a class; not a "plain
>>> old object".  I recently changed the "url" module in node-master, and
>>> made it twice as fast by replacing the plain {}-style objects with Url
>>> class instances.
>>> 2. Always put the same kinds of things in the same places.  An array
>>> of numbers should only ever have numbers; an array of objects should
>>> always only have objects.  If a FooBar object has a "foo" member, then
>>> set this.foo to *something* in the constructor.
>>>
>>> It's really nice writing code in a loosely typed language.  Most of
>>> the time, these optimizations are not all that relevant, and when they
>>> are, the odd exception is probably fine, if it's truly exceptional.
>>> But when you really care about maximizing speed, that flexibility can
>>> make it surprisingly tricky to track down all the deviations.
>>>
>>> I'm probably not going to stop using Vim to write code any time soon.
>>> I'm probably never going to use Windows as my development environment.
>>>  Code completion sort of annoys me, and I've usually turned it off
>>> when I had editors that did it.  But I'm actually very excited about
>>> TypeScript.
>>>
>>> It'd be a great idea to write up a TypeScript header file for the API
>>> surface in Node.  Then, we could automatically test for API
>>> deviations, validate and flesh out our documentation, etc.  Static
>>> typing *does* confer some very relevant value.  Typically it does so
>>> at the cost of flexibility, but this brings a lot of the benefits to
>>> JavaScript in an optional way, which is very powerful.
>>>
>>> Also, it's not reinventing the language.  It is JavaScript, mostly.
>>> Or JavaScript entirely, if you just write JS and have a separate
>>> declaration file, but with the benefits of linting that does more than
>>> whine about comma placement and indentation, and *actually finds
>>> subtle errors* in your programs.
>>>
>>> There have been a lot of attempts to come up with ways to add type
>>> hints and API-auto-documentation to JavaScript.  (JSDoc, YUIDoc,
>>> AS3/ES4, etc.)  Most of those are not very compelling.  The fact that
>>> Microsoft is doing this, and building products on top of it (which
>>> they will inevitably hope to make money on), is very encouraging.  It
>>> says to me that this is going to be a real thing with real developers
>>> working on it, with budgets and timelines, and the whole bit.  It's
>>> somebody's job.
>>>
>>>
>>> I had some suggestions that I passed along to the folks at Microsoft:
>>>
>>> 1. It'd be *amazing* if there was a way to automatically try to guess
>>> at the best types, given a set of JavaScript code.  Writing a
>>> declaration file is insanely tedious.  I don't want to do it, and
>>> that's a blocker to adoption.  I know that this is a hard problem, and
>>> totally not what you'd expect in a first release, but hey, V8 is
>>> guessing types pretty good, so it must be possible.  That would make
>>> me happy.
>>>
>>> 2. It'd be nice (as I think someone mentioned in this thread) to let
>>> it put run-time type-checking into exposed functions at the API
>>> surface.  If this needed to be a dev flag or something, then that's
>>> fine.  I'd go ahead and let it in exported functions, though.  We have
>>> a lot of that code in Node, and it's tedious to write and maintain.
>>>
>>
>>
>> Isaac,
>>
>> This belongs on your blog, no joke. I'm going to nag you until you do it.
>>
>> Rick
>>
>>
>>
>>>
>>> --
>>> Job Board: http://jobs.nodejs.org/
>>> Posting guidelines: https://github.com/joyent/**node/wiki/Mailing-List-*
>>> *Posting-Guidelines
>>> You received this message because you are subscribed to the Google
>>> Groups "nodejs" group.
>>> To post to this group, send email to nod...@googlegroups.com
>>>
>>> To unsubscribe from thi

Re: [nodejs] ANN: Spoon

2012-10-02 Thread Ted Young
Just wondering, what were your use cases when writing spoon? Was it to solve 
production problems you were facing? Are you using it at nodejitsu?

Cheers,
Ted

On Oct 1, 2012, at 11:28 PM, Fedor Indutny  wrote:

> "I'm just doing my job".
> 
> 
> On Tue, Oct 2, 2012 at 1:55 AM, Mark Hahn  wrote:
> @Marcel just meant that you have started an infinite discussion thread.  He 
> wasn't insulting your module.
> 
> 
> On Mon, Oct 1, 2012 at 2:42 PM, Marcel Laverdet  wrote:
> You have no idea what you've done.
> 
> On Mon, Oct 1, 2012 at 2:11 PM, Fedor Indutny  wrote:
> Hey people,
> 
> Let me introduce you The Spoon: https://github.com/indutny/spoon
> 
> It's a JavaScript to CFG (Control-Flow Graph) transpiler and additionally a 
> CPS (Continuation Passing Style) transpiler too.
> 
> Basically, it lets you to rewrite code like this:
> 
> var data = 'prefix: ' + fs.read('file')
> 
> To this:
> 
> var data;
> fs.read('file', function(err, result) {
>   data = 'prefix: ' + result;
> });
> 
> Please check the readme, if you're interested.
> 
> Cheers,
> Fedor.
> 
> 
> -- 
> Job Board: http://jobs.nodejs.org/
> Posting guidelines: 
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
> 
> 
> -- 
> Job Board: http://jobs.nodejs.org/
> Posting guidelines: 
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
> 
> 
> -- 
> Job Board: http://jobs.nodejs.org/
> Posting guidelines: 
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
> 
> 
> -- 
> Job Board: http://jobs.nodejs.org/
> Posting guidelines: 
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] TypeScript and node.js

2012-10-02 Thread José F . Romaniello
AFAIK Sublime doesn't look all the files, it just provide code completion
for the words within the current file. I saw a while ago an extension that
did something alike but it was very slow.

*My point is* that *this* code completion is useful and it is cheap;

   - I don't have to change to another language (even if is small subset of
   javascript)
   - I don't need Visual Studio Professional, an expensive IDE in terms of
   money and in terms of resources. As my friend Gustavo said visual studio is
   an IDE that can be used to handle from databases to manual tests)
   - sublime is really fast at doing this

If I choose to pay this price for having a very detailed code completion
feature what's the benefit I get? And one of the things i was explaining is
that people always tell me about self documented code and in my experience
that doesn't work quite well. Try to use hibernate or log4j for the first
time without the documentation just with eclipse code completion.


2012/10/2 Mark Hahn 

> > Having intellisense and code completion is a great thing,
>
> Code completion works quite well in sublime text 2.  It just looks at all
> your files and makes very intelligent guesses.
>
> On Tue, Oct 2, 2012 at 10:43 AM, Stephen Handley <
> stephen.hand...@gmail.com> wrote:
>
>> +1 on this being blogged. not into TypeScript but would be very
>> interested in you elaborating on the two rules / js optimization info you
>> mention in the beginning.
>>
>> On Monday, October 1, 2012 4:11:12 PM UTC-7, Dick Hardt wrote:
>>>
>>> +1 to putting this on your blog Isaac.
>>>
>>> On Oct 1, 2012, at 3:50 PM, Rick Waldron  wrote:
>>>
>>>
>>>
>>> On Mon, Oct 1, 2012 at 6:46 PM, Isaac Schlueter  wrote:
>>>
 I've been through the paces quite a few times trying to optimize the
 hell out of very hot code.  In the last few years, this has been
 mostly in V8, of course, but the basic principles are not too far off
 in different JS environments.

 It's important to not put too much weight in rules of thumb, and we
 programmers are particularly bad at that, given our tendencies towards
 abstraction.  But that disclaimer out of the way, I've found very few
 exceptions to these two rules:

 1. If you have more than one of something, use a class; not a "plain
 old object".  I recently changed the "url" module in node-master, and
 made it twice as fast by replacing the plain {}-style objects with Url
 class instances.
 2. Always put the same kinds of things in the same places.  An array
 of numbers should only ever have numbers; an array of objects should
 always only have objects.  If a FooBar object has a "foo" member, then
 set this.foo to *something* in the constructor.

 It's really nice writing code in a loosely typed language.  Most of
 the time, these optimizations are not all that relevant, and when they
 are, the odd exception is probably fine, if it's truly exceptional.
 But when you really care about maximizing speed, that flexibility can
 make it surprisingly tricky to track down all the deviations.

 I'm probably not going to stop using Vim to write code any time soon.
 I'm probably never going to use Windows as my development environment.
  Code completion sort of annoys me, and I've usually turned it off
 when I had editors that did it.  But I'm actually very excited about
 TypeScript.

 It'd be a great idea to write up a TypeScript header file for the API
 surface in Node.  Then, we could automatically test for API
 deviations, validate and flesh out our documentation, etc.  Static
 typing *does* confer some very relevant value.  Typically it does so
 at the cost of flexibility, but this brings a lot of the benefits to
 JavaScript in an optional way, which is very powerful.

 Also, it's not reinventing the language.  It is JavaScript, mostly.
 Or JavaScript entirely, if you just write JS and have a separate
 declaration file, but with the benefits of linting that does more than
 whine about comma placement and indentation, and *actually finds
 subtle errors* in your programs.

 There have been a lot of attempts to come up with ways to add type
 hints and API-auto-documentation to JavaScript.  (JSDoc, YUIDoc,
 AS3/ES4, etc.)  Most of those are not very compelling.  The fact that
 Microsoft is doing this, and building products on top of it (which
 they will inevitably hope to make money on), is very encouraging.  It
 says to me that this is going to be a real thing with real developers
 working on it, with budgets and timelines, and the whole bit.  It's
 somebody's job.


 I had some suggestions that I passed along to the folks at Microsoft:

 1. It'd be *amazing* if there was a way to automatically try to guess
 at the best types, given a set of JavaScript code.  Writing a
 declaration file is 

Re: [nodejs] Timezone shifting - format dates according to locations in a certain date

2012-10-02 Thread Diogo Resende
I was looking for something like that, google search didn't show me that. But 
node-time seems to do what I want for now, at least until momentjs support this.

Thank you 

-- 
Diogo Resende


On Tuesday, October 2, 2012 at 17:14 , Jeff Barczewski wrote:

> I believe Mikeal is referring to the npm module timezone
> 
> npm info timezone # gives you all the package.json info which points you to 
> homepage and source
> 
> http://bigeasy.github.com/timezone/
> 
> 
> From the wiki page, timezone runs on server and client.
> 
> 
> 
> On Tuesday, 2 October 2012 10:27:39 UTC-5, Diogo Resende wrote:
> > Are you talking about timezone-js? I want this server side, not client side.
> > 
> > -- 
> > Diogo Resende
> > 
> > 
> > On Tuesday, October 2, 2012 at 16:21 , Mikeal Rogers wrote:
> > 
> > > i used timezone to do offsets and formatting because it's pure js and 
> > > doesn't have any compiled dependencies like node-time.
> > > 
> > > On Oct 2, 2012, at October 2, 20125:20 PM, Diogo Resende 
> > >  wrote:
> > > > Hi, 
> > > > 
> > > > I think this is essential to anyone. Some people already faced this 
> > > > problem, some probably never heard of it but it's there.
> > > > 
> > > > I use MomentJS [1] to format and node-time [2] to do find the timezone 
> > > > offset.
> > > > 
> > > > https://gist.github.com/3819961
> > > > 
> > > > It works perfectly (I think...) so I wanted to share with anyone 
> > > > interested. If someone has a better or simpler way of doing this please 
> > > > tell me :)
> > > > 
> > > > 
> > > > [1]: http://momentjs.com/
> > > > [2]: https://github.com/TooTallNate/node-time
> > > > 
> > > > -- 
> > > > Diogo Resende
> > > > 
> > > > 
> > > > -- 
> > > > Job Board: http://jobs.nodejs.org/
> > > > Posting guidelines: 
> > > > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> > > > You received this message because you are subscribed to the Google
> > > > Groups "nodejs" group.
> > > > To post to this group, send email to nod...@googlegroups.com 
> > > > (javascript:)
> > > > To unsubscribe from this group, send email to
> > > > nodejs+un...@googlegroups.com (javascript:)
> > > > For more options, visit this group at
> > > > http://groups.google.com/group/nodejs?hl=en?hl=en
> > > 
> > > -- 
> > > Job Board: http://jobs.nodejs.org/
> > > Posting guidelines: 
> > > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> > > You received this message because you are subscribed to the Google
> > > Groups "nodejs" group.
> > > To post to this group, send email to nod...@googlegroups.com (javascript:)
> > > To unsubscribe from this group, send email to
> > > nodejs+un...@googlegroups.com (javascript:)
> > > For more options, visit this group at
> > > http://groups.google.com/group/nodejs?hl=en?hl=en
> > 
> -- 
> Job Board: http://jobs.nodejs.org/
> Posting guidelines: 
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nodejs@googlegroups.com 
> (mailto:nodejs@googlegroups.com)
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com 
> (mailto:nodejs+unsubscr...@googlegroups.com)
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] TypeScript and node.js

2012-10-02 Thread Mark Hahn
> Having intellisense and code completion is a great thing,

Code completion works quite well in sublime text 2.  It just looks at all
your files and makes very intelligent guesses.

On Tue, Oct 2, 2012 at 10:43 AM, Stephen Handley
wrote:

> +1 on this being blogged. not into TypeScript but would be very interested
> in you elaborating on the two rules / js optimization info you mention in
> the beginning.
>
> On Monday, October 1, 2012 4:11:12 PM UTC-7, Dick Hardt wrote:
>>
>> +1 to putting this on your blog Isaac.
>>
>> On Oct 1, 2012, at 3:50 PM, Rick Waldron  wrote:
>>
>>
>>
>> On Mon, Oct 1, 2012 at 6:46 PM, Isaac Schlueter  wrote:
>>
>>> I've been through the paces quite a few times trying to optimize the
>>> hell out of very hot code.  In the last few years, this has been
>>> mostly in V8, of course, but the basic principles are not too far off
>>> in different JS environments.
>>>
>>> It's important to not put too much weight in rules of thumb, and we
>>> programmers are particularly bad at that, given our tendencies towards
>>> abstraction.  But that disclaimer out of the way, I've found very few
>>> exceptions to these two rules:
>>>
>>> 1. If you have more than one of something, use a class; not a "plain
>>> old object".  I recently changed the "url" module in node-master, and
>>> made it twice as fast by replacing the plain {}-style objects with Url
>>> class instances.
>>> 2. Always put the same kinds of things in the same places.  An array
>>> of numbers should only ever have numbers; an array of objects should
>>> always only have objects.  If a FooBar object has a "foo" member, then
>>> set this.foo to *something* in the constructor.
>>>
>>> It's really nice writing code in a loosely typed language.  Most of
>>> the time, these optimizations are not all that relevant, and when they
>>> are, the odd exception is probably fine, if it's truly exceptional.
>>> But when you really care about maximizing speed, that flexibility can
>>> make it surprisingly tricky to track down all the deviations.
>>>
>>> I'm probably not going to stop using Vim to write code any time soon.
>>> I'm probably never going to use Windows as my development environment.
>>>  Code completion sort of annoys me, and I've usually turned it off
>>> when I had editors that did it.  But I'm actually very excited about
>>> TypeScript.
>>>
>>> It'd be a great idea to write up a TypeScript header file for the API
>>> surface in Node.  Then, we could automatically test for API
>>> deviations, validate and flesh out our documentation, etc.  Static
>>> typing *does* confer some very relevant value.  Typically it does so
>>> at the cost of flexibility, but this brings a lot of the benefits to
>>> JavaScript in an optional way, which is very powerful.
>>>
>>> Also, it's not reinventing the language.  It is JavaScript, mostly.
>>> Or JavaScript entirely, if you just write JS and have a separate
>>> declaration file, but with the benefits of linting that does more than
>>> whine about comma placement and indentation, and *actually finds
>>> subtle errors* in your programs.
>>>
>>> There have been a lot of attempts to come up with ways to add type
>>> hints and API-auto-documentation to JavaScript.  (JSDoc, YUIDoc,
>>> AS3/ES4, etc.)  Most of those are not very compelling.  The fact that
>>> Microsoft is doing this, and building products on top of it (which
>>> they will inevitably hope to make money on), is very encouraging.  It
>>> says to me that this is going to be a real thing with real developers
>>> working on it, with budgets and timelines, and the whole bit.  It's
>>> somebody's job.
>>>
>>>
>>> I had some suggestions that I passed along to the folks at Microsoft:
>>>
>>> 1. It'd be *amazing* if there was a way to automatically try to guess
>>> at the best types, given a set of JavaScript code.  Writing a
>>> declaration file is insanely tedious.  I don't want to do it, and
>>> that's a blocker to adoption.  I know that this is a hard problem, and
>>> totally not what you'd expect in a first release, but hey, V8 is
>>> guessing types pretty good, so it must be possible.  That would make
>>> me happy.
>>>
>>> 2. It'd be nice (as I think someone mentioned in this thread) to let
>>> it put run-time type-checking into exposed functions at the API
>>> surface.  If this needed to be a dev flag or something, then that's
>>> fine.  I'd go ahead and let it in exported functions, though.  We have
>>> a lot of that code in Node, and it's tedious to write and maintain.
>>>
>>
>>
>> Isaac,
>>
>> This belongs on your blog, no joke. I'm going to nag you until you do it.
>>
>> Rick
>>
>>
>>
>>>
>>> --
>>> Job Board: http://jobs.nodejs.org/
>>> Posting guidelines: https://github.com/joyent/**node/wiki/Mailing-List-*
>>> *Posting-Guidelines
>>> You received this message because you are subscribed to the Google
>>> Groups "nodejs" group.
>>> To post to this group, send email to no

Re: [nodejs] Re: "Evil OS X"... the perfect client to a node server!

2012-10-02 Thread Mark Hahn
Lay off.

On Tue, Oct 2, 2012 at 6:07 AM, Sotonin  wrote:

> This guy has future serial killer written all over him. Sociopath much?
>
>
> On Tue, Oct 2, 2012 at 6:47 AM, Dennis Kane  wrote:
>
>> I hope you are all aware that I fully expect the reception that I have
>> gotten here.  The accusations of mental illness and trollishness are fully
>> expected.  The only problem is that I have a real life outside of
>> professional programming circles.  I know what it takes to make real things
>> happen in this world.  The fact is that it requires much, much more that
>> mere programming talent to have any kind of impact.  The importance of fact
>> that I put my physical ass on the line in the *real world* in order to make
>> profound connections with *real people* is something that the vast majority
>> of you will never be able to comprehend, which is extremely sad.  I mean, I
>> am here in the deep south, for chrissake, where there are so many
>> hillbillies with shotguns who are constantly on the lookout for guys like
>> me to sneer at and intimidate.
>>
>> So please, be my guest and continue to ridicule in those pithy, sardonic
>> ways that have been perfected over the years on message forums like this.
>>  I am beholden to no one, and it will remain like that.  But please
>> understand that people are falling head over heels for me on a mass level
>> here in the *real world*.  It is just a matter of time before I am able to
>> command their attention and educate them about the Web and about computing
>> in general... so that they will eventually need precisely zero of the
>> services that any of you are offering.
>>
>> Cheers!
>>
>> --
>> Job Board: http://jobs.nodejs.org/
>> Posting guidelines:
>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>> You received this message because you are subscribed to the Google
>> Groups "nodejs" group.
>> To post to this group, send email to nodejs@googlegroups.com
>> To unsubscribe from this group, send email to
>> nodejs+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>
>
>  --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Re: What Editor / OS / Dev enviroment do you use?

2012-10-02 Thread Mark Hahn
Did you just call someone "Tard"?  That has got to be the most rude and
childish thing I've seen on this, or any. technical forum.

On Tue, Oct 2, 2012 at 5:31 AM, Fadrizul H  wrote:

> Lol, Sublime is free to use. You can pay for the registration if you want
> to get rid off the pops up. Tard
>
> Sent from my Windows Phone
> --
> From: Sapardee
> Sent: 2/10/2012 8:24 PM
> To: nodejs@googlegroups.com
> Subject: Re: [nodejs] Re: What Editor / OS / Dev enviroment do you use?
>
> Sublime Text2 is not free, it needs registration to use it..
>  On Sep 26, 2012 4:09 AM, "Bruno Jouhier"  wrote:
>
>> Mac OS X + Sublime Text 2
>>
>> On Thursday, September 20, 2012 6:42:27 PM UTC+2, Andrew Mclagan wrote:
>>>
>>> Im switching to Ubuntu after struggling with windows, i will replace
>>> notepad++ with Vim and finally get into terminal...
>>>
>>> Im interested in what OS / Dev Enviroment other Node.js developers use?
>>>
>>  --
>> Job Board: http://jobs.nodejs.org/
>> Posting guidelines:
>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>> You received this message because you are subscribed to the Google
>> Groups "nodejs" group.
>> To post to this group, send email to nodejs@googlegroups.com
>> To unsubscribe from this group, send email to
>> nodejs+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>
>  --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] TypeScript and node.js

2012-10-02 Thread Stephen Handley
+1 on this being blogged. not into TypeScript but would be very interested 
in you elaborating on the two rules / js optimization info you mention in 
the beginning.

On Monday, October 1, 2012 4:11:12 PM UTC-7, Dick Hardt wrote:
>
> +1 to putting this on your blog Isaac.
>
> On Oct 1, 2012, at 3:50 PM, Rick Waldron > 
> wrote:
>
>
>
> On Mon, Oct 1, 2012 at 6:46 PM, Isaac Schlueter 
> > wrote:
>
>> I've been through the paces quite a few times trying to optimize the
>> hell out of very hot code.  In the last few years, this has been
>> mostly in V8, of course, but the basic principles are not too far off
>> in different JS environments.
>>
>> It's important to not put too much weight in rules of thumb, and we
>> programmers are particularly bad at that, given our tendencies towards
>> abstraction.  But that disclaimer out of the way, I've found very few
>> exceptions to these two rules:
>>
>> 1. If you have more than one of something, use a class; not a "plain
>> old object".  I recently changed the "url" module in node-master, and
>> made it twice as fast by replacing the plain {}-style objects with Url
>> class instances.
>> 2. Always put the same kinds of things in the same places.  An array
>> of numbers should only ever have numbers; an array of objects should
>> always only have objects.  If a FooBar object has a "foo" member, then
>> set this.foo to *something* in the constructor.
>>
>> It's really nice writing code in a loosely typed language.  Most of
>> the time, these optimizations are not all that relevant, and when they
>> are, the odd exception is probably fine, if it's truly exceptional.
>> But when you really care about maximizing speed, that flexibility can
>> make it surprisingly tricky to track down all the deviations.
>>
>> I'm probably not going to stop using Vim to write code any time soon.
>> I'm probably never going to use Windows as my development environment.
>>  Code completion sort of annoys me, and I've usually turned it off
>> when I had editors that did it.  But I'm actually very excited about
>> TypeScript.
>>
>> It'd be a great idea to write up a TypeScript header file for the API
>> surface in Node.  Then, we could automatically test for API
>> deviations, validate and flesh out our documentation, etc.  Static
>> typing *does* confer some very relevant value.  Typically it does so
>> at the cost of flexibility, but this brings a lot of the benefits to
>> JavaScript in an optional way, which is very powerful.
>>
>> Also, it's not reinventing the language.  It is JavaScript, mostly.
>> Or JavaScript entirely, if you just write JS and have a separate
>> declaration file, but with the benefits of linting that does more than
>> whine about comma placement and indentation, and *actually finds
>> subtle errors* in your programs.
>>
>> There have been a lot of attempts to come up with ways to add type
>> hints and API-auto-documentation to JavaScript.  (JSDoc, YUIDoc,
>> AS3/ES4, etc.)  Most of those are not very compelling.  The fact that
>> Microsoft is doing this, and building products on top of it (which
>> they will inevitably hope to make money on), is very encouraging.  It
>> says to me that this is going to be a real thing with real developers
>> working on it, with budgets and timelines, and the whole bit.  It's
>> somebody's job.
>>
>>
>> I had some suggestions that I passed along to the folks at Microsoft:
>>
>> 1. It'd be *amazing* if there was a way to automatically try to guess
>> at the best types, given a set of JavaScript code.  Writing a
>> declaration file is insanely tedious.  I don't want to do it, and
>> that's a blocker to adoption.  I know that this is a hard problem, and
>> totally not what you'd expect in a first release, but hey, V8 is
>> guessing types pretty good, so it must be possible.  That would make
>> me happy.
>>
>> 2. It'd be nice (as I think someone mentioned in this thread) to let
>> it put run-time type-checking into exposed functions at the API
>> surface.  If this needed to be a dev flag or something, then that's
>> fine.  I'd go ahead and let it in exported functions, though.  We have
>> a lot of that code in Node, and it's tedious to write and maintain.
>>
>
>
> Isaac,
>
> This belongs on your blog, no joke. I'm going to nag you until you do it.
>
> Rick
>
>  
>
>>
>> --
>> Job Board: http://jobs.nodejs.org/
>> Posting guidelines: 
>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>> You received this message because you are subscribed to the Google
>> Groups "nodejs" group.
>> To post to this group, send email to nod...@googlegroups.com
>> To unsubscribe from this group, send email to
>> nodejs+un...@googlegroups.com 
>> For more options, visit this group at
>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>
>
>
> -- 
> Job Board: http://jobs.nodejs.org/
> Posting guidelines: 
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Goo

Re: [nodejs] Re: How to for beginners

2012-10-02 Thread Tim Caswell
While it's not super organized and some of the content it quite old,
http://howtonode.org/ has some popular content in it.  I use the
object-graph series heavily when I'm doing my programming classes.
Also http://nodebits.org/ is another site I work on that is inspiring
examples.  Not exactly teaching programming, but more for making
programming fun (which helps aid learning).

On Tue, Oct 2, 2012 at 11:51 AM, Jeff Barczewski
 wrote:
> When I was learning I looked at both of those, so whatever helps you
> understand the concepts (each author is different).
>
> Of the two, Hands-on Node.js goes into more topics with 147 pages and I had
> found to be easy to read and understand. Of the ebooks I had read, I liked
> Hands-on Node.js the best.
>
>  - Hands-on Node.js - 147 pages -
> http://nodetuts.com/handson-nodejs-book.html
>  - Node Beginner book - 63 pages - http://www.nodebeginner.org/
>
> And like Silviu mentioned, some things evolved in the node.js API and
> installation, but the concepts are all still relevant, and if something
> doesn't work, just check the node docs for the specific details on an API.
>
> A couple other resources I have come across:
>
>  - http://book.mixu.net/ - 81 pages
>  - http://nodeguide.com/beginner.html - Felix Geisendörfer's beginner intro
>  - http://visionmedia.github.com/masteringnode/ - 21 pages, many sections
> not completed yet
>  - http://devashish.co.in/tag/nodejs/ - various tutorials
>  - http://justjs.com/ - tutorials
>
>
> PS. Smashing Node.js looks like it covers a nice set of topics from the TOC
> and preview pages on Amazon -
> http://www.amazon.com/Smashing-Node-js-JavaScript-Everywhere-Magazine/dp/1119962595/ref=reg_hu-rd_add_1_dp
>
>
> After you try some of these resources out, you should post your thoughts
> back here to this thread for others to benefit from. It would be nice to
> have some recent comments from a beginner on what areas were difficult to
> understand, which books seemed to explain it the best, etc.
>
> All the best,
>
> Jeff
>
>
> On Tuesday, 2 October 2012 02:43:32 UTC-5, Ismael Gorissen wrote:
>>
>> What do you think about these books "Hands-on Node.js" and "The Node
>> Beginner book" ?
>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


[nodejs] Re: [ANN]: Deferred - Maintainable asynchronous JavaScript with promises

2012-10-02 Thread Jeff Barczewski
Mariusz,

Ah, I didn't catch that it was a different package, I only remembered the 
name and thought that you switched from capital D to lowercase deferred in 
later version. (I'm glad npm doesn't allow conflicts like that any more, is 
just confusing).

Thanks for pointing out that it was really a different package.

I appreciate the info on what I would change to switch though. 

All the best,

Jeff

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


[nodejs] Re: How to for beginners

2012-10-02 Thread Jeff Barczewski
When I was learning I looked at both of those, so whatever helps you 
understand the concepts (each author is different).

Of the two, Hands-on Node.js goes into more topics with 147 pages and I had 
found to be easy to read and understand. Of the ebooks I had read, I liked 
Hands-on Node.js the best.

 - Hands-on Node.js - 147 pages - 
http://nodetuts.com/handson-nodejs-book.html
 - Node Beginner book - 63 pages - http://www.nodebeginner.org/

And like Silviu mentioned, some things evolved in the node.js API and 
installation, but the concepts are all still relevant, and if something 
doesn't work, just check the node docs for the specific details on an API.

A couple other resources I have come across:

 - http://book.mixu.net/ - 81 pages
 - http://nodeguide.com/beginner.html - Felix Geisendörfer's beginner intro
 - http://visionmedia.github.com/masteringnode/ - 21 pages, many sections 
not completed yet
 - http://devashish.co.in/tag/nodejs/ - various tutorials
 - http://justjs.com/ - tutorials


PS. Smashing Node.js looks like it covers a nice set of topics from the TOC 
and preview pages on Amazon - 
http://www.amazon.com/Smashing-Node-js-JavaScript-Everywhere-Magazine/dp/1119962595/ref=reg_hu-rd_add_1_dp


After you try some of these resources out, you should post your thoughts 
back here to this thread for others to benefit from. It would be nice to 
have some recent comments from a beginner on what areas were difficult to 
understand, which books seemed to explain it the best, etc.

All the best,

Jeff


On Tuesday, 2 October 2012 02:43:32 UTC-5, Ismael Gorissen wrote:
>
> What do you think about these books "Hands-on Node.js" and "The Node 
> Beginner book" ?

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


[nodejs] Re: [ANN]: Deferred - Maintainable asynchronous JavaScript with promises

2012-10-02 Thread Mariusz Nowak
Jeff, I think you're talking about different implementation: 
https://npmjs.org/package/Deferred it's still at v0.1.1 and in fact it 
resembles jQuery's Deferred. It was published later on npm with same name 
but uppercased (Today npm wouldn't allow that ;)

For Deferred (one that opened this topic) changes are carefully described 
in https://github.com/medikoo/deferred/blob/master/CHANGES v0.1 -> v0.6 
might be a long read ;)

Answering your questions:

On Tuesday, October 2, 2012 6:01:03 PM UTC+2, Jeff Barczewski wrote:
>
>
>  - .promise() becomes .promise
>
 

Exactly .promise returns something conceptually same as .promise() in 
jQuery's version

>  - Deferred.when()  - I will have to create my own, right?

There's no when in this Deferred implementation. Same can be achieved with:

deferred(promiseOrValue).then(onsuccess, onerror);

 

> Anything else that you remember which will need to change? (I know this 
> was a long time ago when you changed it so not a big deal if you don't 
> remember)
>
>
'fail', 'always' and 'done' can be achieved with 
promise.aside: https://github.com/medikoo/deferred#aside

In general Deferred (v0.6) implementation provides solutions to many other 
use cases, so it has much more to offer. jQuery's implementation is very 
basic, it evolved on client-side where asynchronous programming is not as 
complex as in Node.js

Cheers!
Mariusz

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Timezone shifting - format dates according to locations in a certain date

2012-10-02 Thread Jeff Barczewski
I believe Mikeal is referring to the npm module timezone

npm info timezone # gives you all the package.json info which points you to 
homepage and source

http://bigeasy.github.com/timezone/


>From the wiki page, timezone runs on server and client.



On Tuesday, 2 October 2012 10:27:39 UTC-5, Diogo Resende wrote:
>
> Are you talking about timezone-js? I want this server side, not client 
> side.
>
> -- 
> Diogo Resende
>
> On Tuesday, October 2, 2012 at 16:21 , Mikeal Rogers wrote:
>
> i used timezone to do offsets and formatting because it's pure js and 
> doesn't have any compiled dependencies like node-time.
>
> On Oct 2, 2012, at October 2, 20125:20 PM, Diogo Resende <
> dres...@thinkdigital.pt > wrote:
>
>  Hi, 
>
> I think this is essential to anyone. Some people already faced this 
> problem, some probably never heard of it but it's there.
>
> I use MomentJS [1] to format and node-time [2] to do find the timezone 
> offset.
>
> https://gist.github.com/3819961
>
> It works perfectly (I think...) so I wanted to share with anyone 
> interested. If someone has a better or simpler way of doing this please 
> tell me :)
>
>
> [1]: http://momentjs.com/
> [2]: https://github.com/TooTallNate/node-time
>
> -- 
> Diogo Resende
>
>
> -- 
> Job Board: http://jobs.nodejs.org/
> Posting guidelines: 
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nod...@googlegroups.com 
> To unsubscribe from this group, send email to
> nodejs+un...@googlegroups.com 
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>
>
>  -- 
> Job Board: http://jobs.nodejs.org/
> Posting guidelines: 
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nod...@googlegroups.com 
> To unsubscribe from this group, send email to
> nodejs+un...@googlegroups.com 
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>  
>  
>  

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


[nodejs] Re: [ANN]: Deferred - Maintainable asynchronous JavaScript with promises

2012-10-02 Thread Jeff Barczewski
Mariusz,

I was using an old version of your deferred module, Deferred@0.1.1 which 
was API compatible with jQuery.

I guess for upgrading many things have changed since then:

 - .promise() becomes .promise
 - Deferred.when()  - I will have to create my own, right?

Anything else that you remember which will need to change? (I know this was 
a long time ago when you changed it so not a big deal if you don't remember)


If I want to keep the jQuery.Deferred style API (for consistency on all 
client and server code) but use your latest module, then I guess I need to 
create some light adapters which will use your api under the covers.

If you have any other ideas or thoughts on this let me know.

Thanks in advance!

Jeff


-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


[nodejs] Re: [ANN]: Deferred - Maintainable asynchronous JavaScript with promises

2012-10-02 Thread Jeff Barczewski
Mariusz,

Thanks for comparing with When and also mentioning performance 
characteristics! It really helps to have someone so familiar with the space 
to do such an eval since you know the details inside and out.

All the best,

Jeff

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Timezone shifting - format dates according to locations in a certain date

2012-10-02 Thread Diogo Resende
Are you talking about timezone-js? I want this server side, not client side.

-- 
Diogo Resende


On Tuesday, October 2, 2012 at 16:21 , Mikeal Rogers wrote:

> i used timezone to do offsets and formatting because it's pure js and doesn't 
> have any compiled dependencies like node-time.
> 
> On Oct 2, 2012, at October 2, 20125:20 PM, Diogo Resende 
> mailto:drese...@thinkdigital.pt)> wrote:
> > Hi, 
> > 
> > I think this is essential to anyone. Some people already faced this 
> > problem, some probably never heard of it but it's there.
> > 
> > I use MomentJS [1] to format and node-time [2] to do find the timezone 
> > offset.
> > 
> > https://gist.github.com/3819961
> > 
> > It works perfectly (I think...) so I wanted to share with anyone 
> > interested. If someone has a better or simpler way of doing this please 
> > tell me :)
> > 
> > 
> > [1]: http://momentjs.com/
> > [2]: https://github.com/TooTallNate/node-time
> > 
> > -- 
> > Diogo Resende
> > 
> > 
> > -- 
> > Job Board: http://jobs.nodejs.org/
> > Posting guidelines: 
> > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> > You received this message because you are subscribed to the Google
> > Groups "nodejs" group.
> > To post to this group, send email to nodejs@googlegroups.com 
> > (mailto:nodejs@googlegroups.com)
> > To unsubscribe from this group, send email to
> > nodejs+unsubscr...@googlegroups.com 
> > (mailto:nodejs+unsubscr...@googlegroups.com)
> > For more options, visit this group at
> > http://groups.google.com/group/nodejs?hl=en?hl=en
> 
> -- 
> Job Board: http://jobs.nodejs.org/
> Posting guidelines: 
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nodejs@googlegroups.com 
> (mailto:nodejs@googlegroups.com)
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com 
> (mailto:nodejs+unsubscr...@googlegroups.com)
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Timezone shifting - format dates according to locations in a certain date

2012-10-02 Thread Mikeal Rogers
i used timezone to do offsets and formatting because it's pure js and doesn't 
have any compiled dependencies like node-time.

On Oct 2, 2012, at October 2, 20125:20 PM, Diogo Resende 
 wrote:

> Hi,
> 
> I think this is essential to anyone. Some people already faced this problem, 
> some probably never heard of it but it's there.
> 
> I use MomentJS [1] to format and node-time [2] to do find the timezone offset.
> 
> https://gist.github.com/3819961
> 
> It works perfectly (I think...) so I wanted to share with anyone interested. 
> If someone has a better or simpler way of doing this please tell me :)
> 
> 
> [1]: http://momentjs.com/
> [2]: https://github.com/TooTallNate/node-time
> 
> -- 
> Diogo Resende
> 
> 
> -- 
> Job Board: http://jobs.nodejs.org/
> Posting guidelines: 
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


[nodejs] Timezone shifting - format dates according to locations in a certain date

2012-10-02 Thread Diogo Resende
Hi, 

I think this is essential to anyone. Some people already faced this problem, 
some probably never heard of it but it's there.

I use MomentJS [1] to format and node-time [2] to do find the timezone offset.

https://gist.github.com/3819961

It works perfectly (I think...) so I wanted to share with anyone interested. If 
someone has a better or simpler way of doing this please tell me :)


[1]: http://momentjs.com/
[2]: https://github.com/TooTallNate/node-time

-- 
Diogo Resende

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] How to: Convert C libraries to gyp

2012-10-02 Thread Tim Caswell
Oh right.  I'll forward that to my people who have been complaining.
Thanks again for all the awesome writeups.

On Tue, Oct 2, 2012 at 9:44 AM, Nathan Rajlich  wrote:
> Tim, have you read http://n8.io/cross-compiling-nodejs-v0.8/ ?
>
>
> On Tue, Oct 2, 2012 at 7:22 AM, Tim Caswell  wrote:
>>
>> Sounds great, except I've been having trouble using gyp to
>> cross-compile.  Is cross-compiling something that gyp supports.  In
>> particular I want to compile for various arm variants and the mips
>> that's often found in routers.
>>
>> I'd love to convert all my dependencies to using gyp, but if I can't
>> then cross-compile it will have been a waste of time when I need that.
>>
>> Great work on the article!  Sorry for hijacking the thread.  It just
>> made me think of it.
>>
>> On Tue, Oct 2, 2012 at 8:30 AM, Ben Noordhuis  wrote:
>> > On Tue, Oct 2, 2012 at 6:13 AM, Nathan Rajlich 
>> > wrote:
>> >> Calling all native module authors!
>> >>
>> >> http://n8.io/converting-a-c-library-to-gyp/
>> >>
>> >> Linked is a blog article I've written about converting C libraries to
>> >> use
>> >> gyp. If you have a native module that dynamically links to some
>> >> external
>> >> library, then you should definitely give it a read. So far I've applied
>> >> this
>> >> method to node-ffi (libffi), node-lame (libmp3lame) and node-expat
>> >> (libexpat, still awaiting Pull Request merge from @astro), and it works
>> >> great. Cheers!
>> >
>> > Upvote for great good. Every module author should read it.
>> >
>> > --
>> > Job Board: http://jobs.nodejs.org/
>> > Posting guidelines:
>> > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>> > You received this message because you are subscribed to the Google
>> > Groups "nodejs" group.
>> > To post to this group, send email to nodejs@googlegroups.com
>> > To unsubscribe from this group, send email to
>> > nodejs+unsubscr...@googlegroups.com
>> > For more options, visit this group at
>> > http://groups.google.com/group/nodejs?hl=en?hl=en
>>
>> --
>> Job Board: http://jobs.nodejs.org/
>> Posting guidelines:
>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>> You received this message because you are subscribed to the Google
>> Groups "nodejs" group.
>> To post to this group, send email to nodejs@googlegroups.com
>> To unsubscribe from this group, send email to
>> nodejs+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/nodejs?hl=en?hl=en
>
>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] How to: Convert C libraries to gyp

2012-10-02 Thread Nathan Rajlich
Tim, have you read http://n8.io/cross-compiling-nodejs-v0.8/ ?

On Tue, Oct 2, 2012 at 7:22 AM, Tim Caswell  wrote:

> Sounds great, except I've been having trouble using gyp to
> cross-compile.  Is cross-compiling something that gyp supports.  In
> particular I want to compile for various arm variants and the mips
> that's often found in routers.
>
> I'd love to convert all my dependencies to using gyp, but if I can't
> then cross-compile it will have been a waste of time when I need that.
>
> Great work on the article!  Sorry for hijacking the thread.  It just
> made me think of it.
>
> On Tue, Oct 2, 2012 at 8:30 AM, Ben Noordhuis  wrote:
> > On Tue, Oct 2, 2012 at 6:13 AM, Nathan Rajlich 
> wrote:
> >> Calling all native module authors!
> >>
> >> http://n8.io/converting-a-c-library-to-gyp/
> >>
> >> Linked is a blog article I've written about converting C libraries to
> use
> >> gyp. If you have a native module that dynamically links to some external
> >> library, then you should definitely give it a read. So far I've applied
> this
> >> method to node-ffi (libffi), node-lame (libmp3lame) and node-expat
> >> (libexpat, still awaiting Pull Request merge from @astro), and it works
> >> great. Cheers!
> >
> > Upvote for great good. Every module author should read it.
> >
> > --
> > Job Board: http://jobs.nodejs.org/
> > Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> > You received this message because you are subscribed to the Google
> > Groups "nodejs" group.
> > To post to this group, send email to nodejs@googlegroups.com
> > To unsubscribe from this group, send email to
> > nodejs+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/nodejs?hl=en?hl=en
>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] How to: Convert C libraries to gyp

2012-10-02 Thread Tim Caswell
Sounds great, except I've been having trouble using gyp to
cross-compile.  Is cross-compiling something that gyp supports.  In
particular I want to compile for various arm variants and the mips
that's often found in routers.

I'd love to convert all my dependencies to using gyp, but if I can't
then cross-compile it will have been a waste of time when I need that.

Great work on the article!  Sorry for hijacking the thread.  It just
made me think of it.

On Tue, Oct 2, 2012 at 8:30 AM, Ben Noordhuis  wrote:
> On Tue, Oct 2, 2012 at 6:13 AM, Nathan Rajlich  wrote:
>> Calling all native module authors!
>>
>> http://n8.io/converting-a-c-library-to-gyp/
>>
>> Linked is a blog article I've written about converting C libraries to use
>> gyp. If you have a native module that dynamically links to some external
>> library, then you should definitely give it a read. So far I've applied this
>> method to node-ffi (libffi), node-lame (libmp3lame) and node-expat
>> (libexpat, still awaiting Pull Request merge from @astro), and it works
>> great. Cheers!
>
> Upvote for great good. Every module author should read it.
>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines: 
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


[nodejs] Re: [ANN]: Deferred - Maintainable asynchronous JavaScript with promises

2012-10-02 Thread Domenic Denicola
https://github.com/kriskowal/q/issues/86, although it's been dormant 
waiting for me to finish the branch

On Tuesday, October 2, 2012 9:36:53 AM UTC-4, Mariusz Nowak wrote:
>
> Domenic, I'll be very happy to join. Where exactly you're discussing it? Q 
> mailing list?
>
>
> On Tuesday, October 2, 2012 3:32:13 PM UTC+2, Domenic Denicola wrote:
>>
>>
>>
>> On Monday, October 1, 2012 3:46:19 PM UTC-4, Mariusz Nowak wrote:
>>>
>>>
>>> In Deferred I solved it by making end function with same signature as 
>>> then:
>>>
>>> promise.end(function (value) {
>>>// do something with value
>>> });
>>>
>>> If onerror callback is not provided, eventual error will just throw. So 
>>> no extra (not needed) promise is created and any error either returned by 
>>> promise or thrown in success handler will be exposed, that's what you 
>>> should expect.
>>>
>>
>> In Q we will be adding this functionality as .done(), so as to better 
>> match WinJS and (sort of) jQuery. .end() will become deprecated. It'd be 
>> cool if you wanted to join us in standardizing on that API!
>>
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


[nodejs] Re: [ANN]: Deferred - Maintainable asynchronous JavaScript with promises

2012-10-02 Thread Mariusz Nowak
Domenic, I'll be very happy to join. Where exactly you're discussing it? Q 
mailing list?


On Tuesday, October 2, 2012 3:32:13 PM UTC+2, Domenic Denicola wrote:
>
>
>
> On Monday, October 1, 2012 3:46:19 PM UTC-4, Mariusz Nowak wrote:
>>
>>
>> In Deferred I solved it by making end function with same signature as 
>> then:
>>
>> promise.end(function (value) {
>>// do something with value
>> });
>>
>> If onerror callback is not provided, eventual error will just throw. So 
>> no extra (not needed) promise is created and any error either returned by 
>> promise or thrown in success handler will be exposed, that's what you 
>> should expect.
>>
>
> In Q we will be adding this functionality as .done(), so as to better 
> match WinJS and (sort of) jQuery. .end() will become deprecated. It'd be 
> cool if you wanted to join us in standardizing on that API!
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


[nodejs] Re: [ANN]: Deferred - Maintainable asynchronous JavaScript with promises

2012-10-02 Thread Domenic Denicola


On Monday, October 1, 2012 3:46:19 PM UTC-4, Mariusz Nowak wrote:
>
>
> In Deferred I solved it by making end function with same signature as then:
>
> promise.end(function (value) {
>// do something with value
> });
>
> If onerror callback is not provided, eventual error will just throw. So no 
> extra (not needed) promise is created and any error either returned by 
> promise or thrown in success handler will be exposed, that's what you 
> should expect.
>

In Q we will be adding this functionality as .done(), so as to better match 
WinJS and (sort of) jQuery. .end() will become deprecated. It'd be cool if 
you wanted to join us in standardizing on that API!

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] How to: Convert C libraries to gyp

2012-10-02 Thread Ben Noordhuis
On Tue, Oct 2, 2012 at 6:13 AM, Nathan Rajlich  wrote:
> Calling all native module authors!
>
> http://n8.io/converting-a-c-library-to-gyp/
>
> Linked is a blog article I've written about converting C libraries to use
> gyp. If you have a native module that dynamically links to some external
> library, then you should definitely give it a read. So far I've applied this
> method to node-ffi (libffi), node-lame (libmp3lame) and node-expat
> (libexpat, still awaiting Pull Request merge from @astro), and it works
> great. Cheers!

Upvote for great good. Every module author should read it.

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Re: "Evil OS X"... the perfect client to a node server!

2012-10-02 Thread Sotonin
This guy has future serial killer written all over him. Sociopath much?

On Tue, Oct 2, 2012 at 6:47 AM, Dennis Kane  wrote:

> I hope you are all aware that I fully expect the reception that I have
> gotten here.  The accusations of mental illness and trollishness are fully
> expected.  The only problem is that I have a real life outside of
> professional programming circles.  I know what it takes to make real things
> happen in this world.  The fact is that it requires much, much more that
> mere programming talent to have any kind of impact.  The importance of fact
> that I put my physical ass on the line in the *real world* in order to make
> profound connections with *real people* is something that the vast majority
> of you will never be able to comprehend, which is extremely sad.  I mean, I
> am here in the deep south, for chrissake, where there are so many
> hillbillies with shotguns who are constantly on the lookout for guys like
> me to sneer at and intimidate.
>
> So please, be my guest and continue to ridicule in those pithy, sardonic
> ways that have been perfected over the years on message forums like this.
>  I am beholden to no one, and it will remain like that.  But please
> understand that people are falling head over heels for me on a mass level
> here in the *real world*.  It is just a matter of time before I am able to
> command their attention and educate them about the Web and about computing
> in general... so that they will eventually need precisely zero of the
> services that any of you are offering.
>
> Cheers!
>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] What Editor / OS / Dev enviroment do you use?

2012-10-02 Thread Arunoda Susiripala
Untar it and just click the binary. Its that simple.

On Tuesday, October 2, 2012, Sapardee  wrote:
> Has Anybody tried to install sublime text2 on ubuntu, i need guidance how
to install it on ubuntu..
>
> On Oct 2, 2012 7:50 PM, "José F. Romaniello" 
wrote:
>
> for me, it worth every penny.
> TBH the popup didn't bother me, I choose to pay to this guy because his
really nice job and to keep him working on cool features :)
>
> 2012/10/2 Sapardee 
>
> Sublime Text2 is not free, it needs registration to use it..
>
> On Sep 26, 2012 4:09 AM, "Bruno Jouhier"  wrote:
>
> Mac OS X + Sublime Text 2
>
> On Thursday, September 20, 2012 6:42:27 PM UTC+2, Andrew Mclagan wrote:
>
> Im switching to Ubuntu after struggling with windows, i will replace
notepad++ with Vim and finally get into terminal...
> Im interested in what OS / Dev Enviroment other Node.js developers use?
>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
>

-- 
Arunoda Susiripala

@arunoda 
https://github.com/arunoda
http://www.linkedin.com/in/arunoda

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Re: What Editor / OS / Dev enviroment do you use?

2012-10-02 Thread Ian Lawrence
Hi

On Tue, Oct 2, 2012 at 8:54 AM, Sapardee  wrote:
> Has Anybody tried to install sublime text2 on ubuntu, i need guidance how to
> install it on ubuntu..


I followed this

http://www.technoreply.com/how-to-install-sublime-text-2-on-ubuntu-12-04-unity/

or it seems there there is a ppa (untried)

sudo add-apt-repository ppa:webupd8team/sublime-text-2
sudo apt-get update

Then, install Sublime Text 2 stable build:
sudo apt-get install sublime-text

Regards

-- 
Ian Lawrence
Tel: (+55 92) 88017824
E-mail: i...@codezon.com
Web: http://ianlawrence.info
Open Web Foundation, member
Author, Professional Ubuntu Mobile Development (Wiley 2009)

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Re: What Editor / OS / Dev enviroment do you use?

2012-10-02 Thread Sapardee
Has Anybody tried to install sublime text2 on ubuntu, i need guidance how
to install it on ubuntu..
On Oct 2, 2012 7:50 PM, "José F. Romaniello"  wrote:

> for me, it worth every penny.
>
> TBH the popup didn't bother me, I choose to pay to this guy because his
> really nice job and to keep him working on cool features :)
>
> 2012/10/2 Sapardee 
>
>> Sublime Text2 is not free, it needs registration to use it..
>>  On Sep 26, 2012 4:09 AM, "Bruno Jouhier"  wrote:
>>
>>> Mac OS X + Sublime Text 2
>>>
>>> On Thursday, September 20, 2012 6:42:27 PM UTC+2, Andrew Mclagan wrote:

 Im switching to Ubuntu after struggling with windows, i will replace
 notepad++ with Vim and finally get into terminal...

 Im interested in what OS / Dev Enviroment other Node.js developers use?

>>>  --
>>> Job Board: http://jobs.nodejs.org/
>>> Posting guidelines:
>>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>>> You received this message because you are subscribed to the Google
>>> Groups "nodejs" group.
>>> To post to this group, send email to nodejs@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> nodejs+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>>
>>  --
>> Job Board: http://jobs.nodejs.org/
>> Posting guidelines:
>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>> You received this message because you are subscribed to the Google
>> Groups "nodejs" group.
>> To post to this group, send email to nodejs@googlegroups.com
>> To unsubscribe from this group, send email to
>> nodejs+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>
>
>  --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Re: What Editor / OS / Dev enviroment do you use?

2012-10-02 Thread José F . Romaniello
for me, it worth every penny.

TBH the popup didn't bother me, I choose to pay to this guy because his
really nice job and to keep him working on cool features :)

2012/10/2 Sapardee 

> Sublime Text2 is not free, it needs registration to use it..
>  On Sep 26, 2012 4:09 AM, "Bruno Jouhier"  wrote:
>
>> Mac OS X + Sublime Text 2
>>
>> On Thursday, September 20, 2012 6:42:27 PM UTC+2, Andrew Mclagan wrote:
>>>
>>> Im switching to Ubuntu after struggling with windows, i will replace
>>> notepad++ with Vim and finally get into terminal...
>>>
>>> Im interested in what OS / Dev Enviroment other Node.js developers use?
>>>
>>  --
>> Job Board: http://jobs.nodejs.org/
>> Posting guidelines:
>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>> You received this message because you are subscribed to the Google
>> Groups "nodejs" group.
>> To post to this group, send email to nodejs@googlegroups.com
>> To unsubscribe from this group, send email to
>> nodejs+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>
>  --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] TypeScript and node.js

2012-10-02 Thread José F . Romaniello
+1. I come from .Net (I am C# MVP) and this is exactly my opinion. TDD
saves me from debugging not statical typing.

There is also another confusion I see a lot, when talking about node and
JavaScript with people that comes from .Net and Java often I heard things
like:

- "it is not self documented"
- "you dont have intellisense, how do you know how to call this api? "
- "this library uses new Thing() and this other one uses thing(), how do
you know which one"

Having intellisense and code completion is a great thing, but do the
exercise of trying to use [N]Hibernate (which is a big ORM library) without
going to the website to see the usage... Or even better try to use log4net
which is an small logging library without going to the documentation. It is
a plus but it is just not enough, and you have to pay a big price.


2012/10/2 greelgorke 

> A word about saving debugging time through statical typing: I come from
> java, and i can tell, that the strongly typed environment never reduced the
> debugging effort for me. 'use strict'-pragma, inclusive existence checking
> and unit-test save me from debugging not statical types. in comparison with
> java i save much development time with js.
>
> plus: maintainability is a two headed beast, and it comes first through a
> clean code und documentation, it don't really matters which language it is.
>
> Typescript sounds more like a me2 to me, nothing more. i wonder if it will
> be there in 1-3 years or even leave the .net ecosystem.
>
>
> Am Montag, 1. Oktober 2012 22:50:01 UTC+2 schrieb Dick Hardt:
>>
>>
>> On Oct 1, 2012, at 1:40 PM, José F. Romaniello 
>> wrote:
>>
>>
>> 2012/10/1 Dick Hardt 
>>
>> + Brings Visual Studio developers to node.js
>>
>>
>>
>> I was wondering about this... in the 
>> video
>>  he
>> does a lot of emphasis in the code completion (intellisense). What is the
>> value of this outside Visual Studio? Why you will make your javascript
>> typed? just to compile it into something similar and get compiler errors?
>>
>>
>> Many code editors do code completion -- it is a great productivity tool
>> for developers ramping on using modules they are not intimately familiar
>> with. MS made the code available which makes it easier for other editors /
>> IDEs to do the same.
>>
>> For less sophisticated developers (most people, and most of the VS
>> market), the compiler errors will remove much debugging frustration and
>> allow them to focus on creating rather than debugging.
>>
>> Code completion was a HUGE feature for Perl and Python developers when I
>> built Komodo at ActiveState.
>>
>> -- Dick
>>
>>  --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


RE: [nodejs] Re: What Editor / OS / Dev enviroment do you use?

2012-10-02 Thread Fadrizul H
Lol, Sublime is free to use. You can pay for the registration if you want
to get rid off the pops up. Tard

Sent from my Windows Phone
--
From: Sapardee
Sent: 2/10/2012 8:24 PM
To: nodejs@googlegroups.com
Subject: Re: [nodejs] Re: What Editor / OS / Dev enviroment do you use?

Sublime Text2 is not free, it needs registration to use it..
 On Sep 26, 2012 4:09 AM, "Bruno Jouhier"  wrote:

> Mac OS X + Sublime Text 2
>
> On Thursday, September 20, 2012 6:42:27 PM UTC+2, Andrew Mclagan wrote:
>>
>> Im switching to Ubuntu after struggling with windows, i will replace
>> notepad++ with Vim and finally get into terminal...
>>
>> Im interested in what OS / Dev Enviroment other Node.js developers use?
>>
>  --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>
 --
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Re: What Editor / OS / Dev enviroment do you use?

2012-10-02 Thread Sapardee
Sublime Text2 is not free, it needs registration to use it..
 On Sep 26, 2012 4:09 AM, "Bruno Jouhier"  wrote:

> Mac OS X + Sublime Text 2
>
> On Thursday, September 20, 2012 6:42:27 PM UTC+2, Andrew Mclagan wrote:
>>
>> Im switching to Ubuntu after struggling with windows, i will replace
>> notepad++ with Vim and finally get into terminal...
>>
>> Im interested in what OS / Dev Enviroment other Node.js developers use?
>>
>  --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


[nodejs] Re: What Editor / OS / Dev enviroment do you use?

2012-10-02 Thread Karl
Or left click = copy, right click = paste, PuTTY style

El jueves, 20 de septiembre de 2012 18:42:27 UTC+2, Andrew Mclagan escribió:
>
> Im switching to Ubuntu after struggling with windows, i will replace 
> notepad++ with Vim and finally get into terminal... 
>
> Im interested in what OS / Dev Enviroment other Node.js developers use?
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


[nodejs] Re: What Editor / OS / Dev enviroment do you use?

2012-10-02 Thread Shogun
Mac OSX + Textmate, sometimes Cloud9 or Sublime Text 2

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] TypeScript and node.js

2012-10-02 Thread greelgorke
A word about saving debugging time through statical typing: I come from 
java, and i can tell, that the strongly typed environment never reduced the 
debugging effort for me. 'use strict'-pragma, inclusive existence checking 
and unit-test save me from debugging not statical types. in comparison with 
java i save much development time with js.

plus: maintainability is a two headed beast, and it comes first through a 
clean code und documentation, it don't really matters which language it is.

Typescript sounds more like a me2 to me, nothing more. i wonder if it will 
be there in 1-3 years or even leave the .net ecosystem.


Am Montag, 1. Oktober 2012 22:50:01 UTC+2 schrieb Dick Hardt:
>
>
> On Oct 1, 2012, at 1:40 PM, José F. Romaniello 
> > 
> wrote:
>
>
> 2012/10/1 Dick Hardt >
>
>> + Brings Visual Studio developers to node.js
>
>
>
> I was wondering about this... in the 
> video 
> he 
> does a lot of emphasis in the code completion (intellisense). What is the 
> value of this outside Visual Studio? Why you will make your javascript 
> typed? just to compile it into something similar and get compiler errors?
>
>
> Many code editors do code completion -- it is a great productivity tool 
> for developers ramping on using modules they are not intimately familiar 
> with. MS made the code available which makes it easier for other editors / 
> IDEs to do the same.
>
> For less sophisticated developers (most people, and most of the VS 
> market), the compiler errors will remove much debugging frustration and 
> allow them to focus on creating rather than debugging.
>
> Code completion was a HUGE feature for Perl and Python developers when I 
> built Komodo at ActiveState.
>
> -- Dick
>
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


[nodejs] Re: "Evil OS X"... the perfect client to a node server!

2012-10-02 Thread Dennis Kane
I hope you are all aware that I fully expect the reception that I have 
gotten here.  The accusations of mental illness and trollishness are fully 
expected.  The only problem is that I have a real life outside of 
professional programming circles.  I know what it takes to make real things 
happen in this world.  The fact is that it requires much, much more that 
mere programming talent to have any kind of impact.  The importance of fact 
that I put my physical ass on the line in the *real world* in order to make 
profound connections with *real people* is something that the vast majority 
of you will never be able to comprehend, which is extremely sad.  I mean, I 
am here in the deep south, for chrissake, where there are so many 
hillbillies with shotguns who are constantly on the lookout for guys like 
me to sneer at and intimidate.

So please, be my guest and continue to ridicule in those pithy, sardonic 
ways that have been perfected over the years on message forums like this. 
 I am beholden to no one, and it will remain like that.  But please 
understand that people are falling head over heels for me on a mass level 
here in the *real world*.  It is just a matter of time before I am able to 
command their attention and educate them about the Web and about computing 
in general... so that they will eventually need precisely zero of the 
services that any of you are offering.

Cheers!

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Re: What Editor / OS / Dev enviroment do you use?

2012-10-02 Thread klrumpf

  
  

  Or left select to highlight, right click to paste like PuTTY




On 02/10/12 11:38, Joe Developer wrote:

  
  On Tue, Oct 2, 2012 at 5:28 AM, Alexey
Petrushin 
wrote:

  Update: huh, I didn't realized that You meant often used
tty ctrl+c signal :). Yea, agreed it's used 
  even more often than copy.
  Still using ctrl+shift+c/v for copy/paste feels very
inconvenient.



Mouse select to highlight, middle-click to paste - if you
  want convenience.
 

  

  On Tuesday, October 2, 2012 2:22:48 AM UTC+4, Alexey
  Petrushin wrote:
  

  > Why on earth do you want control+c and control+v
  overriding the terminals input?
Because in most cases it's used to copy/paste text
  from and to. I believe copy/paste support is 
more important from the perspective of ergonomics
  and usability than tty support.
  
  -- 
  Job Board: http://jobs.nodejs.org/
  Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
  You received this message because you are subscribed to
  the Google
  Groups "nodejs" group.
  To post to this group, send email to nodejs@googlegroups.com
  To unsubscribe from this group, send email to
  nodejs+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/nodejs?hl=en?hl=en

  

  
  
  -- 
  Job Board: http://jobs.nodejs.org/
  Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
  You received this message because you are subscribed to the Google
  Groups "nodejs" group.
  To post to this group, send email to nodejs@googlegroups.com
  To unsubscribe from this group, send email to
  nodejs+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/nodejs?hl=en?hl=en

  




-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Re: What Editor / OS / Dev enviroment do you use?

2012-10-02 Thread Joe Developer
On Tue, Oct 2, 2012 at 5:28 AM, Alexey Petrushin  wrote:

> Update: huh, I didn't realized that You meant often used tty ctrl+c signal
> :). Yea, agreed it's used
> even more often than copy.
> Still using ctrl+shift+c/v for copy/paste feels very inconvenient.
>

Mouse select to highlight, middle-click to paste - if you want convenience.


>
> On Tuesday, October 2, 2012 2:22:48 AM UTC+4, Alexey Petrushin wrote:
>>
>> > Why on earth do you want control+c and control+v overriding the
>> terminals input?
>> Because in most cases it's used to copy/paste text from and to. I believe
>> copy/paste support is
>> more important from the perspective of ergonomics and usability than tty
>> support.
>>
>  --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


[nodejs] Re: How to for beginners

2012-10-02 Thread Ismael Gorissen
What do you think about these books "Hands-on Node.js" and "The Node 
Beginner book" ?

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en