Why I Ditched Babel for SWC—And Made My Builds 400x Faster

As a backend developer, I’ve always prioritized efficiency in my workflow. But when my JavaScript builds started taking over 91 seconds (91,241ms) with Babel, I knew something had to change. Enter SWC (Speedy Web Compiler)—a Rust-based alternative to Babel that completely transformed my development experience.

My build time dropped from 91,241ms to just 216.21ms. That’s a 400x speedup! 🚀

Why Babel Started Slowing Me Down

Babel is an incredible tool, but its reliance on JavaScript-based transpilation makes it slower as projects scale. My app, weighing 196MB, was becoming a bottleneck in my CI/CD pipeline. The long build times were frustrating, leading to:
✅ Slower iteration cycles
✅ Longer deployment times
✅ Increased resource usage

SWC: A Game-Changer for Build Performance

These tests were conducted on a real production app, making the results even more significant. SWC, written in Rust, is built for speed.

Here’s how my build stats changed:

Continue reading

How to Generate Embeddings Using OpenAI

Introduction

Embeddings are numerical representations of text, images, or other data types that capture semantic meaning. OpenAI provides powerful embedding models that can be used for applications such as search, clustering, recommendation systems, and more. In this article, we will explore how to generate embeddings using OpenAI’s API and implement them in a real-world use case.

What Are Embeddings?

Embeddings transform words, sentences, or documents into fixed-length vector representations in a high-dimensional space. These representations help in tasks such as:

  • Semantic search – Finding similar documents based on meaning.
  • Clustering – Grouping similar content together.
  • Recommendation systems – Suggesting relevant items.
  • Text classification – Categorizing text automatically.

Getting Started with OpenAI Embeddings

Continue reading

Automate generation of _id for array elements in MongoDB

The great MongoDB doesn’t generate _id for array elements automatically unless it’s schema is defined separately. The below is the example to define a separate schema for the subdocuments.

const arrayElementSchema = new mongoose.Schema({...});

const mainDocument = new mongoose.Schema({
  children: [arrayElementSchema]
})

With the above Schema, MongoDB will generate _id for every element you insert into the “children” array.

Having _id for array elements makes it easy to find, delete and update the same. Otherwise, they have to be found by the index which will not be the same as always.

YouTube Capture – A New Mobile App To Capture And Share

YouTube Capture is the new app from YouTube which is currently available only for iOs. The app allows users to Capture, Edit, and Upload Video’s on the go. The app has the access to the local storage and camera which uses camera to capture and you could find the recorded videos from “Photos” app on your device. You could record videos of any length through this App. This App provides you editing options which include Trimming a part of the videos, Rearranging the recorded clips and Adding soundtrack directly from the music collection or from audio library. Continue reading

WordPress || Redirect Non-WWW URL’s to WWW

Redirecting Non-WWW URL’s to WWW became simpler through the wordpress settings. This may be a tiny tip but it’s very much useful. No need of creating or editing “.htacess” or “web.conf” files. You just need to go to your settings page of your wordpress blog. Logon to your wordpress blog and go to the settings page. Here is a screenshot for you.

Before Editing The Url: Continue reading

Awesome Features Of iOs 7

The most awaited Os has been released today and its installation is successful on my iPhone 4S. Today, morning i noticed the packaged update of iOs 7 and iTunes 11.1.It is impossible to connect your iPhone (installed with iOs 7) to iTunes 11.0 and hence you require iTunes 11.1 or higher version. However, the new OS includes many new features including Control Center, AirDrop, Multitasking, and re-modified camera. Take a look at the new features if you haven’t updated to 7th version.

Updated Features:

Capturing A Screen Shot On iPhone 4

Capturing screen on iPhone is as easy as pressing buttons on your phone.  First of all, let me explain about the buttons used to capture a screenshot.

Lock Button (On/Off Button): Lock button is situated on the top right of your iPhone, which is used to Lock and Unlock your iPhone. It is also referred to On/Off Button.

Home Button: This is what the button you use every second to move to your home screen. Continue reading

USB 3.0 Upgraded To 3.1 || Experience The Speed

The USB 3.0 is fast, but the new version is faster than that. The upgrade came in the form of 3.1 version. Move on to 3.1 if you need to experience the new transfer speed. The upgrade is not going to work with the old USB 2.0 and 3.0 kit’s. You can achieve the high speed only if you are upgraded to USB 3.1 kit.

The USB Implementers Forum says it has 800 members, and the space fiend alone knows how many products they collectively offer. Continue reading

Youtube Video Downloader Online

Most of the people download youtube videos by installing necessary tool’s on their machine. Some work, some does not, and some others may be spam. How it will be if there is an online tool instead of installing a software to download videos? It will be great and effortless method to download what the video you need. here is the link of the online tool: http://www.savevid.com/ Continue reading

How To Rewrite URL’s || The Basic Concept

Having simple and clean URL’s will add an advantage to your website. It helps search engines to understand the content of your website easily. Creating meaning full URL’s allow user’s to search the content on your website easily. URL rewriting plays a major role in producing dynamic sitemap (where sitemap.xml will be mapped to sitemap.php which produces sitemap dynamically). Now, it is possible to submit sitemap.xml to google rather submitting sitemap.php which is not possible. URL rewriting method is different for different type’s of hosting. Continue reading

Blackberry || Best Way To Copy Contacts From Phone To Sim or To Another Phone

          The main disadvantage in blackberry phone’s is not allowing the user to copy all contacts from phone to sim. I am going to teach you  an easiest way to copy contacts from Blackberry phone to sim of from device to another device. Any basic phone which has an option to copy contacts from phone to sim is necessary.

Why they haven’t provided an option to copy all contacts from phone to sim?

Download Facebook Videos Using Online Tool

          Almost every day, We usually watch and share videos on Facebook. What to do if we like a video much and want to see whenever we need? It’s Better to download into our PC. There may be different ways to download videos on Facebook. But, what i am going to share here is about “An easy online tool which allows us to download videos soon.” Better, don’t waste time on finding Tools, Checking whether they are spam, Installing them on your pc, and finally downloading them. Continue reading