Skip to content

v0.1.0

Latest

Choose a tag to compare

@mohong2 mohong2 released this 14 Nov 14:07
· 4 commits to main since this release

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 int32 handles 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 (/MT on 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 FunkinLua API 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-failure

Documentation, benchmarks and the baseline comparison live in the README.