今日要点:
-
ChakraCore是Chakra的跨平台版本,而Chakra是微软最新版的JS引擎
-
如同.net core是微软.net库的跨平台版本,由此可见。微软貌似将带core 后缀的库都是跨平台的
-
ChakraCore最核心的是被称为:JSRT C 语言 API 集合(传说中的Javascript Runtime)
-
ChakraCore简介
-
JSRT简介
ChakraCore简介
ChakraCore is the core part of Chakra, the high-performance JavaScript engine that powers Microsoft Edge and Windows applications written in HTML/CSS/JS. ChakraCore supports Just-in-time (JIT) compilation of JavaScript for x86/x64/ARM, garbage collection, and a wide range of the latest JavaScript features. ChakraCore also supports the JavaScript Runtime (JSRT) APIs, which allows you to easily embed ChakraCore in your applications.
JSRT简介
The JavaScript Runtime (JSRT) APIs provide a way to embed ChakraCore into applications and light up JavaScript capabilities. JSRT APIs are shipped as part of the ChakraCore project. This document describes the key concepts and aspects of JSRT APIs. For API reference, please see JavaScript Runtime (JSRT) Reference
具体请参看
JavaScript Runtime (JSRT) APIs
关于世界4大js引擎的简介:
- google v8 ,目前为止,我只能编译出静态链接库版本。静态库将近3G,运行链接一次需要2分钟,太庞大了
- mozilla spider monkey,老牌的js引擎,编译后大小合适,很适合使用
- ms chakra core,最新的js引擎,支持es6标准,编译后最小,速度很快,我个人蛮喜欢的
- 苹果的webkit中的javascript core引擎,没编译过,但是感觉不会太小
其实以前编译这些是为了选一个js引擎用于一个c++程序中,对外公布的脚本使用js,因此花了一点时间研究。
网友评论