gpt4 book ai didi

safari - webkit 中的 safari javascript 引擎

转载 作者:行者123 更新时间:2023-12-04 05:03:39 24 4
gpt4 key购买 nike

我记得我 friend 把 webkit javascript 引擎称为“JavaScript core”,
然而,当我四处搜索时,答案是 safari 运行 SquirrelFish 作为它的
JS引擎。我的 friend 告诉我,这可能是“开源”与“非开源”。

这意味着,webkit 是一个开源项目,因此它带有“JavaScript 核心”作为它的
JS 引擎 虽然 safari 不是开源项目,但它使用 SquirrelFish 作为其 JS
发动机。

维基说,

On June 2, 2008, the WebKit project announced they rewrote JavaScriptCore as 'SquirrelFish'



这是否意味着很久以前,webkit 使用 JavaScript 核心作为其 JS 引擎
但现在它已被重写并命名为“SquirrelFish”。因此,webkit 只有员工
松鼠鱼。

我的理解正确吗?

谢谢

最佳答案

Wikipedia article for Webkit给出了一个很好的总结:

JavaScriptCore

JavaScriptCore is a framework that provides a JavaScript engine for WebKit implementations, and provides this type of scripting in other contexts within OS X.[13][67] JavaScriptCore is originally derived from KDE's JavaScript engine (KJS) library (which is part of the KDE project) and the PCRE regular expression library. Since forking from KJS and PCRE, JavaScriptCore has been improved with many new features and greatly improved performance.[68] On June 2, 2008, the WebKit project announced they rewrote JavaScriptCore as "SquirrelFish", a bytecode interpreter.[29][30] The project evolved into SquirrelFish Extreme (abbreviated SFX, marketed as Nitro), announced on September 18, 2008, which compiles JavaScript into native machine code, eliminating the need for a bytecode interpreter and thus speeding up JavaScript execution.[31]



所以我想说,现在,WebKit 的 JS 引擎被称为 Nitro。

关于safari - webkit 中的 safari javascript 引擎,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15804169/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com