暂无图片
暂无图片
暂无图片
暂无图片
暂无图片
What could we learn from Deno’s architecture_陈天, Tubi TV.pptx
136
23页
7次
2022-10-09
免费下载



陈天 

Core concepts before we start
Introduction
v8 is the javascript runtime that sits in your chrome browser to execute the code in every web page
v8 isolate is a sandbox to run JS code in a secure and constrained environment (every chrome tab starts
a new v8 isolate)
v8 bindings are the external references provided to v8 so that JS code can execute APIs provided by
native side - e.g. if you do a TCP listen in JS, which will call something like an “op_listen” from C++ code.
promise is a value that could be resolved (or rejected) in a future time
async/await is syntactic sugar for using promise in “blocking”, non-callback manner

Architecture of Nodejs
Introduction
V8 as the JS execution engine
Node bindings to provide the
server side operations for JS code
Libuv to handle the event loop for
resolving promises (callbacks)
Libio to handle thread pool
Stdlib as a common foundation for
user applications.
Source
of 23
免费下载
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文档的来源(墨天轮),文档链接,文档作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。