**

Bun's FFI module allows JavaScript apps to call libraries written in other languages like Rust, C++, and C. However, using FFI comes with limitations, such as limited supported types and memory management complexities. A benchmark shows native library performance is comparable to WebAssembly but worse than pure TypeScript implementation.

**

Source: https://dev.to/1ce/how-to-and-should-you-use-bun-ffi-4c9k

Reply to this note

Please Login to reply.

Discussion

No replies yet.