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. . The engine supports the ES2019 specification and additional math extensions such as the BigInt and BigFloat types. The performance of QuickJS is noticeable available analogues ( by 35%, more than twice three times and 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 under the MIT license. Read more about the project in the text. .
The new version adds experimental support for the type , which allows you to manipulate decimal numbers with arbitrary precision (analogous to BigInt for numbers with base 10). Updated implementation of operator overloading. Added 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
