[nodejs] npm package: cluster-master fails on Windows (REPL). But why does it even include a REPL (which is not supported on all platforms)?

2012-10-27 Thread Fredrik O
I am writing this post here because I don´t know anywhere else I should write it. It is about the npm package: cluster-master (https://npmjs.org/package/cluster-master). I have precise notice that the package is not supported on windows. It surprised me much. When I checked the source code

[nodejs] announce node-httpp - run HTTP over UDP(HTTPP) with Node.js

2012-10-27 Thread tom
node-httpp is the part of HTTPP, that stands for HTTP over UDP and bring Web in P2P style against client/central-server. It consists of three modules: udt.js, httpp.js, httpps.js, all them keep the same api as net.js/http.js/https.js. It's simple to use node-httpp: 1. replace net with udt, http

[nodejs] Problem using redis + MULTI - hiredis

2012-10-27 Thread nop
Hi Andrea. What version of node_redis are you using? This bug may be related to your problem: https://github.com/mranney/node_redis/issues/283 -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this

[nodejs] Question on error propagation with domains

2012-10-27 Thread Damien Feugas
Hi there. I'm starting using domain to catch exception from asynchronous code (the famous r.js optimizer, which unfortunately do not report error within callbacks). I was able to catch errors, but something was weird: even caught, an error still pe propagated to other 'uncaughtException'

Re: [nodejs] announce node-httpp - run HTTP over UDP(HTTPP) with Node.js

2012-10-27 Thread Nathan Rajlich
Sounds pretty cool. How come you did it as a fork of node rather than an external module? On Sat, Oct 27, 2012 at 5:45 AM, tom zs68j...@gmail.com wrote: node-httpp is the part of HTTPP, that stands for HTTP over UDP and bring Web in P2P style against client/central-server. It consists of

Re: [nodejs] An idea how to probably improve Date.now() (new Date, etc.) speed.

2012-10-27 Thread niknah
It's pretty quick for me. I noticed that your timing is 27secs for user, and 2 minutes for system. When you run it, is there any CPU usage? Try this on google chrome some other browser to see if it's a node, v8 or computer related problem... http://jsperf.com/new-date-value/9 On

[nodejs] Re: Binding to IPv4/IPv6

2012-10-27 Thread Trevor Norris
On Friday, October 26, 2012 7:36:05 PM UTC-7, mscdex wrote: That's for Socket.connect(). Server.listen() uses 0.0.0.0 if no IP/ host is given after the port number. Well, that's what I get for trying to post and put my kid down at the same time. Did try leaving out the host and it only

Re: [nodejs] Re: Server-to-Server Communication

2012-10-27 Thread Dan Milon
IMO socket.io/engine.io aim for server-client communication. But it would be interesting to see some numbers. danmilon. On 10/28/2012 12:49 AM, Marak Squires wrote: Use https://github.com/learnboost/engine.io On Sat, Oct 27, 2012 at 2:31 PM, Jacob Groundwater ja...@nodefly.com

Re: [nodejs] Re: Server-to-Server Communication

2012-10-27 Thread Jacob Groundwater
Axon https://github.com/visionmedia/axon looks promising. I will be evaluating that next. I'm am unclear as to what engine.io is trying to accomplish.The page says: Engine is the implementation of transport-based cross-browser/cross-device bi-directional communication layer for

[nodejs] Writing 500kb of JSON

2012-10-27 Thread P. Douglas Reeder
One of the things my app needs to do is write a large JSON file to disk. Currently, it's implemented naively: writeStream = fs.createWriteStream(process.cwd() + /staticRoot/album.json, {encoding: utf8}); writeStream.addListener(error, function (error) { console.error(album.json:, error); if

[nodejs] Re: Writing 500kb of JSON

2012-10-27 Thread mscdex
On Oct 27, 11:02 pm, P. Douglas Reeder reeder...@gmail.com wrote: What's the best strategy for writing large JSON files? You could look into using a streaming JSON module. Here's one you might try: https://github.com/dominictarr/JSONStream -- Job Board: http://jobs.nodejs.org/ Posting

Re: [nodejs] An idea how to probably improve Date.now() (new Date, etc.) speed.

2012-10-27 Thread Alexey Kupershtokh
Testing in Chrome 22.0.1229.94 on Windows Vista: Using .valueOf() | new Date().valueOf(); | 3,041,709±0.52% | 57% slower Using .getTime() | new Date().getTime(); | 3,123,610±0.40% | 55% slower Using +new Date() | +new Date(); |1,945,890±5.94% | 74% slower Using +new Date | +new Date;

Re: [nodejs] Pass an int to a node.js addon

2012-10-27 Thread NodeNinja
If you want some crazy v8 type conversion library, there is v8-juice: http://code.google.com/p/v8-juice/wiki/ConvertingTypes Thats wonderful info Dan!! Many thanks! -- Ben, Thanks for the code snippet is an array of pointers also created in the same style?

[nodejs] Re: Use of Node / Express / MongoDB for a e-commerce website?

2012-10-27 Thread Sam Stainsby
On Wed, 24 Oct 2012 12:44:32 -0700, Alexey Petrushin wrote: Hmmm, I spent a couple of Years working with JEE and Oracle big part of it - fixing and optimizing SQL queries - this work made me totally hate all this stuff, so, I'm biased a little against RDBMS. As for developer productivity - I

Re: [nodejs] Writing 500kb of JSON

2012-10-27 Thread dolphin278
Check https://github.com/dominictarr/JSONStream On 28.10.2012, at 7:02, P. Douglas Reeder reeder...@gmail.com wrote: One of the things my app needs to do is write a large JSON file to disk. Currently, it's implemented naively: writeStream = fs.createWriteStream(process.cwd() +

Re: [nodejs] Re: Server-to-Server Communication

2012-10-27 Thread Michael Schoonmaker
ZeroMQ is designed for server-to-server communication, and works really well. For my current project I wanted a call-and-callback style structure, so https://github.com/Schoonology/shuttle was born. The Shuttle framework may be exactly what you're looking for, but if not I hope it's a useful

[nodejs] node js on android OS, I'm looking for new solutions

2012-10-27 Thread Samuel A
node js on android sound's like great idea. but when you search about the subject you'll find no good solution and here is some of my problems: i want to run node js \ v8 like any other android app. just download apk and run. but in this case we'll never have direct access to the hardware. and