请选择 进入手机版 | 继续访问电脑版
  • 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

QuickJS: QuickJS 是一个轻量且可嵌入的 JavaScript 引擎,它支持 ES2019 规范,包括 ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

QuickJS

开源软件地址:

https://gitee.com/mirrors/QuickJS

开源软件介绍:

QuickJS Javascript Engine

News

Introduction

QuickJS is a small and embeddable Javascript engine. It supports theES2020 specificationincluding modules, asynchronous generators, proxies and BigInt.

It optionally supports mathematical extensions such as big decimalfloating point numbers (BigDecimal), big binary floating point numbers(BigFloat) and operator overloading.

Main Features:

  • Small and easily embeddable: just a few C files, no externaldependency, 210 KiB of x86 code for a simple hello worldprogram.
  • Fast interpreter with very low startup time: runs the 69000 testsof the ECMAScript TestSuite in about 95 seconds on a single core of a desktop PC. Thecomplete life cycle of a runtime instance completes in less than 300microseconds.
  • Almost complete ES2020 support including modules, asynchronous generators and full Annex B support (legacy web compatibility).
  • Passes nearly 100% of the ECMAScript Test Suite tests when selecting the ES2020 features. A summary is available at Test262 Report.
  • Can compile Javascript sources to executables with no external dependency.
  • Garbage collection using reference counting (to reduce memory usage and have deterministic behavior) with cycle removal.
  • Mathematical extensions: BigDecimal, BigFloat, operator overloading, bigint mode, math mode.
  • Command line interpreter with contextual colorization implemented in Javascript.
  • Small built-in standard library with C library wrappers.

Benchmark

Online Demo

An online demonstration of the QuickJS engine with its mathematicalextensions is availableat numcalc.com. It was compiled fromC to WASM/asm.js with Emscripten.

qjs and qjscalc can be run in JSLinux.

Documentation

QuickJS documentation: HTML version,PDF version.

Specification of the JS Bignum Extensions: HTMLversion, PDF version.

Download

Sub-projects

QuickJS embeds the following C libraries which can be used in otherprojects:

  • libregexp: small and fast regexp library fully compliant with the Javascript ES 2019 specification.
  • libunicode: small unicode library supporting caseconversion, unicode normalization, unicode script queries, unicodegeneral category queries and all unicode binary properties.
  • libbf: small library implementing arbitrary precision IEEE 754 floating point operations and transcendental functions with exact rounding. It is maintained as a separate project.

Links

Licensing

QuickJS is released underthe MIT license.

Unless otherwise specified, the QuickJS sources are copyright FabriceBellard and Charlie Gordon.


Fabrice Bellard - https://bellard.org/

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap