Polycompiler: Merging Python and JS into a Single File
2025-05-07
Polycompiler is an experimental project that attempts to merge arbitrary Python and JavaScript code into a single source file. Using clever lambda expressions and the `eval` function, Polycompiler selectively executes either Python or JavaScript code depending on the runtime environment (Python or Node.js). For example, a single code snippet prints 'Hello JS' in Node.js and 'Hello Python' in Python. While still a work in progress, this project offers a potential solution for single-file applications targeting both Python and JavaScript audiences.
Development