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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Node.js Interview: 4 Questions with Creator Ryan Dahl

53 点作者 kmccarth超过 14 年前

2 条评论

silentbicycle超过 14 年前
My first question is "why not coroutines?!"<p>I <i>love</i> Lua (IMHO, Lua is Javascript, if JS hadn't spent its formative years huffing glue). I get where he's coming from with the "most libraries are blocking" bit, because hey, most libraries <i>ARE</i> blocking -- making a fully event-loop-centric system really is a niche case. If you want to focus on that 100%, cool, <i>use Erlang</i>, damn it. They did it right! Failing that, make a clear point of running "non-async" code externally and message-passing.<p>But I <i>really</i> don't see the point of deluding JS programmers into writing hand-written-CPS "to be asynchronous". I wish they knew better. See e.g. <a href="http://news.ycombinator.com/item?id=2150800" rel="nofollow">http://news.ycombinator.com/item?id=2150800</a>
mjs超过 14 年前
The two most interesting points for me:<p>* JavaScript wasn't the original language choice: he originally tried C, Lua and Haskell. He especially liked Lua but "it already had a lot of libraries written with blocking code."<p>* He regrets using the CommonJS module system. ("Far too complex and wildly different from how the browser works.")
评论 #2163540 未加载
评论 #2163530 未加载
评论 #2164444 未加载