Luma Blog

Building Confidence in Luma: Smarter Types, Expressions, and a Playground to Try It Out

Over the last sprint, we’ve made some exciting improvements to Luma — both under the hood and in the ways developers can actually try it. Our focus has been on making the language more expressive, safer, and easier to explore. One of the big wins is around constants and optionals. Constants declared with lock now compile to proper Go constants, which means they behave exactly as intended: immutable values you can rely on. Optionals (?int, ?str) also saw fixes in how they’re assigned and compared to nil, removing awkward pointer issues and making optional handling feel natural.

Read more →

September 5, 2025

Building Confidence in Luma: From Errors to Insight

One of the big goals of Luma has always been to feel like a developer-friendly language: expressive when you write code, predictable when you run it, and helpful when something goes wrong. Over the past weeks, we’ve been putting a lot of effort into that last part — making sure that when Luma programs fail, they fail with clarity. From Go errors to Luma errors Luma compiles down to Go, but raw Go errors were never good enough. They pointed to the generated code, not the Luma file you were working in. Debugging meant reading Go stack traces and mentally mapping them back to your Luma code - frustrating and confusing.

Read more →

August 29, 2025

Strengthening Luma with Logical Foundations

Over the past development sprint, we’ve taken another significant step toward making Luma a practical and reliable language. Our focus was on strengthening the compiler and parser foundations by tackling areas that often cause hidden complexity in language design: logical operators, conditional flow, and type-aware code generation. Logical Operators Arrive Until now, Luma expressions could do math and comparisons, but true logical reasoning (&&, ||, !) wasn’t supported. We carefully extended the lexer, parser, and generator so these operators now work cleanly with the existing precedence system. Importantly, we didn’t hack them in - we aligned their precedence with arithmetic and comparison operators to avoid surprising results. This ensures conditions like:

Read more →

August 24, 2025

Luma Development Update - Building Strength in the Core

This phase of Luma’s development was all about tightening the bolts on the language’s foundation. We didn’t set out to add entirely new features, but to make sure the existing ones behaved exactly as Luma developers would expect in real-world use. What came out of it was a series of refinements that make the language safer, clearer, and more intuitive. One of the biggest improvements was in how type conversions are handled. We revisited the way Luma turns strings into numbers and other types, especially when optional types are involved. Conversions are now much more aware of the developer’s intent, whether they expect a nullable result or a guaranteed value with a fallback. This change eliminates awkward workarounds and makes these conversions feel like a natural part of the language.

Read more →

August 15, 2025

Luma Progress Update: Smarter Compiler, Type-Safe Lists, and a Vision for Extensibility

Today marks a major milestone in the evolution of Luma, our lightweight, expressive, and type-safe scripting language. Our focus was squarely on list operations and compiler robustness. Here’s what we accomplished: Type-Safe List Operations We implemented strongly-typed list functions across all core types: add, add_all, remove, remove_at, remove_all, sort All supported for: int, float, str, bool, byte This brings full parity between the Luma syntax: nums: [int] = [1, 2, 3] nums.add(4) nums.remove(2) nums.sort() …and the generated Go code:

Read more →

July 22, 2025

Rebuilding the Parser: Why We Changed and What It Enables

Over the past few weeks, we’ve been evolving the Luma parser to support richer language features like: Chained method calls and expressions Lambda expressions with inline or block bodies Interpolated strings Complex expression precedence handling Dot access + indexing + slicing Functional constructs like .filter(x -> x > 1), .walk(...) -> {} But as we began introducing these features, we hit a wall: our old parser was brittle - adding one new construct often broke several others.

Read more →

July 17, 2025

Breaking the Lambda Curse: Refactoring Our Compiler the Right Way

For weeks, our compiler worked - until it didn’t. Specifically, it choked on one of the most deceptively simple constructs in any modern language: lambda expressions. The syntax x -> x > 1 became our white whale. Sure, we could patch it. But patches turned brittle. One new feature would fix a case, and another would break it. It was time. We stepped back and refactored - from the ground up.

Read more →

July 16, 2025

Back to the Drawing Board: Strengthening the Foundations of Luma

Sometimes the best way forward is a few steps back - especially when building something as intricate and expressive as a programming language. Over the past weeks, we’ve been shaping Luma, our small, readable, and expressive scripting language. Progress has been exciting: we’ve supported basic types, function calls, collections, and even interpolated strings. But then came lambdas - and everything began to wobble. Lambdas Exposed a Cracked Foundation Implementing lambda expressions (x -> x + 1) seemed straightforward at first, but as we integrated them deeper into our parser, problems started surfacing. Adding lambdas triggered a cascade of subtle bugs. Functionality we thought was solid - like parsing chained method calls or indexing expressions - began to break.

Read more →

July 15, 2025

Installing Luma - What’s Coming Soon

Luma is shaping up fast, and as the language grows, we want to make it as accessible and smooth to adopt as possible - whether you’re a Go developer, a newcomer, or a scripting enthusiast. That’s why we’re planning a dual-mode installation system that fits different user needs. Two Ways to Install Luma We want Luma to just work. So instead of one rigid setup path, you’ll be able to choose:

Read more →

July 13, 2025

File API: First Edition - Simple, Powerful, Luma-style

We’re excited to announce the first official File API in Luma! It brings clean, readable, and expressive file handling - in a way that matches Luma’s philosophy of clarity, safety, and zero boilerplate. Highlights Safe Resource Handling with use use handle = file.open("data.txt", "r") { print(handle.text()) } Auto-closes the file after the block Cleaner and safer than manual close() Intuitive Reading & Writing text: str = "" use handle = file.open("notes.txt") { text = handle.text() } use handle = file.open("log.txt", "a") { handle.append("Line 1").append("Line 2") } Text and bytes both supported Chaining with .append() is natural and expressive File Info Made Easy ext = file.ext("photo.jpg") // "jpg" size = handle.size() // in bytes .ext() returns just the extension, no dot (user-friendly) .size() reports file size (no extra logic needed) Memory Mapping Support use mmap = file.mmap("big.bin", "r") { print(mmap[0..100]) } Efficient access for large files Read and write support File Path Tools path = file.join("dir", "data.txt") // cross-platform base = file.basename("/tmp/a.txt") // "a.txt" Future Ready We’ve designed the File API with these goals in mind:

Read more →

July 13, 2025

Luma List API: First Official Design Approved!

We’re excited to announce that the initial design of Luma’s List API has been approved and is now part of the core language direction! This milestone brings powerful, expressive, and intuitive list operations to Luma, crafted with care to remain true to our core goals of clarity, consistency, and developer comfort. Why It Matters Luma lists now support a range of built-in capabilities, making data manipulation both safe and ergonomic, without reaching for helper libraries or verbose boilerplate.

Read more →

July 11, 2025

Luma Update: What We’ve Achieved in Days - and What’s Cooking!

We’re thrilled to share what’s been happening under the hood of Luma, a new language designed to bring clarity, structure, and power into the hands of developers who value expressive simplicity and type safety. What We’ve Achieved This Week Over the past few days, Luma has evolved rapidly thanks to focused effort, clarity in vision, and lots of iteration. Here’s a snapshot of what we’ve put in place:

Read more →

July 10, 2025

Introducing Luma - A Lightweight, Modern Language for Practical Programming

Luma is a new programming language designed with clarity, pragmatism, and developer happiness in mind. Born out of real-world frustrations with verbosity, rigid typing systems, and clunky error handling, Luma aims to be a clean, expressive, and fast-to-compile language — one that feels intuitive while remaining powerful and safe under the hood. Why Luma? Today’s language ecosystem is vast — but many languages carry historical baggage, over-complicate simple tasks, or become unproductive for rapid prototyping. Some are overly academic. Others are too loose and unsafe.

Read more →

July 9, 2025