Hacker News new | ask | show | jobs
by Aurornis 164 days ago
> That's not what happened here.

Yes, it's what happened here. The article is about debugging the author's own abstraction types that had some incorrect assumptions.

You do not need these wrapper types to call C functions. If the author had removed the complex extractions and called the extern "C" function directly (as is standard in Rust) there would not be the additional overhead.