0

I'm a beginner in writing http server code. I'm wondering why I need node.js specifically to develop server that is non-blocking? Can't I do that with any language that provides callbacks?

Thanks

mskw
  • 10,063
  • 9
  • 42
  • 64
  • PHP has callbacks, but no asynchronous processing model (i.e. no event loop) AFAIK. Or maybe we have different definitions of "callbacks". – Felix Kling Oct 13 '15 at 14:32
  • 1
    well, you don't need node.js for anything. it's just another programming language, you can choose to use it or not to. – Kevin B Oct 13 '15 at 14:53
  • I thought node.js is just a runtime and not a language. But how this runtime is different than if I used just the V8 runtime is confusing me – mskw Oct 13 '15 at 14:54
  • *"I thought node.js is just a runtime and not a language."* Right. However you asked whether other *languages* can do the same thing. *" But how this runtime is different than if I used just the V8 runtime is confusing me"* So a completely different question though right? V8 doesn't provide a standard library that allows you to access the file system, make network requests or provide a module system. You might want to have a look at [What is Node.js?](http://stackoverflow.com/q/1884724/218196). – Felix Kling Oct 13 '15 at 15:22

0 Answers0