[nodejs] Re: Mongo vs. Couch vs. LevelDB ?

2013-08-30 Thread phidelta
Hi, each option in the database space is good at different things and have very different usage profiles. The most important question you have to answer before you even think of which DB system to use or whether you even want to use one at all is: What is my data and access profile. For

[nodejs] When require() is slow: ideas on improving node.js require() performance on startup

2013-07-29 Thread phidelta
It sounds like you don't habe to load all files on startup, but do so in order to not block later. So maybe your solution is to only require what is needes at start and then switch to async require. I wrote an async require last week as a test. Since you can in fact require('module') and

[nodejs] When require() is slow: ideas on improving node.js require() performance on startup

2013-07-29 Thread phidelta
It sounds like you don't habe to load all files on startup, but do so in order to not block later. So maybe your solution is to only require what is needes at start and then switch to async require. I wrote an async require last week as a test. Since you can in fact require('module') and

[nodejs] When require() is slow: ideas on improving node.js require() performance on startup

2013-07-29 Thread phidelta
It sounds like you don't habe to load all files on startup, but do so in order to not block later. So maybe your solution is to only require what is needes at start and then switch to async require. I wrote an async require last week as a test. Since you can in fact require('module') and

[nodejs] When require() is slow: ideas on improving node.js require() performance on startup

2013-07-29 Thread phidelta
It sounds like you don't habe to load all files on startup, but do so in order to not block later. So maybe your solution is to only require what is needes at start and then switch to async require. I wrote an async require last week as a test. Since you can in fact require('module') and

[nodejs] Re: Starting work on a Chrome Devtools addon

2013-07-11 Thread phidelta
Hi, I am also constantly living in bugger (great work Jan!). I am currently looking into extending it to provide saving of local changes. Also bugger does writes to disconnected web-sockets if you do a reload of the dev-tools which is sometimes necessary when more sourcefiles get add via

[nodejs] Re: Poll for v0.10 feature: Crypto default to 'binary' strings vs defaulting to buffers

2012-10-09 Thread phidelta
d) I use it a lot and find the strangeness of binary strings so dumb that I'd rather have it changed sooner or later even if that means having to rewrite/modify a bit of code. On Tuesday, October 9, 2012 1:24:36 AM UTC+2, Isaac Schlueter wrote: Currently, the crypto module defaults to using

[nodejs] Re: Crockford : Ynode : I would fork node.js

2012-09-16 Thread phidelta
Look people, think of the context of the statements he made. I think he gave huge kudos to node. I wrote a longer post on that (and this thread) as well: http://instarant.net/crockford-right-nodejs-joyent Regards, Philipp On Saturday, September 15, 2012 4:45:30 PM UTC+2, Jorge wrote:

[nodejs] Nested domains or How do I leave a domain

2012-09-14 Thread phidelta
Hi, I am really liking the new domains feature. However I have a question: How do I leave a domain Is my undesrtanding correct?: function b(callback) { // I am running inside the domain created in a fs.readFile('some-file', 'utf-8', function(err, val) { // I am running

[nodejs] [ANN] ensure-https

2012-08-05 Thread phidelta
Hi all, I just published a module that is a simple http server that forwards to https. Nothing spectacular, but since it is something that almost all my projects need, I figured packaging it and making it available might be a good thing. Regards, phidelta -- Job Board: http

[nodejs] [ANN] seic (Spdy-Express-socket.Io-Cluster)

2012-08-05 Thread phidelta
as well. Regards, phidelta -- 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

[node-dev] Re: Version 0.7.12 (last one before 0.8.0)

2012-06-20 Thread phidelta
Hi, I am currently experimenting with domains in a storage-library that provides me with a uniform interface to s3, memcache, files, mongo, et. al. It is an awesome feature, that allows for much easier error handling and enables me to centralize error-reporting in a structured and easy way.

[nodejs] Re: Version 0.7.12 (last one before 0.8.0)

2012-06-20 Thread phidelta
Hi, I am currently experimenting with domains in a storage-library that provides me with a uniform interface to s3, memcache, files, mongo, et. al. It is an awesome feature, that allows for much easier error handling and enables me to centralize error-reporting in a structured and easy way.

[node-dev] Re: context (thisness) to EventEmitter#on, process.nextTick, etc

2012-06-10 Thread phidelta
If setTimeout(foo.func.bind(foo), 1000) is so drastically slower than setTimeout(foo.func, foo, 1000) then our aim for the benefit of the language should be to improve the performance of bind(). A lot of scenarios would benefit from improved bind() performance and we should not create kludge for

[nodejs] FN.bind vs fn() { FN() }

2012-05-28 Thread phidelta
Hi all, I have recently come to use .bind a lot, because it makes for very clean code. So rather than doing code var x; // this has some value that comes from prior code setTimeout(function() { console.log(x) }, 5000); /code I am now often doing code var x;

[nodejs] Re: finding modules matching a name glob

2012-04-22 Thread phidelta
The problem with doing this via npm is that npm works with the dependencies from the package.json which is a problem for plugins, since they are seldom known at the time the package.json is writeen. I have done something like this for my app. What I ended up doing is simply defining a folder

[nodejs] Re: So.. this javascript thing :)

2012-03-15 Thread phidelta
Hi Isaac, this would make a great addition to the Buffer documentation. I did not think of that and I actually read the node source code. It's obvious once you point it out though. Maybe a hint in the docs would be a Good Thing™. On Mar 15, 8:09 pm, Isaac Schlueter i...@izs.me wrote: +1 What

[nodejs] Re: cluster secret sauce

2012-02-12 Thread phidelta
Oh and yes, you are absolutely on the right track. NODE_CHANNEL_FD signals that the stein is an IPC Pipe and that is handled in src/ node.js cluster.js simply uses child_process.js to establish children. net.js is where the funky listening port sharing stuff happens. The cop pie wrapping is the

[nodejs] Re: New gatekeeper

2012-02-08 Thread phidelta
The king is dead; Long live the king! Thanks to your great leadership, this will not negatively impact the vibrant nodejs community. It will however positively impact the personal satisfaction with your daily tasks. So I congratulate you from the bottom of my heart. Let's have an adequate period