2 ms·
Hmmm... Try these tidbits: NodeJS is a JS interpreter. You can run Node and execute JS code inside it. Node is written in C/C++, like V8, and so it can be comp
by chm 12y ago
Hmmm... Try these tidbits:
NodeJS is a JS interpreter. You can run Node and execute JS code inside it. Node is written in C/C++, like V8, and so it can be compiled for a lot of architectures. You can therefore run JS code "natively" on a machine. Node is single-threaded, event-driven, and can do IO. It's not a framework. It has a set of standard features (just like Python has a standard library) like an HTTP server for example. Frameworks for Node are written in JS and use the standard library to facilitate development of complex apps. Express is a popular Node framework to write web servers.
Need more?
http://en.wikipedia.org/wiki/NodeJS http://en.wikipedia.org/wiki/NodeJS
http://radar.oreilly.com/2011/07/what-is-node.html http://radar.oreilly.com/2011/07/what-is-node.html
http://stackoverflow.com/questions/1884724/what-is-node-js http://stackoverflow.com/questions/1884724/what-is-node-js
http://www.makeuseof.com/tag/what-is-node-js-and-why-should-i-care-web-development/ http://www.makeuseof.com/tag/what-is-node-js-and-why-should-...
- fka 12y agoIs NodeJS "like V8" or "on V8"?
- hasancc 12y agoneither. It just uses v8 to execute the interpreter output which is still javascript code. V8 converts javascript to machine code, and node.js basically acts as a middle man to add functionality to javascript like "event driven programming" which can't be implemented through a basic framework.
- fka 12y agoAre you sure? v8 itself is already event-driven. If not, Chrome wouldn't work event-driven.
- hasancc 12y agoYes Chrome is event driven, but Chrome is a sandbox which limits your I/O capabilities. Node.js on the other hand, is obviusly not a browser, so you can actually do I/Os with the system not only the sandbox.