The Bun JavaScript runtime is in the oven

19 thanks kingsofpastry jma 100780444 large


Moving on to Node.js and Deno. Bun.

Currently in beta stage of development, Bun is billed as a modern JavaScript runtime similar to Deno and Node, it starts up fast, offers new levels of performance and is fully functional with a bundler, transpiler and package manager. built to be a powerful tool. Bun also features an NPM client that implements the Node module resolution algorithm.

Van has ambitions. The goal of this project is to “run most of the world’s JavaScript outside the browser”, improving the performance and complexity of future infrastructures. Developer productivity and simpler tools are also goals. The project claims to support 90% of Node-API functions.Built-in web APIs include fetch, WebSocketWhen ReadableStream.

Instructions for getting started with Bun can be found on the project website. Bun was designed as a drop-in replacement for current JavaScript and TypeScript apps and scripts on your local computer, server, or edge. Hundreds of Node.js and Web APIs natively implemented.

Written in the Zig low-level programming language, the Bun runtime uses the JavaScriptCore engine from the WebKit project. This tends to run faster than “traditional alternatives such as V8” used by both Node.js and Deno, says Bun developers. Most of Bun was written from scratch, including a client for NPM, SQLite, HTTP, WebSockets, and a JSX/TypeScript transpiler.

To make Bun faster, developers spent hours profiling, benchmarking, and optimizing. According to its developers, Zig’s low-level control over memory and transparent control flow make it easy to write fast software.

Copyright © 2022 IDG Communications, Inc.


Source link

What do you think?

Leave a Reply

Your email address will not be published. Required fields are marked *

GIPHY App Key not set. Please check settings

    mariposa county sheriff logo 300

    Mariposa County Daily Sheriff and Reservation Report for Saturday, October 1, 2022

    442f twittercard npm2 sandbox

    JavaScript sandbox vm2 remediates remote code execution risk