4 ms·
Check out PythonMonkey [1], it's an actively maintained project which embeds the SpiderMonkey JS engine inside a Python library. It reuses the same memory buffe
by willquack 2y ago
Check out PythonMonkey [1], it's an actively maintained project which embeds the SpiderMonkey JS engine inside a Python library. It reuses the same memory buffers whenever possible and allows for pretty impressive interop like executing functions back and forth [2].
At my last job we used PythonMonkey to port our complex distributed computing JS Library to Python enabling us to reuse all the code and keep almost all the performance.
1. https://pythonmonkey.io/ https://pythonmonkey.io/ and https://github.com/Distributive-Network/PythonMonkey https://github.com/Distributive-Network/PythonMonkey
2. https://distributive.network/jobs/python-monkey https://distributive.network/jobs/python-monkey