FFI - Python and Node.js and Rust

preview_player
Показать описание

We introduce cdylib, the c-compatible dynamic library format of Rust.

We start by performing certain interesting experiments with Strings and String slices to understand the challenges in exchanging the pointers between Rust and Python.

Then we introduce the significance of CString and CStr, the c-styled null-terminated implementation of Rust, that makes the invocation safe and breeze.

We continue our discussion on exposing the Rust Struct to the Python Client using the "principle of least knowledge". This type of adapter pattern finds a lot of applications in the field of interoperability between two languages. This design style is the first step towards understanding WebAssembly

Yes, we continue our pursuit of cross-compiling the PatternCounter, in its cdylib shared object format, for the Linux Target.

Рекомендации по теме
welcome to shbcf.ru