Developer Releases Pure Python JavaScript Runtime with C FFI and DOM Support
A developer has published 'myjs' on PyPI, a JavaScript runtime built entirely in Python that enables JS code to run within a Python process. The runtime uses a Python-ported Acorn AST engine to parse and execute JavaScript, giving scripts direct access to Python's standard library and OS capabilities. It integrates with the domonic library for server-side DOM manipulation and leverages Python's ctypes and cffi modules for low-level access to native C binaries. The project aims to eliminate the need for tools like node-gyp, C++ addon build chains, or IPC bridges such as gRPC when combining JavaScript with native libraries. It can be installed via pip or pipx and is positioned as a lightweight, portable alternative to embedding engines like V8.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in