|Written by Kay Ewbank|
|Tuesday, 04 October 2022|
Bun is written in Zig, a low-level programming language with manual memory management. Among the parts of Bun that have been specifically written are clients for NPM, SQLite, HTTP, WebSocket and the JSX/TypeScript transpiler.
The developers say that they've spent their time profiling, benchmarking and optimizing things, and that while the mechanisms vary for different parts of Bun, the one general theme is that Zig's low-level control over memory and lack of hidden control flow makes it much simpler to write fast software.
The most recent version of Bun, v0.1.11 has a new plugin API for Bun's runtime, and offers two and a half times faster async http server responses. The React SSR on macOS is also twice as fast as in the previous release, and the macOS event loop is more reliable. The final change of note is the extension of support in tsconfig.json.
Bun 0.1.11 is available now.
Summer SALE Kindle 9.99 Paperback $10 off!!
or email your comment to: firstname.lastname@example.org