Bun v1.1.28 introduces experimental support for compiling and running native C from JavaScript. This method aims to overcome the complexities and performance hits associated with current practices like N-API and WebAssembly. By using TinyCC, Bun ensures fast compilation and near-zero call overhead, making it ideal for integrating C libraries and system APIs with JavaScript without a separate build step.

13m read timeFrom bun.sh
Post cover image
Table of contents
What's wrong with N-API (napi)?What about WebAssembly?Compile and run native C from JavaScriptWhat can you build with this?What is this good for?

Sort: