Simon Willison on Nostr: The architecture is really interesting: they chose to compile V8 with a thin ...
The architecture is really interesting: they chose to compile V8 with a thin additional C++ layer that they wrote to expose a ctypes-friendly API, then have their Python library code access it through ctypes
https://bpcreech.com/PyMiniRacer/architecture/Published at
2024-03-24 17:24:21Event JSON
{
"id": "0827ae7f6c3a1c27d6ca635c361655d287b1932a517a4b678d74dc273a2a7a45",
"pubkey": "8b0be93ed69c30e9a68159fd384fd8308ce4bbf16c39e840e0803dcb6c08720e",
"created_at": 1711301061,
"kind": 1,
"tags": [
[
"e",
"97cace3000d9de8e3c865ef625959efebdc12bb44defd403363bcb6120997d5c",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://fedi.simonwillison.net/users/simon/statuses/112151826354991167",
"activitypub"
]
],
"content": "The architecture is really interesting: they chose to compile V8 with a thin additional C++ layer that they wrote to expose a ctypes-friendly API, then have their Python library code access it through ctypes https://bpcreech.com/PyMiniRacer/architecture/",
"sig": "2070bc0e11171b83589d6d2043092b9bb3435b44fcfa928bff95b810a75cd97b513b9eb65237eda0bef3394b58d6d512071b8d3b275cab3bda00589449760824"
}