Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
243 views
in Technique[技术] by (71.8m points)

node.js - What is the content of the JavaScript platform core and the JS standard library mentioned by Axel Rauschmayer?

In his book JavaScript for impatient programmers (ES2020 edition) Axel Rauschmayer depicts a big picture for the possible platforms for JavaScript (cf. picture).

I am aware of the vast amount of possible JavaScript Engines and the popular ones like e.g. V8 written in C++. But I was wondering what is part of the Platform core and the JS standard library mentioned by Rauschmayer. Is there any other source, that explains or shows what is part of those modules. I am not sure whether the picture can be seen as an official architecture. But somewhere Dr. Rauschmayer probably has its knowledge from.

  • The foundational layer consists of the JavaScript engine and platform-specific “core” functionality.
  • Two APIs are hosted on top of this foundation:
    • The JavaScript standard library is part of JavaScript proper and runs on top of the engine.
    • The platform API are also available from JavaScript – it provides access to platform-specific functionality. For example:
      • In browsers, you need to use the platform-specific API if you want to do anything related to the user interface: react to mouse clicks, play sounds, etc.
      • In Node.js, the platform-specific API lets you read and write files, download data via HTTP, etc.

enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...