sh1marin on Nostr: ...
和别人讨论了一下,感觉其实从底层给封装也不是坏事,确实能避免反复的 foreign function call,感觉 stub file 的意义应该也在此,把 FFI 的粒度变成某个行为的封装,需要多个 API 完成的一个行为可以包在一起
Published at
2024-10-28 16:14:08Event JSON
{
"id": "eae60ebe99671757919a779c1756c7867b3995aa09d5831db00b19255109f6d2",
"pubkey": "71ea5c9d9ef4f01c1ecb1a116f7d15ffb26a241620bf28c856593523a5e8edcb",
"created_at": 1730132048,
"kind": 1,
"tags": [
[
"p",
"71ea5c9d9ef4f01c1ecb1a116f7d15ffb26a241620bf28c856593523a5e8edcb",
"wss://relay.mostr.pub"
],
[
"e",
"d2aecb06745c00a0e041486a30ff2d3549f223f83e3a9abb2e1ddb0abc4d95c5",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://dabr.ca/objects/914c18c0-43dc-4486-b230-2418b6825f80",
"activitypub"
]
],
"content": "和别人讨论了一下,感觉其实从底层给封装也不是坏事,确实能避免反复的 foreign function call,感觉 stub file 的意义应该也在此,把 FFI 的粒度变成某个行为的封装,需要多个 API 完成的一个行为可以包在一起",
"sig": "17f8e9424962d4a09af768db89579268e0682753b5a0bdd3f8f5eef6c1d1afdabcfb9d5b41802b529894e14cd14e58bd8a377290fc264d349f06a3d222438b22"
}