mirrors-QuickJS-master
js 

所属分类:JavaScript/JQuery
开发工具:JavaScript
文件大小:938KB
下载次数:0
上传日期:2021-01-08 23:40:40
上 传 者entcfes
说明:  QuickJS 是一个轻量且可嵌入的 JavaScript 引擎,它支持 ES2019 规范,包括 ES module、异步生成器以及 proxies
(Quickjs is a lightweight and embeddable JavaScript engine, which supports es2019 specification, including es module, asynchronous generator and proxies)

文件列表:
QuickJS (0, 2020-07-25)
QuickJS\Changelog (3226, 2020-07-25)
QuickJS\LICENSE (1091, 2020-07-25)
QuickJS\Makefile (12201, 2020-07-25)
QuickJS\TODO (3657, 2020-07-25)
QuickJS\VERSION (11, 2020-07-25)
QuickJS\cutils.c (16925, 2020-07-25)
QuickJS\cutils.h (7403, 2020-07-25)
QuickJS\doc (0, 2020-07-25)
QuickJS\doc\jsbignum.html (30296, 2020-07-25)
QuickJS\doc\jsbignum.pdf (153049, 2020-07-25)
QuickJS\doc\jsbignum.texi (20719, 2020-07-25)
QuickJS\doc\quickjs.html (50624, 2020-07-25)
QuickJS\doc\quickjs.pdf (165612, 2020-07-25)
QuickJS\doc\quickjs.texi (33912, 2020-07-25)
QuickJS\examples (0, 2020-07-25)
QuickJS\examples\fib.c (2291, 2020-07-25)
QuickJS\examples\fib_module.js (166, 2020-07-25)
QuickJS\examples\hello.js (28, 2020-07-25)
QuickJS\examples\hello_module.js (130, 2020-07-25)
QuickJS\examples\pi_bigdecimal.js (2128, 2020-07-25)
QuickJS\examples\pi_bigfloat.js (1977, 2020-07-25)
QuickJS\examples\pi_bigint.js (2834, 2020-07-25)
QuickJS\examples\point.c (4817, 2020-07-25)
QuickJS\examples\test_fib.js (144, 2020-07-25)
QuickJS\examples\test_point.js (718, 2020-07-25)
QuickJS\jscompress.c (25033, 2020-07-25)
QuickJS\libbf.c (240925, 2020-07-25)
QuickJS\libbf.h (17843, 2020-07-25)
QuickJS\libregexp-opcode.h (2236, 2020-07-25)
QuickJS\libregexp.c (83683, 2020-07-25)
QuickJS\libregexp.h (3129, 2020-07-25)
QuickJS\libunicode-table.h (211895, 2020-07-25)
QuickJS\libunicode.c (46403, 2020-07-25)
QuickJS\libunicode.h (3751, 2020-07-25)
QuickJS\list.h (3119, 2020-07-25)
... ...

QuickJS Javascript Engine

News

Introduction

QuickJS is a small and embeddable Javascript engine. It supports the ES2020 specification including modules, asynchronous generators, proxies and BigInt.

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

Main Features:

  • Small and easily embeddable: just a few C files, no external dependency, 210 KiB of x86 code for a simple hello world program.
  • Fast interpreter with very low startup time: runs the 69000 tests of the ECMAScript Test Suite in about 95 seconds on a single core of a desktop PC. The complete life cycle of a runtime instance completes in less than 300 microseconds.
  • 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 mathematical extensions is available at numcalc.com. It was compiled from C 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: HTML version, PDF version.

Download

Sub-projects

QuickJS embeds the following C libraries which can be used in other projects:
  • libregexp: small and fast regexp library fully compliant with the Javascript ES 2019 specification.
  • libunicode: small unicode library supporting case conversion, unicode normalization, unicode script queries, unicode general 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 under the MIT license.

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


Fabrice Bellard - https://bellard.org/

近期下载者

相关文件


收藏者