Node.js inventor extends JavaScript programming beyond browsers
- 26 January, 2012 00:32
- Comments
The open source project Node.js was invented by Joyent software engineer Ryan Dahl three years ago next month. It essentially allows JavaScript to be used outside of a browser. Node leverages Google's V8 JavaScript virtual machine to interpret JavaScript, and it uses an event-driven non-blocking I/O model that cloud services vendor Joyent -- a principal Node advocate -- says makes it ideal for data-intensive and real-time applications running across distributed devices. It is also championed by companies such as Microsoft and Mozilla.
InfoWorld Editor at Large Paul Krill spoke with Dahl at the Joyent-sponsored Node Summit conference, which is being held in San Francisco.
[ Node.js is an InfoWorld 2012 Technology of the Year Award Winner. For more insight on software development, subscribe to InfoWorld's Developer World newsletter. ]
InfoWorld: Node is basically server-side JavaScript framework, right?
Dahl: Yes. It's a programming platform. Node is a way of doing programming with JavaScript, but on your computer instead of inside the Web browser so you can interact with the operating system and whatnot.
InfoWorld: What's the main benefit?
Dahl: Node does things a bit differently than other programming platforms. The main thing is that it handles I/O very differently, so it doesn't allow the user to lock up the program, ever. It keeps the user handling new things, so it's very useful for network programming. You often are dealing with many people at the same time on your server and you're juggling these different connections. Node encourages the developer to continue to process connections without blocking. And because of this model of handling I/O, users tend to find it easier than developing with a traditional programming language for servers.
InfoWorld: Why is Node catching fire, so to speak?
Dahl: It just turns out that a lot of people like to program in JavaScript, and so there's been a lot of interest from users to develop stuff.
InfoWorld: Is there an issue with running Node on Windows?
Dahl: Well, the port to Windows is a lot newer than the Unix implementation and does have a couple of bugs. But generally users are using it fine. It tends to be working well. Of course, it'll get better over time.
InfoWorld: Are there any particular advantages of Node as far as platform-as-a-service cloud computing and cloud computing in general?
Dahl: Well, it's JavaScript, which is a nice thing. And it has this nice little API that is somewhat compact. So I think it makes for a nice platform-as-a-service platform in general. It also does network communication.
InfoWorld: How many people are developing with Node? What's the growth rate for Node?
Dahl: It's a bit difficult to quantify, though the way that we usually measure this is by the number of modules that have been deployed with Node or developed with Node. We're currently at about 6,000 modules. These are various modules to connect to Twitter or to parse some random disk format, [for example].
InfoWorld: What would be the ideal situation for Node and where would you not want to use it?
Dahl: Ideally, it's for servers where you're juggling many connections, with a lot of I/O happening in the server. It's not so good for batch jobs where you're doing a bunch of serial tasks and it doesn't really matter how long they take, you're just running them at the end of the day. There it becomes unwieldy due to the non-blocking nature of it.
This article, "Node.js inventor extends JavaScript programming beyond browsers," was originally published at InfoWorld.com. Follow the latest developments in business technology news and get a digest of the key stories each day in the InfoWorld Daily newsletter. For the latest developments in business technology news, follow InfoWorld.com on Twitter.
Read more about application development in InfoWorld's Application Development Channel.
Join the CIO Australia group on LinkedIn. The group is open to CIOs, IT Directors, COOs, CTOs and senior IT managers.
- Bookmark this page
- Share this article
- Got more on this story? Email CIO
- Follow CIO on twitter
- JavaScript conquers the server : Application Development - InfoWorld
- Beyond jQuery: JavaScript tools for the HTML5 generation : HTML5 - InfoWorld
- InfoWorld's 2012 Technology of the Year Award winners - InfoWorld
- Newsletter Subscribe - InfoWorld
- Node.js inventor extends JavaScript programming beyond browsers : Application Development - InfoWorld
- Business technology, IT news, product reviews and enterprise IT strategies - InfoWorld
- IT news and top technology headlines - InfoWorld
- InfoWorld Daily Newsletter - InfoWorld
- Application Development - InfoWorld
-
Swedish e-commerce startup's execs linked to NYC sex crime
-
Face Time - Interview with John Brennan and Robert DiStefano
-
How to implement next-generation storage infrastructure for Big Data
-
Pfizer's Future Depends on IT Transformation
-
Pfizer's Future Depends on IT Transformation
-
Avaya Deploys the Avaya Desktop Video Device with the Avaya Flare® Experience
A revolutionary new video collaboration device, the Avaya Desktop Video Device has been making waves in the communications industry ever since Avaya introduced the product in the fall of 2010. Avaya’s own employees have been among the earliest users and have seen first-hand how the product can improve collaboration and make people more efficient and effective. Read more. -
Providing effective endpoint management at the lowest total cost
Endpoints, otherwise known as servers, workstations, laptops, mobile devices, and virtually any other network-connected device, are critical components that enable business to be transacted. Properly implemented, endpoint management ensures continuous compliance with IT policies, regardless of where the machines are located and what type of network they are connected to. -
Spear Phishing Attacks - Why they are successful and how to stop them
There's been a rapid shift from broad, scattershot attacks to advanced target attacks that have had serious consequences for victim organisations. The increased use of spear phishing is directly related to the fact that it works, as traditional security defences simply do not stop these types of attacks. This paper provides a detailed look at how spear phishing is used within advanced attacks and the key capabilities organisations need in order to effectively combat these emerging and evolving threats.
-
Oracle Pl/SQL for Dummies
-
Flsh Cast Bible
-
Mac OS 9 for Dummies
-
Access 2002 VBA Handbook
-
Business Rules Management and Service Oriented Architecture - a Pattern Language
-
Poems of st John of the Cross PPR
-
Professional Silverlight 2 for ASP.NET Developers
-
QuickBooks 2009 for Dummies®
-
Blade Servers and Virtualization








Comments
Post new comment