Skip to content

should we use more FFIs (w. native extern C backends) for data structures? #1350

@shrik3

Description

@shrik3

porting and maintaining system data structures per linux source code, which is often behind layers of macros and optimization flags, is a pain. If you miss an implicit data alignment and it goes completely wrong. Currently we do repr(C) and hope it matches the api/abis of the host system, and as the previous bug reports showed, we made bunch of mistakes.

My question: does it worth to use more native APIs/ABIs/data structures via FFI instead of making our own copy?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions