Best of Bun — 2024
- 1
- 2
- 3
Bun·2y
Compile and run C in JavaScript
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.
- 4
Bun·2y
How Bun supports V8 APIs without using V8 (part 2)
Bun aims to support V8 APIs without using V8 by simulating V8's memory layout using JavaScriptCore (JSC) types. Key methods include representing tagged pointers, managing maps and objects, and ensuring that native modules precompiled for the V8 API still function properly. Additionally, Bun implements Node.js-style module registration, allowing easier writing and testing of native addons. Future work will address JSC's garbage collector interaction, representation of various JavaScript values, and other parts of the V8 compatibility layer.
- 5
Bun·2y
Bun v1.1.26
Bun v1.1.26 introduces fixes for 9 bugs and several new features. Notable updates include a new 'bun outdated' command to identify outdated dependencies, enhanced 'Bun.serve()' method with 'idleTimeout' and 'subscriberCount' options, and improvements in Bun's test runner like 'test.only' to skip other tests. Additionally, Bun has increased Node.js compatibility and introduced several bug fixes.
- 6
Bun·2y
Bun v1.1.27
Bun v1.1.27 brings significant updates including 130 bug fixes, faster node:zlib performance, static route options in Bun.serve(), support for cloning ReadableStream in requests and responses, per-request timeouts, and better CTRL+C handling in bun run. Enhancements for watching arbitrary file types, and numerous Node.js compatibility improvements are also featured. Installation and upgrade instructions are provided for various platforms.
- 7
- 8
- 9