Ludovic Courtès on Nostr: Guile-Git uses the FFI to wrap libgit2, and libgit2 exposes C structs (as opposed to ...
Guile-Git uses the FFI to wrap libgit2, and libgit2 exposes C structs (as opposed to pointers to opaque structs as is often the case with “modern” C libraries).
Making sure we’re still targeting the right ABI when those structs change is a challenge…
Maybe time to use the nyacc’s ffi-helper?
Published at
2024-02-26 22:36:42Event JSON
{
"id": "d39b88fa620346c231fb6fb0b25b8e3e54aab97798c254a19df49b657fc2f9ea",
"pubkey": "a2f3c64c54a02b513cdf0462dbbd46f37b07ab9e2b4c1edf49df645c511e7cdd",
"created_at": 1708987002,
"kind": 1,
"tags": [
[
"e",
"9d6560b05d2f5daaf1b8eb04c368ba9e017ffb3f06a32d67506d6a0b1dbfd74a",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://toot.aquilenet.fr/users/civodul/statuses/112000172200234643",
"activitypub"
]
],
"content": "Guile-Git uses the FFI to wrap libgit2, and libgit2 exposes C structs (as opposed to pointers to opaque structs as is often the case with “modern” C libraries).\n\nMaking sure we’re still targeting the right ABI when those structs change is a challenge…\n\nMaybe time to use the nyacc’s ffi-helper?",
"sig": "57a55dbab388fb195e44891f5d9384831a294bc175ed1cc21967198d0dadb7319636776116fe6c407ae3dedfb2f155c37c97207f4dd8e2a432a61ddfa48a5185"
}