SunPoint IT Solutions

Loading...

Blog

Bun

           Bun js is the most discussed. After all, it is expected that it will become the next big breakthrough. Most believe that this is an exaggeration to attract attention.

           But what exactly is Bun?

          Bun is a modern JS runtime. It uses the JS core engine, not JS v8 like Node.js for example.  First of all, the engine is known for its performance and low memory consumption thanks to a number of optimizations, including Just in time compilation. JIT allows code to execute much faster because it is compiled into machine code directly at runtime.

 

 

        Bun is written in the ZIG programming language. The language was developed by Andrew Kelly in 2012. It provides direct compatibility with the C programming language and easily integrates existing code and libraries.  It is also designed to work without external dependencies, which undoubtedly makes it ideal for systems programming and writing low-level code. 
            Bun js has a built-in package manager, so you don`t need to use tools like npm or Yarn. However, Bun requires much less time to compile code than others. It supports both esmodule and common js out of the box. This means that you can import both types of modules and they will work correctly.

             It has built-in TS support.In bun js you don`t need to use additional libraries like in node js to get environment variables. Equipped with support for such web api as fetch, websocket readable stream. It can also be used as a project collector.  Bun is very fast, which makes it one of the fastest tools compared to other pickers.  We can write React code on it and compile files with jsx or tsx extension.

          Summarizing all the features and features, BUN is a powerful tool that is really worth considering. However, should it be used on large projects? The question remains open. As of today, more than 3,000 issues have been opened in the BUN repository, most of them related to compatibility problems on various platforms. Some of them have specific bugs for different operating systems.

 

 

https://youtu.be/8kRRgzh7o7c

LATEST POSTS
LATEST POSTS