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

2012-10-27 Thread Marak Squires
No, that is not correct. https://github.com/LearnBoost/engine.io-client On Sat, Oct 27, 2012 at 11:54 PM, Arnout Kazemier wrote: > Dur engine.io is for client side communication, no serverside. > > On Oct 27, 2012, at 11:59 PM, Dan Milon wrote: > > > IMO socket.io/engine.io aim fo

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

2012-10-27 Thread Arnout Kazemier
Dur engine.io is for client side communication, no serverside. On Oct 27, 2012, at 11:59 PM, Dan Milon wrote: > 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 wr

[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

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 examp

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" 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() + > "/staticRoot/alb

[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 -

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?

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; |2,050,588±3.

[nodejs] Re: Writing 500kb of JSON

2012-10-27 Thread mscdex
On Oct 27, 11:02 pm, "P. Douglas Reeder" 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 guidelines: https://gith

[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:", er

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

2012-10-27 Thread Jacob Groundwater
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 > Socket.IO

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 > w

[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 Marak Squires
Use https://github.com/learnboost/engine.io On Sat, Oct 27, 2012 at 2:31 PM, Jacob Groundwater wrote: > It looks like ZeroMQ does not play well with the asynchronous nature of > Node. Take a look at the following gist: > > https://gist.github.com/3966362 > > I would expect to see three replies fr

[nodejs] ArrayBuffer / Buffer Objects in C++ Addons

2012-10-27 Thread Henri Tuhola
I'd need to pass some binary data out of an addon, but node.js addon documentation doesn't seem to cover it. This is what I'm working on: https://github.com/cheery/node-video node-video needs the buffer objects to provide composite/native window handles that can be transferred over unix sockets

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

2012-10-27 Thread Jacob Groundwater
It looks like ZeroMQ does not play well with the asynchronous nature of Node. Take a look at the following gist: https://gist.github.com/3966362 I would expect to see three replies from the server, except there is only one. This occurs when the server tries to reply out of order. Changing the sen

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

2012-10-27 Thread jmartins
Use Postgresql 9.2 now it's have HSTOR a key/value json support, can scale linearly to 64 cores, read queries can be up by 4x faster See more: https://postgres.heroku.com/blog/past/2012/3/14/introducing_keyvalue_data_storage_in_heroku_postgres/ Other option is use NEO4J it's ACID. regards Joa

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

2012-10-27 Thread Alexey Kupershtokh
Do I understand correctly that this code is responsible for Date.now() ? https://github.com/joyent/node/blob/v0.9.2/deps/v8/src/date.js#L312 https://github.com/joyent/node/blob/v0.9.2/deps/v8/src/runtime.cc#L9239 https://github.com/joyent/node/blob/v0.9.2/deps/v8/src/platform-nullos.cc#L108 https:

[nodejs] Re: Server-to-Server Communication

2012-10-27 Thread Alexey Kupershtokh
I'm also interested in this theme. AFAIR, dnode 6 months ago was good in features but terribly slow comparing to socket.io/axon. https://github.com/visionmedia/axon looks interesting, but unstable yet - I have already found an issue ( https://github.com/visionmedia/axon/pull/62 ). Also I don't

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

2012-10-27 Thread Alexey Kupershtokh
PS: My CPU is Intel® Core™ 2 Duo P7350(2GHz, 1 066MHz, 3Mb). воскресенье, 28 октября 2012 г., 1:30:35 UTC+7 пользователь Alexey Kupershtokh написал: > > Testing in Firefox 16.0 on Ubuntu > Date.now() is 713,232 /s > Seems it's even system-wide. How to fix this? > > On Sun, Oct 28, 2012 at 1:21 AM

[nodejs] Server-to-Server Communication

2012-10-27 Thread Jacob Groundwater
I was wondering what others are using for communication between back-end servers. Since I control all involved servers, I would rather not include authentication at the application layer. Forwarding SSH ports is perfectly acceptable. On that note, my own research has lead me to three options, in o

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

2012-10-27 Thread Alexey Kupershtokh
Testing in Firefox 16.0 on Ubuntu Date.now() is 713,232 /s Seems it's even system-wide. How to fix this? On Sun, Oct 28, 2012 at 1:21 AM, Alexey Kupershtokh < alexey.kupersht...@gmail.com> wrote: > Cpu usage of other proceses is about 3-5%. When node 3.js was running top > showed: > > Cpu(s): 13.

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

2012-10-27 Thread Alexey Kupershtokh
Cpu usage of other proceses is about 3-5%. When node 3.js was running top showed: Cpu(s): 13.8%us, 41.6%sy, 0.0%ni, 43.6%id, 1.0%wa, 0.0%hi, 0.0%si, 0.0%st PID USER PR NI VIRT RES SHR S %CPU %MEMTIME+ COMMAND

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 Saturda

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 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 three modules: udt.

[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' handl

[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 message

[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 w

[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 a