Capital on Nostr: Thought: Factors embedded API doesn't allow you to register external functions into ...
Thought: Factors embedded API doesn't allow you to register external functions into Factor. Additionally, you can't reach in an access Factors internal state.
HOWEVER!
I can write Factor code the exposes callbacks from C to Factor. I can write C code that exposes functions from Factor to C.
THUS!
I can store those callbacks in memory in a way the C side can access them again later. Giving me a way to expose Factor code through a C API.
Published at
2023-06-22 05:44:37Event JSON
{
"id": "13314dd659d99170cff6a8d2dca1b99e6690adb83573955992d30bbc8930866d",
"pubkey": "19132ebf4163a2399191bc90c23f33d1fe4945cbe9c807b0d196b172a2701961",
"created_at": 1687412677,
"kind": 1,
"tags": [
[
"mostr",
"https://furry.engineer/users/CapitalEx/statuses/110586277224600518"
]
],
"content": "Thought: Factors embedded API doesn't allow you to register external functions into Factor. Additionally, you can't reach in an access Factors internal state. \n\nHOWEVER!\n\nI can write Factor code the exposes callbacks from C to Factor. I can write C code that exposes functions from Factor to C.\n\nTHUS!\n\nI can store those callbacks in memory in a way the C side can access them again later. Giving me a way to expose Factor code through a C API.",
"sig": "08cd2aaf483de97f732792b3e7faaa8bd755d2f921d47668e1051afed9f618c0955d4a7a552531d6c0d4cc756ba0d5dae0f50e0a92785b63cb6ebd5a49b9c16d"
}