[nodejs] Re: As someone new to Node, should I use Babel or plain ES6 in Node v5?

2015-11-05 Thread Willem Odendaal
Thanks Zlatko, much appreciated :) This is just for my own benefit, so I'll do as you suggest an use Node 4 with "native" ES6. PS: looks like modules aren't supported yet. Am I right? I don't even see Modules on the compatibility page: https://kangax.github.io/compat-table/es6/ On Thursday,

[nodejs] Re: How sync is require()?

2015-11-05 Thread Andrey
On Friday, 6 November 2015 08:39:12 UTC+11, Ingwie Phoenix wrote: > > Hey folks. > > While developing a function that lets me require() custom files, I took > the original JS and jSON "loaders" as examples. > > But what I saw within the JS version confused me: It didn’T return a > thing! > >

[nodejs] Why build Node from source on Linux?

2015-11-05 Thread Vladimir Varankin
We build our version of nodejs Debian packages internally as it gives us ability to specify installation path through the --prefix switch. All nodejs packages are installed to something like /opt/nodejs/. With this scheme different apps can use different versions of node packages and be run on

[nodejs] How sync is require()?

2015-11-05 Thread 'Ingwie Phoenix' via nodejs
Hey folks. While developing a function that lets me require() custom files, I took the original JS and jSON "loaders" as examples. But what I saw within the JS version confused me: It didn’T return a thing! > console.log(require.extensions[".js"].toString()) function (module, filename) { var

Re: [nodejs] Why build Node from source on Linux?

2015-11-05 Thread Jeremy Darling
Personally, I prefer to install Node through NVM ( https://github.com/creationix/nvm) for development environments. For our stage, QA, and production environments we use the prebuilt image. As for advantages, honestly, I can't find any unless you plan on working on the Node codebase yourself. On

Re: [nodejs] Why build Node from source on Linux?

2015-11-05 Thread Dave Finton
I don't know what version of Linux you're running, but prepacked version of node on Ubuntu are *very* out-of-date (I just checked my 15.04 installation and the version of node for that is still stuck at 0.10.25). By building from source, you can pick one of the latest versions (4.2.2 or 5.0.0). It'

[nodejs] Why build Node from source on Linux?

2015-11-05 Thread JamieP
I want to install Node on Linux and am not sure whether to unpack the pre-built binary for Linux 64 or to build from source. Can anyone brief me on the drivers behind building from source on the target machine as opposed to just unpacking a pre-built version? cheers -- Job board: http://jobs.

[nodejs] Performance Issue - $in query with more than 5000 items using mongodb driver

2015-11-05 Thread Soorya Prakash
Hi, I have a use case query from the mongo db database , where I am sending the query $in with 500 records and currently working well now.If the record goes beyond , for example 7000 records, is the same query works well or I need to do alternative logic for achieve this. Can any one please

[nodejs] Re: As someone new to Node, should I use Babel or plain ES6 in Node v5?

2015-11-05 Thread Zlatko
This depends a little on what you plan to do with your node-fu. If you plan to learn a bit more, maybe work on your personal projects or start something new in a new company, then I think you should just start with Node 4 (the TLS version) and write "native" ES6. Even if you're just learning at