TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: What is Node.js? Framework, VM, stdlib or a platform?

8 点作者 fka大约 11 年前
What is the place of Node.js on a standart stack? It&#x27;s like VM but, V8 is like. It&#x27;s framework-like, but not. JavaScript is the language, V8 is the interpreter and the VM-ish...<p>I&#x27;m completely confused. Can someone help me to figure it out?

6 条评论

chm大约 11 年前
Hmmm... Try these tidbits:<p>NodeJS is a JS interpreter. You can run Node and execute JS code inside it. Node is written in C&#x2F;C++, like V8, and so it can be compiled for a lot of architectures. You can therefore run JS code &quot;natively&quot; on a machine. Node is single-threaded, event-driven, and can do IO. It&#x27;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 <i>for</i> 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.<p>Need more?<p><a href="http://en.wikipedia.org/wiki/NodeJS" rel="nofollow">http:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;NodeJS</a><p><a href="http://radar.oreilly.com/2011/07/what-is-node.html" rel="nofollow">http:&#x2F;&#x2F;radar.oreilly.com&#x2F;2011&#x2F;07&#x2F;what-is-node.html</a><p><a href="http://stackoverflow.com/questions/1884724/what-is-node-js" rel="nofollow">http:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;1884724&#x2F;what-is-node-js</a><p><a href="http://www.makeuseof.com/tag/what-is-node-js-and-why-should-i-care-web-development/" rel="nofollow">http:&#x2F;&#x2F;www.makeuseof.com&#x2F;tag&#x2F;what-is-node-js-and-why-should-...</a>
评论 #7658705 未加载
CmonDev大约 11 年前
<a href="http://en.wikipedia.org/wiki/Reactor_pattern#JavaScript" rel="nofollow">http:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Reactor_pattern#JavaScript</a><p>It&#x27;s an implementation of the Reactor pattern basically.<p>Sits somewhere between an inflated library and a higher-level framework (since there are packages).
ilaksh大约 11 年前
JavaScript is generally NOT interpreted anymore. For the majority of runtime it is running as native code. Node.js is a platform. If you are that confused then you will need to spend a few weeks using it to understand it.
sdogruyol大约 11 年前
Actually Node is a well packaged platform-like runtime built mainly upon these : V8, libeio, libuv and others ( DNS, OpenSSL e.g )<p>What makes it unique is that you use Node Standart Library with Javascript to harness the power of those.
cabbeer大约 11 年前
Here is a seminar from the edx cs50 series on node:<p><a href="https://manual.cs50.net/seminars/#_node_js" rel="nofollow">https:&#x2F;&#x2F;manual.cs50.net&#x2F;seminars&#x2F;#_node_js</a><p>There&#x27;s also a bunch of other really good ones
ankurdhama大约 11 年前
A tool to build software systems.