4 ms·
Beyond this, is there any part of the JavaScript language itself that is inherently asynchronous or enables the writing of asynchronous code? I believe the ans
by brown9-2 14y ago
Beyond this, is there any part of the JavaScript language itself that is inherently asynchronous or enables the writing of asynchronous code?
I believe the answer is no - the async nature is provided by V8 and the core Node libraries.
- archangel_one 14y agoI would say yes, it's very easy to write inline anonymous functions which are very very nice for a primarily callback-driven model. I much prefer Python as a language overall, but I think writing code for "Node.py" would be an awful lot harder.
- pindi 14y ago"Node.py" is Twisted [1] and/or Tornado [2]. And you're definitely correct. [1] http://twistedmatrix.com/trac/ http://twistedmatrix.com/trac/ [2] http://www.tornadoweb.org/ http://www.tornadoweb.org/
- xyzzy123 14y agoAgree, Python doesn't feel as natural for callback-style. I do like the gevent (http://www.gevent.org/ http://www.gevent.org/) or greenlet style code though.
- mason55 14y agoI disagree. Try writing fully async Java - it's much, much harder without functions as first-class objects and true closures.