A new version of the embeddable JavaScript engine from the founder of QEMU and FFmpeg

French mathematician Fabrice Bellard, who once founded the QEMU and FFmpeg projects, has published an update to the compact embedded JavaScript engine he is developing. QuickJS. The engine supports the ES2019 specification and additional math extensions such as the BigInt and BigFloat types. The performance of QuickJS is noticeable surpasses available analogues (XS by 35%, duktape more than twice jerryscript three times and MuJS seven times). The project offers a library for embedding the engine, a qjs interpreter for running JavaScript code from the command line, and a qjsc compiler for generating self-contained executable files. The code is written in C and spreads under the MIT license. Read more about the project in the text. announcement of the first issue.

The new version adds experimental support for the type BigDecimal, which allows you to manipulate decimal numbers with arbitrary precision (analogous to BigInt for numbers with base 10). Updated implementation of operator overloading. Added Examples programs for the efficient calculation of Pi with an accuracy of up to a billion numbers after the decimal point (as a mathematician, Fabrice Bellard is known as the creator of the fastest formula for calculating Pi).

Source: opennet.ru

Add a comment