Best Website-BuildersBest Website-Builders
    What's Hot

    DeSantis Calls Putin a ‘War Criminal’ and a Gas Station With Nukes

    March 23, 2023

    Chris Mason: Boris Johnson's political future hangs in balance

    March 23, 2023

    Mortgage calculator: how much will my mortgage go up?

    March 23, 2023
    Facebook Twitter Instagram
    Facebook Twitter Instagram
    Best Website-BuildersBest Website-Builders
    • Home
    • CSS

      Google’s Bard vs OpenAI’s ChatGPT: Which AI rival chatbot is better?

      March 22, 2023

      Staff Sergeant Lixandy Estrella Cespedes > Gunsan Air Force Base > Gunsan Air Force Base

      March 22, 2023

      Social Security launches investigation into disappearance of zombie drug

      March 22, 2023

      The Markland area will be closed for about six months

      March 21, 2023

      The battle of ironclads marked the beginning of modern ships

      March 21, 2023
    • Joomla

      Reseller Hosting Business: Important Q&A

      March 21, 2023

      Web Hosting: 8 Elements Every Entrepreneur Should Look For

      March 20, 2023

      VS Code Extension for In-Browser Development, WapuuGotchi Gamification Plugin & More – WP Tavern

      March 20, 2023

      How Superior Web Hosting Support Can Drive Business Success

      March 17, 2023

      PANDACU Studio Website Development Cooperation First Page Sage SEO Dsign Chicago adstargets Cardinal Digital Agency

      March 16, 2023
    • PHP

      Inheritance season 4 review

      March 22, 2023

      Stephen Smith’s death is a homicide investigation, says SLED

      March 22, 2023

      John Legend wants Olivia Rodrigo to play Chrissy Teigen in biopic

      March 22, 2023

      Tasha K dismisses appeal against Cardi B lawsuit

      March 22, 2023

      Denver high school student shoots two adults, police say

      March 22, 2023
    • UX

      Turo CMO Andrew Mok Standardizes Car Sharing and Focuses on User Experience

      March 22, 2023

      Review: 2023 Lexus UX 250h F Sport

      March 22, 2023

      One UI 6.0 shouldn’t ruin the Galaxy S23’s great user experience

      March 22, 2023

      User Experience Is Key To Massive Adoption In The Blockchain World

      March 22, 2023

      Top 5 Tech Skills to Adopt Immediately

      March 22, 2023
    • Web Builders
      1. Web Design
      2. View All

      What Comes First in Website Development — Design or Copy?

      February 2, 2023

      Modern Campus Honors Best Higher Education Websites of 2022

      February 2, 2023

      Premier SEO Consultant in Las Vegas, Nevada with Unparalleled Customer Service

      February 2, 2023

      Can Religious Freedom Be Saved? This group is racing the clock to teach America’s first freedom

      February 2, 2023

      How i Create New Google Account

      February 7, 2023

      CWT powers tools for meeting and event planners

      January 31, 2023

      Best Website Builder – Website Builders

      January 24, 2023

      Is There A Market For Rap-Themed Slot Games? – Rap Review

      January 19, 2023
    • WordPress

      Newegg makes buying the ideal NAS easy

      March 22, 2023

      You can now buy LG’s new Dolby Atmos soundbar that plays well on PS5

      March 22, 2023

      Bitcoin ATM leaked after hackers exploited zero-day bug

      March 22, 2023

      Intel Arc Chief Leaves Team Blue, And This Could Be Good For Gamers

      March 22, 2023

      Lionsgate Streaming Platform Exposed Data of 37 Million Users

      March 22, 2023
    • Realtoz
      • Our Other Sites
    • More News
    Best Website-BuildersBest Website-Builders
    Home » What is Bun.js and why is the JavaScript community excited about it?
    JavaScript

    What is Bun.js and why is the JavaScript community excited about it?

    websitebuildersnowBy websitebuildersnowAugust 2, 2022No Comments4 Mins Read
    Facebook Twitter LinkedIn Telegram Pinterest Tumblr Reddit WhatsApp Email
    Share
    Facebook Twitter LinkedIn Pinterest Email


    Always getting new frameworks and libraries is what JavaScript is famous for. In July 2022, the ecosystem welcomed a new member, his Bun.js. Here we take a look at Bun.js and how it affects the wider JavaScript ecosystem.


    What is Bun.js?

    A bang is defined as “A fast all-in-one JavaScript runtime.” It is Jarred Sumner’s third runtime created using the Zig programming language, after Node.js and Deno.js.

    Its primary purpose is to provide a platform for running JavaScript outside the browser like Node.js and Deno.js, but Bun offers new levels of speed and enhanced complexity. progressing to

    Evolution of JavaScript

    JavaScript was originally built to run only within browsers powered by engines such as SpiderMonkey and V8. In 2009, Ryan Dahl incorporated his V8 engine into his C++ program called Node.js. JavaScript has since become relevant for a variety of uses, including server-side and real-time applications.

    Promises and ES modules are examples of modern JavaScript features that didn’t exist when Node.js was created. Ryan also gave a talk in 2018 about his regrets about Node.js. His regrets inspired his creation of Deno.js, which was released in 2020.

    Deno is an executable built in Rust that aims to address all Node’s flaws, including security, performance, and native TypeScript support. It comes with tools that Node.js doesn’t have and is much faster and more secure than Node.js.

    However, four years after its release, Deno still hasn’t seen the massive adoption it hoped for. Most modern systems are already node-based and changes can be painful for developers. Having to rewrite most npm packages to support Deno also makes it harder to adopt.

    In July 2022, a new runtime Beta “Bun.js” is out. This is a hot topic both inside and outside the JavaScript community. The interoperability with Node.js and the fast performance that Node.js claims to offer has been eye-opening. There is also a debate that finally “Node-destroyer” has appeared.

    How does Bun.js compare to Node.js and Deno.js?

    Node, Deno, Bun, JavaScript logo design

    Node, Deno, and Bun are all JavaScript runtimes outside the browser, and the differences between them are not neutralized.

    Node.js was built with C++, Deno with Rust, and Bun with Zig. Bun’s website states, “The low-level control over memory and the lack of Zig’s hidden control flow make it easier to write fast software.”

    Both Node and Deno run Google’s V8 engine, but Bun leverages the “quick start” performance of Webkit’s JavaScriptCore engine, which Apple’s Safari uses. Benchmark results on the website show that Bun outperforms both He Node and Deno in performance, running at least three times faster than both runtimes.

    Bun has npm (node ​​package manager) built-in, which makes installing packages from npm easy and fast (20x faster than Node), and also supports TypeScript and auto-transpiling TS and JSX files . Other exciting features of Bun include a built-in SQLite3 client, web APIs such as fetch and WebSockets, automatic loading of environment variables, test runners, and more.

    Of all three, Bun takes the cake for performance, Node is still the most stable with a very large community, and Deno is currently the most secure.

    Will Bun.js really impact the ecosystem?

    The ecosystem is excited about Bun’s release. It’s understandable that the hype around Bun has grown so much since its announcement. That’s absolutely a big deal. Given its “blazing” speed and robust tools for productivity, JavaScript developers will really love it.

    Additionally, Bun’s Discord server already has over 2000 members, proving the community’s excitement about this new technology.

    What is the future of Node.js, Deno.js and Bun.js?

    JavaScript isn’t going away anytime soon. In fact, this is one of the technologies he believes will still exist 10 years from now. Node, Deno and Bun have a future too.

    Node is still being updated regularly and just recently released version 18.0, so having Deno and Bun around doesn’t hurt its future. Many companies like PayPal use his Node in their infrastructure and even new startups are following suit.

    So does the actively developed and growing Deno. Deno is also branching out into SaaS solutions that offer managed JavaScript runtime services.

    Bun.js is still unstable and has limited support (requires Windows Subsystem for Linux to run on Windows). It has a lot of features, but it still needs a lot of work, so it’s not an option for production ready software right now.

    Bun’s future is certainly bright, but it’s logical to think that these three technologies will likely co-exist within the ecosystem, rather than one replacing the other.

    Bun.js could be a game changer

    Using Bun can improve many things about JavaScript. Perhaps the time has come for JavaScript to be better adopted in performance-critical areas such as AI/ML, game development, etc. Visit the Bun.sh website to learn how to install Bun and start developing.



    Source link

    Share this:

    • Tweet
    • Email
    • Pocket
    • Mastodon
    • WhatsApp
    • Telegram
    • Share on Tumblr
    • Print
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Telegram Email
    Previous ArticleNeed to edit email code – HTML & CSS – SitePoint Forums
    Next Article Social network cohost lets users turn posts into games
    websitebuildersnow
    • Website

    Related Posts

    Move away from using (most) WebR R functions in WebR-powered apps/sites and call a single JavaScript function

    March 21, 2023

    “Smaller, Simpler, Faster” — Visual Studio Magazine

    March 21, 2023

    Burp Suite Enterprise Edition Power Tools: Unleash the Power of Command Line, Python and More | Blog

    March 21, 2023
    Add A Comment

    Leave a Reply Cancel reply

    Top Posts

    Subscribe to Updates

    Get the latest sports news from SportsSite about soccer, football and tennis.

    Advertisement
    Demo

    This website provides information about CSS and other things. Keep Supporting Us With the Latest News and we Will Provide the Best Of Our To Makes You Updated All Around The World News. Keep Sporting US.

    Facebook Twitter Instagram Pinterest YouTube
    Top Insights

    DeSantis Calls Putin a ‘War Criminal’ and a Gas Station With Nukes

    March 23, 2023

    Chris Mason: Boris Johnson's political future hangs in balance

    March 23, 2023

    Mortgage calculator: how much will my mortgage go up?

    March 23, 2023
    Get Informed

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    © 2023 bestwebsite-builders. Designed by bestwebsite-builders.
    • Home
    • About us
    • Contact us
    • DMCA
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.