![]() All projects on your system will therefore reference a single instance of the same library, which reduces diskspace requirements and improves installation performance. Bun caches modules in ~/.bun/install/cache/ and uses hardlinks to copy them into a project’s node_modules directory. Internally, Bun uses ES Modules, supports top-level await, translates CommonJS, and implements Node’s node_modules resolution algorithm. Experimental support for running WebAssembly-compiled. tsx files to convert HTML-like markup to native JavaScript. Like Deno, Bun has native support for both JavaScript and TypeScript without requiring a third-party transpiler or configuration. The result is a lightweight runtime with a smaller memory footprint, quicker start-up times, and performance which can be four times faster than Node.js and Deno under certain (benchmarking) conditions. Bun itself is written in Zig - a low-level programming language with manual memory management and native threading to handle concurrency. Bun opts for the JavaScriptCore engine which powers WebKit browsers such as Safari. Node.js and Deno use Chrome’s V8 JavaScript engine. Rather than running npm start to launch your Node script, you can run bun start and take advantage of Bun’s speed. The intention: Bun will become a drop-in replacement for Node.js, Deno, serverless JavaScript, and tools such as webpack, Babel, and Yarn. The origin of the name is unclear, and the logo doesn’t help! It could relate to the food, fluffy rabbits, “bundle”, or perhaps it’s a short, memorable name and the bun.sh domain was available. In 2022, Jarred Sumner released Bun following his frustrations with the speed of Node.js when developing a Next.js project. Reception has been positive, although Deno is yet to challenge Node’s domination. In 2020, Ryan Dahl released Deno - a remix of “noDe” - to modernize JavaScript development and address legacy issues with Node.js security, API compatibility, tooling, and module management. Version 20 arrived in 2023, and Node.js has the largest development ecosystem, with 3.2 million modules - accounting for almost 500 billion downloads per week (according to ). It wasn’t the first server-side JavaScript runtime, but Node.js rapidly gained momentum. In this article, we take a first look at Bun, and the reasons it may tempt you away from your current favorite. ![]() It probably would have been faster if I wasn't tired and didn't try to do too many things at once in the beginning.A rival JavaScript runtime contender has entered the battle between Node.js and Deno. Much of that time was troubleshooting and research. fetch ( feed, getFeeds () Īll in all, it took around four hours to write. No CORS, this is an "opaque" mode that limits what headers are sent. I tested that I could reach all the feeds in the browser and was served the appropriate XML.Īn example RSS XML document from my personal dev.to feed. I searched online for example feeds to pull from and decided on dev.to's feed, Codepen's feed, and Mozilla Hacks Blog. I found one tutorial that used the (then new) Fetch API and decided to build on that.įinding feeds is harder than it used to be back in 2006. Many of them were written in older syntax or used frameworks. I did a search for "rss reader javascript" and I came across several older projects and tutorials. Whenever I start a new project, I look for examples of the idea or similar ideas to build from. Okay, it wasn't a whim, Twitter was on fire and what better way to distract myself from my usual distraction than creating a new web application? Sadly, RSS has fallen out of popularity probably due to social media and other feeds taking over its role.īut last night on a whim, I decided to build a personal RSS reader with Vanilla JS. In addition, many browsers used to have RSS readers built in. It used to be quite popular with several different apps devoted to reading these feeds. RSS (Really Simple Syndication) is a web feed to check for updates on sites. Blogging never went away and neither did RSS feeds.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |