Re: [nodejs] Re: [ANN]: Deferred - Maintainable asynchronous JavaScript with promises

2012-10-04 Thread Domenic Denicola
On Thursday, October 4, 2012 10:07:31 AM UTC+2, Mikeal Rogers wrote: I totally understand what you're saying but I think there are a few things you're missing. The problem we had with errors in the node implementation of promises, which was not great, was that errors were often unhandled

Re: [nodejs] How to start with node.js ?

2012-10-04 Thread Diogo Resende
If you're a bit familiar with js in general, I would advise you to read the documentation pages. It's not that big and you'll get a picture of what you can do with the core. http://nodejs.org/docs/latest/api/ Then, there are plenty of modules here: http://toolbox.no.de/ -- Diogo Resende

RE: [nodejs] How to start with node.js ?

2012-10-04 Thread Parag Patil
Hi Mayur, Good Question. If you really want to start node.js, look for the tutorials online. Coz spoon feeding won't help. Anyway, sorry for such harsh words, but believe me unstructured learning will actually help you to understand the technology. Good luck with your node.js hunt. Regards, PARAG

[nodejs] Re: How to start with node.js ?

2012-10-04 Thread Karl
Below some stuff you could read besides the nodejs website itself, when you have an idea you may want to decide whether to use a framework like expressjs or a language like coffeescript instead of Javascript before you start seriously. Perhaps concentrate on understanding 100% what async

[nodejs] Re: How to start with node.js ?

2012-10-04 Thread Jeff Barczewski
There was some discussion of tutorials and ebooks in a recent thread here https://groups.google.com/d/topic/nodejs/h417wkLAKPI/discussion -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message

Re: [nodejs] Array reads faster than Buffer reads ???

2012-10-04 Thread Jimb Esser
If you want *really* fast buffer access for larger integer types and float types, you can set up a native module that calls SetIndexedPropertiesToExternalArrayData a few times on your Buffer and gives you a native indexed view into the buffer for whatever primitive type you want to read (much,

[nodejs] Re: Profiling problem, is 91% of ticks in libc 'normal'.

2012-10-04 Thread mscdex
On Oct 4, 12:23 pm, Chris Dew cms...@gmail.com wrote: I'm starting to have a speed problem with a production NodeJS application (20-100% cpu usage). Have you tried profiling with idle notifications disabled for comparison purposes? -- Job Board: http://jobs.nodejs.org/ Posting guidelines:

[nodejs] Node.jar - Java port by Oracle

2012-10-04 Thread Jonathan Buchanan
I'm at JavaOne, for my sins, and I've been attending all the sessions related to Oracle's new JavaScript implementation in Java, called Nashorn. What initially caught my eye was that they're also porting the Node.js APIs, module system etc. in a project called Node.jar. Nashorn itself is going

Re: [nodejs] Node.jar - Java port by Oracle

2012-10-04 Thread Isaac Schlueter
Nope. This is the first I'm hearing about it. The great thing about an MIT license is that they really don't have to bug us about this if they don't feel like it :) On Thu, Oct 4, 2012 at 10:16 AM, Jonathan Buchanan jonathan.bucha...@gmail.com wrote: I'm at JavaOne, for my sins, and I've been

[nodejs] Re: Node.jar - Java port by Oracle

2012-10-04 Thread Bradley Meck
As long as NPM works, since it uses Node's module loader apparently, I am sure some horrible but interesting bridges will be crossed on the NPM registry. Looking forward to it. On Thursday, October 4, 2012 12:16:24 PM UTC-5, Jonathan Buchanan wrote: I'm at JavaOne, for my sins, and I've been

[nodejs] Re: Node.jar - Java port by Oracle

2012-10-04 Thread Thomas Shinnick
So, they've finally figured out *how* to do it... Write once, run anywhere with Javascript On Thursday, October 4, 2012 1:16:58 PM UTC-5, Bradley Meck wrote: As long as NPM works, since it uses Node's module loader apparently, I am sure some horrible but interesting bridges will be

[nodejs] Re: A quest for a more accurate net.isIP() for IPv6

2012-10-04 Thread Bradley Meck
split is a fairly expensive operation, for the most part I would guess the regex compiler would do a better job and avoid GC fluff. Ugly though. http://jsperf.com/ipv4-regex -- Job Board: http://jobs.nodejs.org/ Posting guidelines:

Re: [nodejs] Re: A quest for a more accurate net.isIP() for IPv6

2012-10-04 Thread Jonathan Buchanan
I ported Django's IPv6 module as I needed it for my port of django.forms, if that's any good to you. It's on npm as validators: https://github.com/insin/validators/blob/master/lib/ipv6.js --- Jonny On 4 October 2012 11:58, Bradley Meck bradley.m...@gmail.com wrote: split is a fairly expensive

Re: [nodejs] Array reads faster than Buffer reads ???

2012-10-04 Thread Dan Milon
Curious, shouldn't V8 be able to inline the readUInt8 function call, or there's more than that? On Thu, Oct 4, 2012 at 1:43 AM, Ben Noordhuis i...@bnoordhuis.nl wrote: On Thu, Oct 4, 2012 at 1:37 AM, NodeNinja aeon6f...@gmail.com wrote: Doing some tests on windows with node v0.8.11

Re: [nodejs] Array reads faster than Buffer reads ???

2012-10-04 Thread NodeNinja
On Thursday, October 4, 2012 9:49:20 PM UTC+5:30, Jimb Esser wrote: If you want *really* fast buffer access for larger integer types and float types, you can set up a native module that calls SetIndexedPropertiesToExternalArrayData a few times on your Buffer and gives you a native

[nodejs] Re: Is mongojs a well maintained project?

2012-10-04 Thread Mark
Nope, db.mycollection.find(query) returns a javascript array object. cursor.forEach is just executing the forEach method of the array. Like it was mentioned earlier, true cursors are not available in mongojs. -- Job Board: http://jobs.nodejs.org/ Posting guidelines:

Re: [nodejs] Re: Cross Compile nodejs for arm

2012-10-04 Thread Jonathan Kunkee
Ben, This patch fixes this for me. I have been fighting this since v0.6.19. Thank you! VFPv3 is the default for ARMv7, but not required: http://www.arm.com/products/processors/technologies/vector-floating-point.php These flags could be more reliably set from /proc/cpuinfo or the command line,

[nodejs] Re: What Editor / OS / Dev enviroment do you use?

2012-10-04 Thread Trevor Norris
That's the exact setup I have. Also have a couple vim entries to make my life simpler: This just executes the file I'm currently working on: https://github.com/trevnorris/.vim/blob/master/vimrc#L140-141 And I use this to quick wrap code that I know I won't want committed:

Re: [nodejs] Re: How to start with node.js ?

2012-10-04 Thread Aung Baw
First to understand what behind the node by it's creator http://youtu.be/jo_B4LTHi3I Bonus http://radar.oreilly.com/2011/07/what-is-node.html from oreilly Second try these background infrastructure http://net.tutsplus.com/tutorials/javascript-ajax/node-js-infrastructure-part-1/

[nodejs] Foundit - Open Source Chrome Extension for Bookmark Management

2012-10-04 Thread Nick Thompson
Hey all! I just built a chrome extension that scrapes and indexes your bookmarks so you can search them later by the content of your saved pages rather than by the url or title of the bookmark you saved it under. It's a pretty simple idea, and I'm not trying to shamelessly promote it; it's

Re: [nodejs] Node.jar - Java port by Oracle

2012-10-04 Thread Ben Noordhuis
On Thu, Oct 4, 2012 at 7:16 PM, Jonathan Buchanan jonathan.bucha...@gmail.com wrote: I'm at JavaOne, for my sins, and I've been attending all the sessions related to Oracle's new JavaScript implementation in Java, called Nashorn. What initially caught my eye was that they're also porting the

[nodejs] How to recompile openssl dependency

2012-10-04 Thread Justin Meltzer
There's a small bug with respect to an Internet Explorer corner case in the openssl dependency package. I'd like to modify one of the openssl C files but I'm at a loss as to how to recompile this package so that node can use my updates. Any help would be greatly appreciated! -- Job Board:

Re: [nodejs] How to recompile openssl dependency

2012-10-04 Thread Ben Noordhuis
On Fri, Oct 5, 2012 at 4:13 AM, Justin Meltzer jus...@airtimehq.com wrote: There's a small bug with respect to an Internet Explorer corner case in the openssl dependency package. I'd like to modify one of the openssl C files but I'm at a loss as to how to recompile this package so that node can

Re: [nodejs] Re: Cross Compile nodejs for arm

2012-10-04 Thread Ben Noordhuis
On Thu, Oct 4, 2012 at 10:22 PM, Jonathan Kunkee jonathan.kun...@gmail.com wrote: Ben, This patch fixes this for me. I have been fighting this since v0.6.19. Thank you! VFPv3 is the default for ARMv7, but not required:

Re: [nodejs] Node.jar - Java port by Oracle

2012-10-04 Thread Rick Waldron
So, is no one else nervous about the fact that Oracle owns the trademark JavaScript, acquired along with Sun. If they develop a JavaScript implementation it gives them grounds to defend the mark. -Rick On Thursday, October 4, 2012 at 11:52 PM, Jonathan Buchanan wrote: There's been an

Re: [nodejs] How to recompile openssl dependency

2012-10-04 Thread Justin Meltzer
Yeah exactly, the bundled version in deps/openssl. Thanks! Do I need to run ./configure? or just make? what about make install? On Thursday, October 4, 2012 10:32:43 PM UTC-4, Ben Noordhuis wrote: On Fri, Oct 5, 2012 at 4:13 AM, Justin Meltzer jus...@airtimehq.comjavascript: wrote:

Re: [nodejs] Re: A quest for a more accurate net.isIP() for IPv6

2012-10-04 Thread Josh Erickson
Thanks guys! I didn't know that about split operations. Jonny, do you have benchmarks handy on your django port? If not, I'll hack something together and get them myself. If it is faster, I'd just rather it be brought into node itself then me stumble around in the dark anymore. This past day

Re: [nodejs] Node.jar - Java port by Oracle

2012-10-04 Thread Mark Hahn
the fact that Oracle owns the trademark JavaScript, acquired along with Sun. How did sun get it? On Thu, Oct 4, 2012 at 9:07 PM, Rick Waldron waldron.r...@gmail.com wrote: So, is no one else nervous about the fact that Oracle owns the trademark JavaScript, acquired along with Sun. If they

Re: [nodejs] Node.jar - Java port by Oracle

2012-10-04 Thread Arunoda Susiripala
I think they took it from Netscape. May be Netscape sold it when they are winding up. On Friday, October 5, 2012, Mark Hahn m...@hahnca.com wrote: the fact that Oracle owns the trademark JavaScript, acquired along with Sun. How did sun get it? On Thu, Oct 4, 2012 at 9:07 PM, Rick Waldron

[nodejs] Re: Trouble installing node.js onto mac

2012-10-04 Thread Wil Moore
Hi JD, Either by running the mac installer or building from source, I cannot get npm to work on os x mountain lion. When building from source I get the following error: You might want to give one of the binary tarball packages a shot (though it shouldn't be much different from the

Re: [nodejs] Node.jar - Java port by Oracle

2012-10-04 Thread Thomas Shinnick
JenkinsScript ? (Oracle will like that I'm sure - they liked 'Jenkins' the last time too) On Thursday, October 4, 2012 11:07:42 PM UTC-5, Rick Waldron wrote: So, is no one else nervous about the fact that Oracle owns the trademark JavaScript, acquired along with Sun. If they develop a

Re: [nodejs] Node.jar - Java port by Oracle

2012-10-04 Thread Rick Waldron
I'm not sure how it transferred, but when the dust settled (over 12 years ago) Sun owned the Java and JavaScript trademarks. -Rick On Friday, October 5, 2012 at 12:48 AM, Arunoda Susiripala wrote: I think they took it from Netscape. May be Netscape sold it when they are winding up.

Re: [nodejs] Node.jar - Java port by Oracle

2012-10-04 Thread Karl Tiedt
Oracle decided to try and fight Googles use of Davlik on Android... and because it was a sudden change in the stance that Sun took on the whole situation, the judge basically laughed it off. I would suspect something similar would happen with JavaScript. -Karl Tiedt -- Job Board:

Re: [nodejs] Re: A quest for a more accurate net.isIP() for IPv6

2012-10-04 Thread snoj
Hmm, looks like I forgot to account for :a:b:c: addresses now. I'm beginning to think a non-regex will be simpler in the long run. On Thursday, October 4, 2012 11:14:38 PM UTC-5, snoj wrote: Thanks guys! I didn't know that about split operations. Jonny, do you have benchmarks handy on your