Repository navigation
Releases
Releases · mohong2/QuickJS-Forge
v0.1.0
Embed JavaScript in Haxe/hxcpp projects.
Highlights
- Full ES2023 through quickjs-ng 0.18 — classes with private fields, generators, async/await, async generators, BigInt, Proxy, TypedArrays, named-group and lookbehind regex, top-level await.
- Flat C ABI: only
int32handles and a preallocated argument stack cross the boundary, so a call costs tens of nanoseconds instead of a JSON round-trip. - 34–38 ns per C→JS call, 82–110 ns per JS→C callback, 19–21 ns per property write (12–13 ns pre-bound), 0.5–0.8 µs per bytecode load.
- Static linkage with a matching CRT (
/MTon Windows); no DLLs, no MinGW runtime, no search paths. - Bytecode cache, frame-budget interrupt (4 ms/script/frame), memory and stack limits, per-script circuit breaker.
- Psych Engine adapter mirroring the
FunkinLuaAPI by name and argument order (265 registered functions on 0.6.3-lineage forks). - CMake build for Windows, Linux and macOS; CI runs the test suite on all three.
Getting started
git clone --recursive https://github.com/mohong2/QuickJS-Forge
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release --parallel 4
ctest --test-dir build -C Release --output-on-failureDocumentation, benchmarks and the baseline comparison live in the README.