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.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…