[新闻] 微软如期开源ChakraCore JavaScript引擎

ChakraCore GitHub repository is now open

Microsoft/ChakraCore · GitHub

Microsoft/Chakra-Samples · GitHub

官方推账号:@ChakraCore

开发路线图:Roadmap · Microsoft/ChakraCore Wiki · GitHub

ChakraCore架构文档:Architecture Overview · Microsoft/ChakraCore Wiki · GitHub@彭飞 翻译了一份中文版。基本上跟之前在IE Blog / Windows Blog上有的信息一样,还没有啥新的信息。开源后能获取的新信息看来都得从源码里挖掘了。

ChakraCore源码目录结构:ChakraCore Code Structure · Microsoft/ChakraCore Wiki · GitHub

Running JavaScript in Azure DocumentDB with Chakra

Bytecode serialization

Upon registering a server-side script, DocumentDB uses Chakra to pre-compile and serialize the script to bytecode. In a normal JavaScript execution pipeline, the engine needs to parse the code, produce syntax trees and generate bytecode prior to execution. Chakra’s bytecode serialization allows DocumentDB to pre-process scripts up until (and including) bytecode generation and save a cached copy of the bytecode for re-use. This allows users to avoid the cost of re-parsing the script each time it is executed, which leads to substantial performance savings over time.

基于寄存器的字节码设计。有一套扩展的字节码专门用于表达asm.js的语义。

等俺有空读读代码再补充点内容上来。

如何看待微软 12 月 5 日宣布准备开源其 JavaScript 引擎 Chakra 的核心部分? - RednaxelaFX 的回答

12 条评论