Best of Bun — 2024
- 1
- 2
Community Picks·2y
First Look At ElysiaJS
The post explores the author's experience with ElysiaJS, a runtime environment for building modern APIs. It discusses the features of ElysiaJS, such as end-to-end type safety and robust validation. The post also provides examples of code snippets to create a server using ElysiaJS.
- 3
Neon·2y
Wrapping My Mind Around Node.js Runtimes
Explore the innovations in JavaScript runtimes with a detailed look at Deno and Bun, and how they compare to Node.js. Understand the core components of a JavaScript runtime, the security and complexity issues in Node.js, and how Deno and Bun address these issues with features like built-in TypeScript support, enhanced security, and improved performance.
- 4
LogRocket·2y
WinterJS vs. Bun: Comparing JavaScript runtimes
WinterJS and Bun are compared in terms of speed and features. WinterJS is a fast JavaScript runtime built in Rust, while Bun focuses on providing elegant APIs. They have differences in OS support, TypeScript support, and framework compatibility. WinterJS claims to be the fastest runtime, and Bun also emphasizes speed. WinterJS is compatible with major frontend frameworks and supports Cloudflare Workers API, while Bun has wider adoption but less compatibility with frameworks like Next.js and Remix. Performance tests show that Bun performs better in a simple HTTP request scenario.
- 5
- 6
asayer·2y
How to: Migrating from Node to Bun
Learn about the rise of Bun as an alternative to Node.js and how it simplifies web development with its speed, built-in features, and seamless compatibility with Node.js APIs. Discover the essential features of Bun, how to start a new project, and strategies for migrating from Node.js to Bun. Don't forget to consider compatibility and focus on performance when making the migration.
- 7
Node.js developers·2y
How are you all feeling about sharing Bun and Deno updates here too?
A discussion is raised about whether updates on Deno and Bun, which are server-side JavaScript runtimes similar to Node.js and aim for npm-like compatibility, should be shared in a Node.js developers group. Members are asked if they agree or if they'd prefer the focus to remain exclusively on Node.js.
- 8
asayer·2y
Building an URL Shortener with Bun
Learn how to build a URL shortener using Bun, Elysia, and MySQL. Understand the process of converting long URLs into shorter URLs and how to implement features like analytics. Set up your development environment, create data models, and implement the URL-shortening logic.
- 9
- 10
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.
- 11
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.