How Ahimsa Eliminated Our Garbage Collector
A story about how a spiritual principle led to better software design. We are building a new programming language called SMS (Simple Multiplatform Script). Yesterday, while testing our first LLVM I...

Source: DEV Community
A story about how a spiritual principle led to better software design. We are building a new programming language called SMS (Simple Multiplatform Script). Yesterday, while testing our first LLVM IR compiler output, we noticed something. We have no free. No manual memory management. No garbage collector. Not because we implemented RAII. Not because we built a borrow checker like Rust. Not because we added reference counting explicitly. Because I never specified it. "We have no free, no memory management, and no garbage collector – because I never specified it." — Art, CrowdWare The Principle Behind It SMS is built on a single guiding principle: Ahimsa – a Sanskrit word meaning "do no harm to any living being." In software, we translate this directly: No program shall crash silently. No UI shall freeze unexpectedly. No runtime shall surprise the developer. A garbage collector violates Ahimsa. Not because GC is evil – but because GC pauses are unpredictable. Your app freezes for a moment