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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Node.js 16 Available Now

305 点作者 ilkkao大约 4 年前

10 条评论

dfabulich大约 4 年前
The new stable timers API in Node 16, combined with top-level await, means that you can now easily sleep in an ESM Node script, like this:<p><pre><code> import { setTimeout } from &#x27;timers&#x2F;promises&#x27;; await setTimeout(1000); console.log(&quot;awake&quot;); </code></pre> (But note that you&#x27;ll have to activate ESM mode to write this script, e.g. by writing it in a `.mjs` file instead of a `.js` file or by adding a setting to package.json.) <a href="https:&#x2F;&#x2F;redfin.engineering&#x2F;node-modules-at-war-why-commonjs-and-es-modules-cant-get-along-9617135eeca1" rel="nofollow">https:&#x2F;&#x2F;redfin.engineering&#x2F;node-modules-at-war-why-commonjs-...</a>
评论 #26879021 未加载
评论 #26884169 未加载
评论 #26899774 未加载
评论 #26879013 未加载
murukesh_s大约 4 年前
Are there anyone in HN community using Node.js for mission critical backends? Even though I am perfectly happy to do that and does, especially with Typescript support, I have seen increasing number of backend devs who are more comfortable to use a static typed stack like Java or Go. Wonder if Node.js will ever get wider adoption like Java got.
评论 #26878491 未加载
评论 #26881097 未加载
评论 #26878230 未加载
评论 #26877943 未加载
评论 #26878958 未加载
评论 #26878081 未加载
评论 #26878323 未加载
评论 #26882955 未加载
评论 #26878996 未加载
评论 #26878204 未加载
评论 #26880154 未加载
评论 #26877987 未加载
评论 #26879566 未加载
评论 #26878088 未加载
评论 #26881823 未加载
评论 #26880255 未加载
评论 #26878225 未加载
评论 #26881026 未加载
评论 #26878115 未加载
评论 #26880537 未加载
评论 #26879687 未加载
评论 #26879807 未加载
评论 #26881503 未加载
评论 #26881143 未加载
评论 #26878174 未加载
评论 #26880312 未加载
评论 #26877993 未加载
endisneigh大约 4 年前
I love Node - does anyone have good experiences with using Node with Rust&#x2F;Java&#x2F;C++ for interop as necessary performance wise?<p>I know it&#x27;s possible and that some teams do it, but the story wasn&#x27;t great with (much) earlier versions of node. Some teams just wrote their stuff in another language and just use a child process in node to call it, serializing everything as a string and DE serializing it in the other language. The problem with that though is that you suffer a pretty decent performance penalty serializing and deserializing, and though it still might be worth it, it&#x27;s also not great since some teams actually just called similarly to how you&#x27;d call a shell script.<p>Is it much better than that now?
评论 #26879094 未加载
评论 #26883248 未加载
travellingprog大约 4 年前
What excites me most about Node upgrades are the introduction of new native Javascript capabilities, because of the underlying V8 upgrade. You can figure out what those capabilities are on this website: <a href="https:&#x2F;&#x2F;node.green&#x2F;" rel="nofollow">https:&#x2F;&#x2F;node.green&#x2F;</a>.<p>You have to scroll down all the way to &quot;Node.js ES2021 Support&quot; to start seeing features that work in Node 16 but not Node 14 (the current LTS version). Of course, it&#x27;s possible to use Babel to bring those features into Node 14, but I enjoy leaving it out of my toolchain when possible.
macando大约 4 年前
<i>Node.js v16.0.0 will be the first release where we ship prebuilt binaries for Apple Silicon. While we’ll be providing separate tarballs for the Intel (darwin-x64) and ARM (darwin-arm64) architectures the macOS installer (.pkg) will be shipped as a ‘fat’ (multi-architecture) binary.</i><p>Apple presenting some major hardware news today. Perfect time to release v16 :)
sleepy_keita大约 4 年前
Ooh, and there&#x27;s an official darwin-arm64 binary too :) <a href="https:&#x2F;&#x2F;nodejs.org&#x2F;dist&#x2F;v16.0.0&#x2F;" rel="nofollow">https:&#x2F;&#x2F;nodejs.org&#x2F;dist&#x2F;v16.0.0&#x2F;</a>
评论 #26884535 未加载
bilekas大约 4 年前
&gt; This update brings the ECMAScript RegExp Match Indices, which provide the start and end indices of the captured string. The<p>I&#x27;m curious, because I&#x27;m useless at RegEx.. But will this break current RexEx implementations ??
评论 #26888408 未加载
baybal2大约 4 年前
I want to have control over the nodejs mainloop to integrate it with GUI toolkits in C
评论 #26883308 未加载
评论 #26885031 未加载
SavantIdiot大约 4 年前
Still hoping for official promise-kill+timeout support.
评论 #26881487 未加载
评论 #26879487 未加载
评论 #26880874 未加载
synergy20大约 4 年前
I have always been wondering how Node.js will do as a backend option. I feel it&#x27;s in decline, a quick google trend confirms it: <a href="https:&#x2F;&#x2F;trends.google.com&#x2F;trends&#x2F;explore?date=today%205-y&amp;q=%2Fm%2F0bbxf89" rel="nofollow">https:&#x2F;&#x2F;trends.google.com&#x2F;trends&#x2F;explore?date=today%205-y&amp;q=...</a><p>I invested quite some time on node.js and eventually bailed out and now am using other alternatives. It did not work out as not all applications need those async-logics which made code unnecessarily difficult.<p>Nowadays for me, nodejs along with npm&#x2F;yarn are just more of a frontend tool, which are still very useful and essential.
评论 #26877917 未加载
评论 #26881534 未加载
评论 #26878384 未加载
评论 #26878336 未加载
评论 #26878528 未加载