August 8th, 2024

Bun v1.1.22 – Bun Blog

Bun v1.1.22 enhances performance, making Express three times faster than Node.js, improves ES module loading on Windows, reduces memory usage, adds new Uint8Array methods, and fixes various bugs.

Read original articleLink Icon
Bun v1.1.22 – Bun Blog

Bun v1.1.22 has been released, introducing significant performance improvements and bug fixes. The update resolves 79 bugs and enhances the speed of Express, making it three times faster in Bun compared to Node.js. ES modules now load up to four times faster on Windows due to concurrent transpilation support. Additionally, Bun.serve() sees a 10% increase in throughput for POST requests that do not read the request body. Memory usage has been optimized, with bun --hot using half the memory compared to the previous version. The release also includes new features such as Uint8Array.toBase64() and Uint8Array.toHex() for encoding and decoding, as well as improved compatibility with Node.js functions. Other enhancements include better stack traces, support for the NODE_EXTRA_CA_CERTS environment variable, and fixes for various bugs affecting module imports and error handling. The Bun team is actively hiring systems engineers to further develop JavaScript capabilities.

- Bun v1.1.22 improves Express performance, making it three times faster than Node.js.

- ES modules load up to four times faster on Windows with new concurrent transpilation support.

- Memory usage is reduced significantly, especially with the bun --hot command.

- New features include Uint8Array methods for base64 and hex encoding.

- The update fixes numerous bugs and enhances compatibility with Node.js functions.

Related

Exposition of Front End Build Systems

Exposition of Front End Build Systems

Frontend build systems are crucial in web development, involving transpilation, bundling, and minification steps. Tools like Babel and Webpack optimize code for performance and developer experience. Various bundlers like Webpack, Rollup, Parcel, esbuild, and Turbopack are compared for features and performance.

Gleam v1.3.0 – Auto-imports and tolerant expressions

Gleam v1.3.0 – Auto-imports and tolerant expressions

Gleam v1.3.0 update includes auto-imports, tolerant expressions, enhanced completions, import cycles diagnostics, syntax warnings, arithmetic support, and JavaScript bundler hints. Contributors improved functionality and user experience significantly.

Node.js Is Here to Stay

Node.js Is Here to Stay

Node.js, a key technology for 15 years, powers 6.3 million sites and 98% of Fortune 500 companies. Its lightweight, event-driven design suits real-time and high-concurrency needs. Security updates, Linux preference, and new features like ECMAScript Modules ensure Node.js remains a versatile and secure tool for modern web development.

Why is spawning a new process in Node so slow?

Why is spawning a new process in Node so slow?

Node.js shows slow performance in spawning processes, handling 651 requests per second compared to over 2,200 for Deno and Bun, and over 5,000 for Go and Rust. Improvements were noted with child processes.

Node.js – v22.6.0

Node.js – v22.6.0

Node.js version 22.6.0 introduces experimental TypeScript support with the --experimental-strip-types flag and network inspection capabilities, along with various minor improvements to diagnostics and build processes.

Link Icon 5 comments
By @Jarred - 8 months
I work on Bun. Happy to answer any questions
By @atonse - 8 months
I’ve been using bun with NextJS 14 and it’s worked really well the last few months.

So well in fact that I forgot that the lack of stack traces was due to Bun. I forgot NextJS even gives you stack traces in the browser, it’s been that long.

I’m going to upgrade ASAP just for that feature.

I still have to run npm run build for nextjs to ensure it’ll work in Vercel because there are the occasional errors that were only caught during a deploy.

By @ibash - 8 months
Thank you for bun! Makes it much easier to add small focused typescript tools to a production monorepo, because there’s no dance and shake to start developing. Phenomenal!