Re: [node-dev] VFP2 ARM V8 Issues

2012-08-16 Thread Ben Noordhuis
On Thu, Aug 16, 2012 at 4:34 PM, Adam Malcontenti-Wilson wrote: > Thanks for the quick command. > > I'm still getting the same errors as before though I think: > > g++ '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' > '-DENABLE_DEBUGGER_SUPPORT' '-DV8_TARGET_ARCH_X64' -I../deps/v8/src > -Wall -pt

Re: [node-dev] VFP2 ARM V8 Issues

2012-08-13 Thread Ben Noordhuis
On Mon, Aug 13, 2012 at 4:44 PM, Adam Malcontenti-Wilson wrote: > The V8 bundled with node currently requires an ARM CPU supporting VFP3 for > hard-float support, causing problems when trying to compile for ARMv6 > devices like the Raspberry Pi. > There is a patch that was committed upstream at >

Re: [node-dev] Getting Undefined on Using "Require"

2012-08-12 Thread Ben Noordhuis
On Sun, Aug 12, 2012 at 8:19 AM, Thota Madhu Sudhan Rao wrote: > How should I proceed? By posting to the appropriate mailing list, nodejs. nodejs-dev is for core development discussion.

Re: [node-dev] using a Oracle XE 11g database with NodeJS

2012-08-11 Thread Ben Noordhuis
On Sat, Aug 11, 2012 at 6:37 PM, Daniel Noormohamed wrote: > can anyone help with this topic? i would prefer to do this on a windows > machine but would also consider a linux. Try the nodejs mailing list. nodejs-dev is for core development discussion.

Re: [node-dev] Re: [nodejs] Version 0.8.6 (Stable)

2012-08-07 Thread Ben Noordhuis
On Tue, Aug 7, 2012 at 9:10 PM, Matt wrote: > Did the libuv fix to not accept all incoming connections make it into this > one (the one to improve cluster load balancing)? No, it only exists in master. It's commit 9f7cdb2[1] in case you want to back-port it. [1] https://github.com/joyent/libuv/c

Re: [node-dev] Re: Finding network gateway IP from node

2012-08-06 Thread Ben Noordhuis
On Mon, Aug 6, 2012 at 3:53 AM, Marak Squires wrote: > Robert - > > Would it make any sense to bring this logic into core instead of relying on > shelling out to various command line tools? > > I'm unsure the repercussions ( if any ) that having a piece of code like > this would have in core. I w

Re: [node-dev] off-topic: Istanbul Tech Day

2012-08-03 Thread Ben Noordhuis
On Fri, Aug 3, 2012 at 8:54 AM, Altuğ Bilgin Altıntaş wrote: > Hi > > I'm from Istanbul Java Group. > We are planning a tech day in Istanbul. > I would like to ask if any one from here can attend > to this event to present node.js > > Date : September 22 > Location : Istanbul - Bahçeşehir Universi

Re: [node-dev] "Hardened" node

2012-07-31 Thread Ben Noordhuis
On Wed, Aug 1, 2012 at 12:56 AM, MikeS wrote: > I'm using node.js as part of a cloud-based, multi-tenanted server > environment, with each node process specific to one of the tenants. (Their > most common job is to communicate between some external system and the > shared server.) For security

Re: [node-dev] execvp() in Node v0.8 addon?

2012-07-20 Thread Ben Noordhuis
On Fri, Jul 20, 2012 at 5:22 PM, JP Richardson wrote: > Hi, I'm not sure if this is the right place to post this. I apologize in > advance if it's not. > > I'm trying to port my `kexec` module > [https://github.com/jprichardson/node-kexec] to Node v0.8. The problem is > that any of the `exec` fami

Re: [node-dev] Re: Request / Thread local storage

2012-07-04 Thread Ben Noordhuis
On Wed, Jul 4, 2012 at 6:02 AM, Gaurav Vaish wrote: >> >> > (ThreadLocal:http://docs.oracle.com/javase/6/docs/api/java/lang/ThreadLocal.html) >> >> I'm not sure what you mean. Are you talking about TLS in C/C++ or >> something in JS? > > Well, yes! Was that a boolean logic joke?

Re: [node-dev] npm fails to install serialport module on my windows machine

2012-07-04 Thread Ben Noordhuis
On Wed, Jul 4, 2012 at 2:14 AM, Avinash v wrote: > I'm having an issue with npm while installing serialport module .. I made > a screenshot of the error message I've got .. This is wildly OT for the nodejs-dev mailing list. Please move it the npm mailing list.

Re: [node-dev] Request / Thread local storage

2012-07-02 Thread Ben Noordhuis
On Mon, Jul 2, 2012 at 8:45 AM, Gaurav Vaish wrote: > Hi, > > What is the best way to implement a thread-local / request-local > storage? > > Basically, I am looking at a way to implement per-request-singleton > object definition. > > (ThreadLocal: > http://docs.oracle.com/javase/6/docs/api/java/

Re: [node-dev] binary module segfault in v0.8

2012-07-01 Thread Ben Noordhuis
On Sun, Jul 1, 2012 at 1:48 PM, Dean Mao wrote: > Yeah, I fixed this by compiling qt with node's ssl library.  Of course, this > will be more troublesome for people so I guess I may have to include binary > libraries inside the npm package or get complaints from everyone who can't > "node-gyp rebu

Re: [node-dev] Re: Node version 0.8.0

2012-06-28 Thread Ben Noordhuis
On Thu, Jun 28, 2012 at 10:40 AM, Jorge wrote: > On 28/06/2012, at 08:22, Jeroen Janssen wrote: >> On Jun 28, 1:18 am, Ben Noordhuis wrote: >>>>> No. What pattern do you use? Something like this? >>> >>>>>   if (!ev_async_pending(w)) >>>&

Re: [node-dev] Node version 0.8.0

2012-06-27 Thread Ben Noordhuis
On Wed, Jun 27, 2012 at 11:11 PM, Bert Belder wrote: > On Wednesday, June 27, 2012 2:59:36 PM UTC+2, Ben Noordhuis wrote: >> >> On Wed, Jun 27, 2012 at 12:02 PM, Jorge wrote: >> > I use to check ev_async_pending(&watcher) before doing an >> > ev_async_s

Re: [node-dev] Node version 0.8.0

2012-06-27 Thread Ben Noordhuis
On Wed, Jun 27, 2012 at 12:02 PM, Jorge wrote: > I use to check ev_async_pending(&watcher) before doing an > ev_async_send(&watcher). Is there anything like ev_async_pending() in libuv? No. What pattern do you use? Something like this? if (!ev_async_pending(w)) ev_async_send(w); If yes,

Re: [node-dev] binary module segfault in v0.8

2012-06-26 Thread Ben Noordhuis
On Tue, Jun 26, 2012 at 5:35 AM, Dean Mao wrote: > I ran it with gdb, it looks like it crashed in SSL_library_init().  I also > ran ldd on node 0.6.19 and saw that libssl & crypto are shown there, yet in > node 0.8.0 they are not linked -- does node 0.8.0 rely on external modules > for ssl support

Re: [node-dev] binary module segfault in v0.8

2012-06-25 Thread Ben Noordhuis
On Tue, Jun 26, 2012 at 12:41 AM, Dean Mao wrote: > I have a binary module using Qt & Webkit that works fine in 0.6.19, but when > I tried 0.8.0 today, it segfaulted.  I was able to narrow it down to one > line of code that seems to be the issue: > > qwebpage.mainFrame()->setUrl(QUrl("http://www.g

Re: [node-dev] about porting node.js on Android

2012-06-22 Thread Ben Noordhuis
On Fri, Jun 22, 2012 at 8:33 PM, jmartins wrote: > > TIZEN (Sansumg + Intel)  have a project to use nodejs see Elev8 > > Here is a exemple > http://makall.wordpress.com/2012/05/29/running-elev8-a-javascript-bindings-for-efl/ Skimming the source[1], it looks like it's based on V8, not node.js. [1

Re: [nodejs] Re: [node-dev] Re: Version 0.7.11 (unstable)

2012-06-17 Thread Ben Noordhuis
On Sun, Jun 17, 2012 at 1:54 PM, Robert Malko wrote: > get a buttload of warnings when building 0.7.11.  mostly with ev.c, eio.c, > and the openssl stuff up front. > > not sure it matters because it builds but I thought I'd let you know. > > on lion. It's mostly harmless. We compile with a lot mo

Re: [node-dev] Re: while readline.prompt(),input multi-byte character,press del or backspace key,cursor position was wrong

2012-06-12 Thread Ben Noordhuis
On Tue, Jun 12, 2012 at 3:28 AM, 顾荣胜\" wrote: > does anyone know about this how to resolve? Can you open an issue? Even better, submit a pull request. :-)

Re: [node-dev] It is a issue ? (level == trivial)

2012-06-01 Thread Ben Noordhuis
On Fri, Jun 1, 2012 at 10:41 AM, Jason wrote: > Hi > > I found following code in fs.js: > > > fs.readFileSync = function(path, encoding) { > >   var fd = fs.openSync(path, constants.O_RDONLY, 438 /*=0666*/); > >   var buffer = new Buffer(4048); > >   var buffers = []; > >   var nread = 0; > >   va

Re: [node-dev] while readline.prompt(),input multi-byte character,press del or backspace key,cursor position was wrong

2012-05-31 Thread Ben Noordhuis
On Thu, May 31, 2012 at 7:51 AM, rongsheng gu wrote: > i call function readline.prompt(), > then input multi-byte character (such as Chinese character) on screen, > press del or backspace key,cursor  position was wrong. > > I found this on osx lion 10.7.4, centos 5.5 with node v0.6.18 Can you try

Re: [node-dev] build issue with v0.7.8 on fedora12

2012-05-16 Thread Ben Noordhuis
On Thu, May 17, 2012 at 5:38 AM, Tim Caswell wrote: > I just tried it on an ubuntu box (apt-get install clang).  It seems to build > fine, but the final link fails with a ton of missing symbols. > > export CC=clang CXX=clang > ./configure > make > > I probably misconfigured clang for C++ somehow.

Re: [node-dev] build issue with v0.7.8 on fedora12

2012-05-16 Thread Ben Noordhuis
On Thu, May 17, 2012 at 5:19 AM, billywhizz wrote: > can i compile node using clang/llvm on linux? Yes. It's only semi-supported but it works. I test it from time to time.

Re: [node-dev] build issue with v0.7.8 on fedora12

2012-05-16 Thread Ben Noordhuis
On Thu, May 17, 2012 at 4:04 AM, billywhizz wrote: > thanks guys. yes, it looks like that's the issue. it works for me if i > change the configure to enable strict aliasing on my gcc which is 4.4.4 but > i'm not sure if enabling strict aliasing is going to cause other issues as > there were tons o

Re: [node-dev] build issue with v0.7.8 on fedora12

2012-05-16 Thread Ben Noordhuis
On Thu, May 17, 2012 at 3:19 AM, billywhizz wrote: > i get the following error from gcc when i try to build v0.7.8. it goes away > if i specify the --without-snapshot flag but then when i try to run node it > gives the same error when starting up: > >   ACTION v8_snapshot_run_mksnapshot > /media/s

[node-dev] Removing socket.bytesRead, socket.bytesWritten

2012-05-07 Thread Ben Noordhuis
All, Can people who have a legitimate use case for the socket.bytesRead and socket.bytesWritten properties speak up now or forever hold their peace? I would like to remove them on the grounds that: a) they were added for no real good reason (I don't recall the exact conversation but it was along

Re: [node-dev] Re: HTTP Server Security Vulnerability: Please upgrade to 0.6.17

2012-05-07 Thread Ben Noordhuis
On Mon, May 7, 2012 at 7:34 PM, Marco Rogers wrote: > I'm assuming this affects 0.4.x as well. No, this only applies to v0.6. v0.4 probably has its own share of defects but this one is not part of that. :-)

Re: [node-dev] SlowBuffer killing V8 debugging

2012-04-30 Thread Ben Noordhuis
On Mon, Apr 30, 2012 at 20:30, Chris Jimison wrote: > Hi all, > > I am writing a GUI based debugger for V8 and I use it a lot with > nodejs.  There is one major problem I am running into ... SlowBuffer > is killing my debugger performance.  The reason is so: when a > breakpoint is triggered, I req

Re: [node-dev] Re: Safe to use socket.ondata instead of on('data')?

2012-04-20 Thread Ben Noordhuis
On Fri, Apr 20, 2012 at 18:54, Joran Greef wrote: > It's not for HTTP, but for TCP, where the cost of that slice call even > 10,000 times a second adds up to between 2.53ms to 27ms per second depending > on the hardware. I think what Isaac is saying is "show me the numbers" (in a benchmark that r

Re: [node-dev] Speed impact of node::MakeCallback

2012-04-09 Thread Ben Noordhuis
On Sun, Apr 8, 2012 at 08:29, Isaac Schlueter wrote: > I'm exploring domains now.  Adding a hook into MakeCallback would be > nice, actually.  You can get pretty far without it, but not quite as > far as I'd like.  Having a single point where all JS->C++ callbacks > flow through is really nice, an

Re: [node-dev] Speed impact of node::MakeCallback

2012-04-07 Thread Ben Noordhuis
On Sun, Apr 8, 2012 at 01:06, Jann Horn wrote: > Wasn't MakeCallback() also supposed to handle the domains stuff? Yes, but there's more than one way to skin a cat. > And don't many C++ modules use that? Undoubtedly. When I say "scratch" I mean remove usage in core, not remove altogether (not ri

Re: [node-dev] Speed impact of node::MakeCallback

2012-04-07 Thread Ben Noordhuis
On Sun, Apr 8, 2012 at 00:38, Jann Horn wrote: > Hello, > I've been using a little ad-filtering proxy I built using node for some > time now, and today I had a look at its CPU usage while flash was > prefetching a very large youtube video. Well, it was relatively high, I > think, but the only thin

Re: [node-dev] Adding missing Uint8ClampedArray

2012-03-27 Thread Ben Noordhuis
On Wed, Mar 28, 2012 at 00:04, m1k3l wrote: > No way to override that? or to add a hook before or after this v8 code? Not that I know of. But maybe the kExternalPixelArray array type does what you want, it clamps values to the 0-255 range.

Re: [node-dev] Adding missing Uint8ClampedArray

2012-03-27 Thread Ben Noordhuis
On Tue, Mar 27, 2012 at 23:41, m1k3l wrote: > I'm adding a missing typed array, the Uint8ClampedArray. You can see the > changes > at https://github.com/mikeseven/node/commit/27ad75f882a6c7ad06a878f3eaab292a045ffc4c > I didn't put this in the pull requests yet because I have an issue with the > sy

Re: [node-dev] Adding in flock/seek/utime

2012-03-27 Thread Ben Noordhuis
On Tue, Mar 27, 2012 at 09:46, Joran Greef wrote: > Could really use flock right now, any progress on this? None at all. It's close to impossible to get it right cross-platform (blame SunOS). Try Matt's fs-ext module[1]. [1] https://github.com/baudehlo/node-fs-ext

Re: [node-dev] A simple control-S in the terminal can grind to a halt any node.js server.

2012-03-14 Thread Ben Noordhuis
On Wed, Mar 14, 2012 at 10:46, Jorge wrote: >> From: Jorge Chamorro Bieling >> Date: March 14, 2012 12:08:48 AM GMT+01:00 >> To: Isaac Schlueter >> Subject: Re: Now a simple control-S in the terminal can grind to a halt any >> node.js server. >> On Mar 13, 2012, at 11:56 PM, Isaac Schlueter wro

Re: [node-dev] help mapping C references to JS in node

2012-03-12 Thread Ben Noordhuis
On Mon, Mar 12, 2012 at 03:35, m1k3l wrote: > Hi, > > I'd like to integrate a C library with node and there is a feature I don't > seem to find a way to implement. Hopefully you can help. > > In this library, in C, one can pass a reference to a variable so it can be > get/set by your code and get/

[node-dev] Re: [nodejs] Re: Version 0.6.12 (stable)

2012-03-02 Thread Ben Noordhuis
On Fri, Mar 2, 2012 at 23:37, Dave Clements wrote: > hoorah! > > Only because I'm currently looking at it... when's ETA for dgram functions > like setTTL et. al. ? > > dave Dave, they've been back since v0.6.9.

Re: [node-dev] Node 0.6.11 SSL Handshaking performance

2012-03-01 Thread Ben Noordhuis
I was mistaken in my original post. Server-side session caching is implemented, it's client session resumption that hasn't been fleshed out yet. On Wed, Feb 29, 2012 at 23:50, Paul Querna wrote: > I was unable to reproduce the issue with Session resumption.  From > everyone I can tell, Node.js is

Re: [node-dev] Node 0.6.11 SSL Handshaking performance

2012-02-28 Thread Ben Noordhuis
On Wed, Feb 29, 2012 at 00:21, Kelly Fox wrote: > After speaking a bit with Isaac on IRC, he convinced me to post here. :) > > I compared node's SSL handshaking performance to Apache 2.2 on the same > hardware and node's performance seemed lower than I'd expected. Node was > getting about 600-650

[node-dev] Re: [nodejs] Re: Node version 0.6.11 (stable)

2012-02-17 Thread Ben Noordhuis
On Fri, Feb 17, 2012 at 23:36, dvbportal wrote: > Thanks for the new version. I've just updated our proxy to v0.6.11 but > the session renegotiation vulnerability is still > reported. https://www.ssllabs.com/ssldb/analyze.html?d=api.cloudno.de It probably tries a single renegotiation, the default

Re: [node-dev] Help expose HTTP header boundary

2012-02-12 Thread Ben Noordhuis
On Sun, Feb 12, 2012 at 23:50, Charlie Robbins wrote: > All, > > I spoke with ry and substack about this issue when I was in San Francisco > last month: https://github.com/joyent/node/issues/2612. If I remember > correctly, it requires small changes to http-parser and the node wrapper. I > don't k

Re: [node-dev] Re: Towards a composable core.

2012-02-08 Thread Ben Noordhuis
On Thu, Feb 9, 2012 at 03:58, Marco Rogers wrote: > I also think there is a bit of a contradiction between "low level" and > "hiding implementation". IMO low level apis should expose as much as of the > guts as possible (in a clean and consistent way) to provide maximum > flexibility for higher le

Re: [node-dev] Re: Date headers on HTTP responses

2012-02-07 Thread Ben Noordhuis
On Tue, Feb 7, 2012 at 18:47, Martin Cooper wrote: > On Mon, Jan 30, 2012 at 8:34 PM, Martin Cooper wrote: >> As mnot pointed out in pull request #311 (back in Sep 2010), date >> headers are required in responses. The pull request addressed that, >> and it looked like it was merged in. But if it

Re: [node-dev] Still looking for a way to write to stdout...

2012-02-02 Thread Ben Noordhuis
On Thu, Feb 2, 2012 at 03:27, Matt wrote: > Childprocess, not the current process. Remember in Unix the 3 child FDs are > just 0 1 and 2, and can really be anything (readable or writeable or both), > which is how qmail-queue works (and it's also how shell piping and > redirection works). Qmail-que