laanwj on Nostr: thanks, that's a great write-up i agree a C API is the way to go for cross-language ...
thanks, that's a great write-up
i agree a C API is the way to go for cross-language compatibility, especially for dynamic loading and binding from rust, python, and other languages, as well as for automatic bindings generation, a C API is a must-have, there's a lot of precedent there
not so sure about consuming it internally, C++->C->C++ translation adds a lot of overhead and potential bugs, so might as well shortcut (but use a similar enough convention) then
Published at
2024-10-22 08:47:04Event JSON
{
"id": "a34ba0e6402703f30d413d124ff1c76b75931538133cc9f4a39d901acd2c7fa9",
"pubkey": "0aa39e5aef99a000a7bdb0b499158c92bc4aa20fb65931a52d055b5eb6dff738",
"created_at": 1729586824,
"kind": 1,
"tags": [
[
"e",
"e162f4aebbe3e54136e469349db1f95db8c149d62bf006ad8f2eb0402df79d4f",
"",
"root"
],
[
"e",
"e162f4aebbe3e54136e469349db1f95db8c149d62bf006ad8f2eb0402df79d4f",
"",
"reply"
],
[
"p",
"2eb03a1f316c3cf9c900e7f536ee28e5486349067be018a965a7c7ca5b4f7f3c",
"",
"mention"
],
[
"client",
"noStrudel",
"31990:266815e0c9210dfa324c6cba3573b14bee49da4209a9456f9484e5106cd408a5:1686066542546"
]
],
"content": "thanks, that's a great write-up\n\ni agree a C API is the way to go for cross-language compatibility, especially for dynamic loading and binding from rust, python, and other languages, as well as for automatic bindings generation, a C API is a must-have, there's a lot of precedent there\n\nnot so sure about consuming it internally, C++-\u003eC-\u003eC++ translation adds a lot of overhead and potential bugs, so might as well shortcut (but use a similar enough convention) then\n",
"sig": "370f23348f0b4decafe63061fd87a87493d46bdaa8fe351c76f1db8b7071e312c7693abda969d82400667904cb6a94f00035cccd99ec33c3ffd7413dd1094aee"
}