RSSAmplifier

Blog

Blog of Gigapotential

I write here when my neurons fire.

gigapotential.devRSS feed ↗5 posts

Latest posts

A minimal VMM in Rust with Apple Hypervisor

Virtual Machine Monitor Previously , we implemented a VMM with KVM for an x86_64 processor. This time we'll do the same thing — implement a VMM from scratch — but on Apple Silicon macOS using the Hypervisor framework. On the surface, KVM and Apple Hypervisor APIs look very similar: Create a VM Set up memory for it (similar to libc's mmap and munmap ) Create a vCPU and set up its…

A minimal VMM in Rust with KVM

Virtual Machine Monitor If you've ever wondered how tools like Cloud Hypervisor or Firecracker work under the hood, building a minimal VMM is one of the best ways to learn. Let's write one from scratch. KVM (Kernel-based Virtual Machine) is a Linux kernel module that turns the host into a hypervisor. We will use the KVM API to build software that runs a Virtual Machine. The industry uses…

Song search in Rust using OpenAI

Intro Ever happens to you that you hear a good song in a TV show, in a Movie, in cafe etc. And wonder what song is it? In today's age it is possible to search it on ChatGPT or Shazam, however, in this article we'll explore Embeddings to search a song using few words from lyrics, artist, album or song title. We'll use Rust + OpenAI to do so. The complete code and data for this is…

IPv4 to IPv6

Why IPv6? A 32-bit IPv4 address can create 2 32 addresses or ~4.3 billion addresses. As more and more devices are connected to internet, IPv6 is the new standard to address the exhaustion of IPv4 addresses. And number of bytes to represent IPv6 is four times the size of IPv4: 16 bytes or 128-bit, allowing up to 2 128 or ~3.4 x 10 38 addresses. Perspective Lets bring 2 128 to perspective. If we…

Host a blog with minimal cost

Minimal cost My previous attempts at blogging were hosting Ghost Docker container on DigitalOcean and later on Linode at a monthly cost of approx. $5 to $7. This is my next attempt at hosting a blog with following goals: Eliminate the monthly cost: By hosting on Cloudflare Pages with free plan. Eliminate storage backup management: By using Github repository with static site generator. Eliminate…

Blog of Gigapotential · RSS Amplifier