Mike Yang on Nostr: 我用 Rust 访问 Ruby 的数据结构,不知道是 bindgen ...
我用 Rust 访问 Ruby 的数据结构,不知道是 bindgen 生成错了,还是第三方库有问题,反正我要的字段,地址差了 8 bit。
Rust 和别的系统搅合在一起就特蛋疼,想 safe 非常难。个人感受,如果我 C 写的好,我很可能不用 Rust。怪不得 Rust 在 linux 那受阻,然后有人还觉得是政治因素。
Published at
2024-09-09 02:03:08Event JSON
{
"id": "99f58d5828747b067f8d17eea1ac05e3595841f21d4a61b649a6ca92b1a7fc9d",
"pubkey": "a2dd5e13313d4e18fc2a8dfc0dd564ff1b488a8c5c6773a7616bc7f978817af5",
"created_at": 1725847388,
"kind": 1,
"tags": [],
"content": "我用 Rust 访问 Ruby 的数据结构,不知道是 bindgen 生成错了,还是第三方库有问题,反正我要的字段,地址差了 8 bit。\n\nRust 和别的系统搅合在一起就特蛋疼,想 safe 非常难。个人感受,如果我 C 写的好,我很可能不用 Rust。怪不得 Rust 在 linux 那受阻,然后有人还觉得是政治因素。",
"sig": "aee07a7ecb2e6c2585f313c783dab820955b43a8d304b32d130c103a36cb5100577d87267db3058d7797ae7847196c91a6c870962a01a4ee0cd881a9569ca566"
}