I built Sapphire, a C-style scripting language and VM for desktop apps
I built Sapphire, a C-style scripting language and VM for desktop apps
Hi HN, I’ve always wanted a way to build native desktop applications that feel 'modern' without having to deal with the verbosity of C++ or the memory bloat of Electron. So, for the past few months, I’ve been building Sapphire. It’s a general-purpose scripting language with a familiar C-style syntax, running on its own stack-based VM. My goal is to make it a go-to tool for creating fast, hardware-accelerated desktop apps. Link: github.com/foxzyt/Sapphire Why Sapphire? Native Desktop Apps: It’s designed from the ground up for desktop environments, using SFML for hardware-accelerated rendering. Custom VM: I implemented a dispatch table with computed gotos to keep instruction execution fast. Immediate Mode UI: The language includes SapphireUI, a procedural UI system that renders everything in real-time. Batteries Included: It already handles HTTP (GET/POST/Download), JSON parsing, and filesystem I/O natively. Current Status: The core VM, the garbage collector, and the networking/JSON modules are quite solid. I’m currently refining the layout engine to make it even easier to build complex, responsive interfaces.
Share cardActual performance
Launch Intel predictions
Analyze your own launch →Incorrect prediction on native model
Similar products
I accidentally built an MrBeast-style replicator
Buildby – A CLI to find out what desktop apps are built with
We Built an AppStore for TestFlight Apps
First AppServer built for deploying containerized apps
We built a Rotten Tomatoes-style platform for knives
I built a tool to visualise pathfinding algorithms (Desktop only)
We built a Rotten Tomatoes-style website for VPNs
Toothless – containerized desktop apps launched from the browser
I built a modern 90s-style webring
Write Angular 1.x Apps with Angular 2.0 Style Dependency Injection